[SERVER-74538] Coverity analysis defect 135330: Uninitialized scalar field Created: 02/Mar/23  Updated: 29/Oct/23  Resolved: 08/Mar/23

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

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

Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QE 2023-04-03
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/query/sbe_multi_planner.h:126: UNINIT_CTOR 135330 Class member declaration for "_maxNumResults".
/src/mongo/db/query/sbe_multi_planner.h:51: UNINIT_CTOR 135330 Non-static class member "_maxNumResults" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/db/query/sbe_multi_planner.h:127: UNINIT_CTOR 135330 Class member declaration for "_maxNumReads".
/src/mongo/db/query/sbe_multi_planner.h:51: UNINIT_CTOR 135330 Non-static class member "_maxNumReads" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 08/Mar/23 ]

Author:

{'name': 'Ivan Fefer', 'email': 'ivan.fefer@mongodb.com', 'username': 'Fefer-Ivan'}

Message: SERVER-74538 Fix uninitialized sbe multi planner fields
Branch: master
https://github.com/mongodb/mongo/commit/24ee19b2e4c8513492dd9fe70713cdd7b5c8f02a

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