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

Coverity analysis defect 169043: Using invalid iterator

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.18
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Using invalid iterator

      Undefined behavior may result; the program may crash or subtly misbehave. An invalid or past-the-end iterator is being used
      /src/mongo/db/s/namespace_metadata_change_notifications.cpp:79: INVALIDATE_ITERATOR 169043 Calling "find" with element "token->nss" returns the end iterator.
      /src/mongo/db/s/namespace_metadata_change_notifications.cpp:79: INVALIDATE_ITERATOR 169043 Assigning: "mapIt" = "this->_notificationsList.find(token->nss)".
      /src/mongo/db/s/namespace_metadata_change_notifications.cpp:80: INVALIDATE_ITERATOR 169043 Dereferencing iterator "mapIt" though it is already past the end of its container.

            Assignee:
            adam.farkas@mongodb.com Wolfee Farkas
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: