[SERVER-50808] Coverity analysis defect 115579: Uninitialized scalar field Created: 09/Sep/20  Updated: 29/Oct/23  Resolved: 25/Sep/20

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: George Wangensteen
Resolution: Fixed Votes: 0
Labels: coverity, greenerbuild, qopt-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Uninitialized scalar field

The field will contain an arbitrary value left over from earlier computations. A scalar field is not initialized by the constructor
/src/mongo/db/modules/enterprise/src/fle/query_analysis/expression_schema_walker.cpp:694: UNINIT_CTOR 115579 Class member declaration for "numChildrenVisited".
/src/mongo/db/modules/enterprise/src/fle/query_analysis/expression_schema_walker.cpp:539: UNINIT_CTOR 115579 Non-static class member "numChildrenVisited" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 25/Sep/20 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com'}

Message: SERVER-50808 add default value for non-constructor initialized value in ExpressionSchemaWalker
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/a76593392dee48c63e34cc87b8fe6c39f3ab9a4c

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