[SERVER-50245] Coverity analysis defect 115640: Out-of-bounds read Created: 11/Aug/20  Updated: 27/Oct/23  Resolved: 10/May/23

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Asya Kamsky
Resolution: Gone away Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

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/pipeline/expression.cpp:5648: OVERRUN 115640 Checking "inputType >= 0" implies that "inputType" is at least 0 on the true branch.
/src/mongo/db/pipeline/expression.cpp:5648: OVERRUN 115640 Checking "inputType <= mongo::JSTypeMax" implies that "inputType" is at least 20 on the false branch.
/src/mongo/db/pipeline/expression.cpp:5649: OVERRUN 115640 Checking "targetType >= 0" implies that "targetType" is at least 0 on the true branch.
/src/mongo/db/pipeline/expression.cpp:5649: OVERRUN 115640 Checking "targetType <= mongo::JSTypeMax" implies that "targetType" is between 0 and 19 (inclusive) on the true branch.


Generated at Thu Feb 08 05:22:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.