Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-74680

Coverity analysis defect 135356: Using invalid iterator

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

      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@mongodb.com Jordi Olivares Provencio
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: