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

Coverity analysis defect 140504: Using invalid iterator

    • Replication
    • Fully Compatible
    • ALL
    • v8.0
    • Repl 2024-05-13

      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/s/write_ops/bulk_write_exec.cpp:189: INVALIDATE_ITERATOR 140504 Calling "find" with element "response.shardId" returns the end iterator.
      /src/mongo/s/write_ops/bulk_write_exec.cpp:189: INVALIDATE_ITERATOR 140504 Assigning: "<temporary>" = "childBatches->find(response.shardId)".
      /src/mongo/s/write_ops/bulk_write_exec.cpp:189: INVALIDATE_ITERATOR 140504 Dereferencing iterator "childBatches->find(response.shardId)" though it is already past the end of its container.

            Assignee:
            sean.zimmerman@mongodb.com Sean Zimmerman
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: