[SERVER-50201] Coverity analysis defect 116124: Uninitialized scalar field Created: 08/Aug/20  Updated: 29/Oct/23  Resolved: 03/Nov/20

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

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2020-11-16
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/storage/ephemeral_for_test/ephemeral_for_test_radix_store.h:900: UNINIT_CTOR 116124 Class member declaration for "_nodeType".
/src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_radix_store.h:839: UNINIT_CTOR 116124 Non-static class member "_nodeType" is not initialized in this constructor nor in any functions that it calls.



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

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-50201 Initialize _nodeType to be NodeType::LEAF in ephemeralForTest
Branch: master
https://github.com/mongodb/mongo/commit/db11ca5b1eb97b25521a80b8de8fcdafaa7cd376

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