Operational Defect Database

BugZero found this defect 26 days ago.

MongoDB | 2651366

Coverity analysis defect 140718: 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/db/s/namespace_metadata_change_notifications.cpp:113: INVALIDATE_ITERATOR 140718 Calling "find" with element "token.nss" returns the end iterator. /src/mongo/db/s/namespace_metadata_change_notifications.cpp:113: INVALIDATE_ITERATOR 140718 Assigning: "mapIt" = "this->_notificationsList.find(token.nss)". /src/mongo/db/s/namespace_metadata_change_notifications.cpp:114: INVALIDATE_ITERATOR 140718 Dereferencing iterator "mapIt" 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:

...