Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-12690

Coverity analysis defect 138822: Using invalid iterator

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Engines
    • StorEng - Defined Pipeline

      Using invalid iterator

      Undefined behavior may result; the program may crash or subtly misbehave. An invalid or past-the-end iterator is being used
      /test/simulator/timestamp/src/session_simulator.cpp:354: INVALIDATE_ITERATOR 138822 Calling "find" with element ""get"" returns the end iterator.
      /test/simulator/timestamp/src/session_simulator.cpp:354: INVALIDATE_ITERATOR 138822 Assigning: "pos" = "config_map.find(std::map<std::_cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::_cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::key_type const("get", std::allocator<char>()))".
      /test/simulator/timestamp/src/session_simulator.cpp:355: INVALIDATE_ITERATOR 138822 Dereferencing iterator "pos" though it is already past the end of its container.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: