[SERVER-56200] Coverity analysis defect 119882: Uninitialized scalar variable Created: 20/Apr/21  Updated: 29/Oct/23  Resolved: 26/May/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc1, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Jennifer Peshansky (Inactive)
Resolution: Fixed Votes: 0
Labels: coverity, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
is duplicated by SERVER-56201 Coverity analysis defect 119882: Unin... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Query Execution 2021-05-31
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:480: UNINIT 119882 Declaring variable "op" without initializer.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 28/May/21 ]

Author:

{'name': 'Jennifer Peshansky', 'email': 'jennifer.peshansky@mongodb.com', 'username': 'jenniferpeshansky'}

Message: SERVER-56200 Added base case to catch if op is none of the expected types

(cherry picked from commit e5d039c156d26cf6055596986cfd6da45b0e845c)
Branch: v5.0
https://github.com/mongodb/mongo/commit/d84bdd118744c8046e49a5eae8656e442037ef0f

Comment by Githook User [ 26/May/21 ]

Author:

{'name': 'Jennifer Peshansky', 'email': 'jennifer.peshansky@mongodb.com', 'username': 'jenniferpeshansky'}

Message: SERVER-56200 Added base case to catch if op is none of the expected types
Branch: master
https://github.com/mongodb/mongo/commit/3efb9fe270d3606665787c59f01bf239781547d7

Comment by Kyle Suarez [ 20/Apr/21 ]

It would be good to have a base-case that catches if op is none of the expected types.

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