[SERVER-68825] Coverity analysis defect 127649: Uninitialized scalar field Created: 15/Aug/22  Updated: 27/Oct/23  Resolved: 26/Jan/23

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Alexander Ignatyev
Resolution: Gone away Votes: 0
Labels: coverity, quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
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/query/optimizer/cascades/memo.h:246: UNINIT_CTOR 127649 Class member declaration for "_heuristicCE".
/src/mongo/db/query/optimizer/opt_phase_manager.cpp:60: UNINIT_CTOR 127649 Non-static class member "_memo._heuristicCE" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Alexander Ignatyev [ 26/Jan/23 ]

_heuristicCE was refactored out of the Memo class

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