Operational Defect Database

BugZero found this defect 38 days ago.

MongoDB | 2639756

Coverity analysis defect 144328: Out-of-bounds read

Last update date:

4/11/2024

Affected products:

MongoDB Server

Affected releases:

8.0.0-rc0

Fixed releases:

No fixed releases provided.

Description:

Info

Out-of-bounds read Incorrect values read from a different memory region will cause incorrect computations. Out-of-bounds read from a buffer /src/mongo/db/storage/key_string.cpp:1436: OVERRUN 144328 Function call "mongo::countLeadingZeros64(value)" may return 64. /src/mongo/db/storage/key_string.cpp:1436: OVERRUN 144328 Assigning: "bytesNeeded" = "(64 - mongo::countLeadingZeros64(value) + 7) / 8". The value of "bytesNeeded" is now 0. /src/mongo/db/storage/key_string.cpp:1440: OVERRUN 144328 Assigning: "firstUsedByte" = "reinterpret_cast(&value + 1) - bytesNeeded". "firstUsedByte" now points to byte 8 of "value" (which consists of 8 bytes).

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Needs Scheduling

Learn More

Search:

...