Operational Defect Database

BugZero found this defect 26 days ago.

MongoDB | 2651377

Coverity analysis defect 140504: Using invalid iterator

Last update date:

4/23/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

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: "" = "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.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Needs Scheduling

Learn More

Search:

...