Coverity analysis defect 135356: Using invalid iterator

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2023-04-03
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Using invalid iterator: src/mongo/db/storage/devnull/ephemeral_catalog_record_store.cpp:90

      Undefined behavior may result; the program may crash or subtly misbehave. An invalid or past-the-end iterator is being used
      /src/mongo/db/storage/devnull/ephemeral_catalog_record_store.cpp:90: INVALIDATE_ITERATOR 135356 Function "end" creates an iterator.
      /src/mongo/db/storage/devnull/ephemeral_catalog_record_store.cpp:90: INVALIDATE_ITERATOR 135356 Assigning: "<temporary>" = "this->_data->records.end()".
      /src/mongo/db/storage/devnull/ephemeral_catalog_record_store.cpp:90: INVALIDATE_ITERATOR 135356 "it" testing equal to "this->_data->records.end()".
      /src/mongo/db/storage/devnull/ephemeral_catalog_record_store.cpp:96: INVALIDATE_ITERATOR 135356 Dereferencing iterator "it" though it is already past the end of its container.

              Assignee:
              Jordi Olivares Provencio
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: