[SERVER-53891] Coverity analysis defect 116952: Uninitialized scalar variable Created: 19/Jan/21  Updated: 29/Oct/23  Resolved: 05/Feb/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Ian Boros
Resolution: Fixed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query Execution 2021-02-22
Participants:

 Description   

Uninitialized scalar variable

The variable will contain an arbitrary value left from earlier computations. Use of an uninitialized variable
/src/mongo/db/exec/sbe/parser/parser.cpp:917: UNINIT 116952 Declaring variable "dropKeepPos" without initializer.
/src/mongo/db/exec/sbe/parser/parser.cpp:952: UNINIT 116952 Using uninitialized value "dropKeepPos" when calling "operator []". [Note: The source code implementation of the function has been overridden by a builtin model.]



 Comments   
Comment by Githook User [ 04/Feb/21 ]

Author:

{'name': 'Ian Boros', 'email': 'ian.boros@mongodb.com', 'username': 'puppyofkosh'}

Message: SERVER-53891 Fix read from uninitialized variable in SBE parser
Branch: master
https://github.com/mongodb/mongo/commit/62884c87b3c0774f8b9155117b812be8dbd53c5a

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