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

Coverity analysis defect 155588: Using invalid iterator

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch
    • Fully Compatible
    • ALL
    • Networking & Obs 2024-08-05

      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/client/connpool.cpp:487: INVALIDATE_ITERATOR 155588 Calling "find" with element "host" returns the end iterator.
      /src/mongo/client/connpool.cpp:487: INVALIDATE_ITERATOR 155588 Assigning: "<temporary>" = "this->_pools.find(mongo::DBConnectionPool::PoolKey(host, timeout))".
      /src/mongo/client/connpool.cpp:487: INVALIDATE_ITERATOR 155588 Dereferencing iterator "this->_pools.find(mongo::DBConnectionPool::PoolKey(host, timeout))" though it is already past the end of its container.

            Assignee:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: