[SERVER-69099] Coverity analysis defect 128695: Uninitialized pointer read Created: 23/Aug/22  Updated: 29/Oct/23  Resolved: 06/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Gil Alon
Resolution: Fixed Votes: 0
Labels: coverity, neweng, quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Uninitialized pointer read

Incorrect values could be read from, or even written to, an arbitrary memory location, causing incorrect computations. Reads an uninitialized pointer or its target
/src/mongo/db/query/query_planner.cpp:303: UNINIT 128695 Declaring variable "chosenIndex" without initializer.



 Comments   
Comment by Githook User [ 06/Sep/22 ]

Author:

{'name': 'galon1', 'email': 'gil.alon@mongodb.com', 'username': 'galon1'}

Message: SERVER-69099 initialized variables to null to fix coverity defect
Branch: master
https://github.com/mongodb/mongo/commit/6f44faa5acf89d0079cb293ddb0630001d2b4951

Generated at Thu Feb 08 06:12:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.