[SERVER-63411] Coverity analysis defect 121452: Uninitialized scalar field Created: 08/Feb/22  Updated: 11/Feb/22  Resolved: 11/Feb/22

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: Svilen Mihaylov (Inactive)
Resolution: Duplicate Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Sprint: QO 2022-02-21
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
/opt/mongodbtoolchain/revisions/94dac13bc8c0b50beff286acac77adeb2e81761e/stow/gcc-v3.Thb/include/c++/8.2.0/bits/stl_queue.h:457: UNINIT_CTOR 121452 Class member declaration for "comp".
/src/mongo/db/query/optimizer/cascades/memo.cpp:98: UNINIT_CTOR 121452 Non-static class member "_queue.comp" is not initialized in this constructor nor in any functions that it calls.


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