[SERVER-50809] Coverity analysis defect 115592: Uninitialized scalar field Created: 09/Sep/20  Updated: 29/Oct/23  Resolved: 24/Nov/20

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: Sam Mercier
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/aggregate_expression_intender.cpp:1075: UNINIT_CTOR 115592 Class member declaration for "numChildrenVisited".
/src/mongo/db/modules/enterprise/src/fle/query_analysis/aggregate_expression_intender.cpp:904: UNINIT_CTOR 115592 Non-static class member "numChildrenVisited" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 24/Nov/20 ]

Author:

{'name': 'samontea', 'email': 'merciers.merciers@gmail.com', 'username': 'samontea'}

Message: SERVER-50809 Initialize scalar field in IntentionInVisitor
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/677faf36990d240b7d50357329d0d570b628bce2

Comment by Sam Mercier [ 19/Nov/20 ]

cr: https://mongodbcr.appspot.com/719960001/

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