[SERVER-50810] Coverity analysis defect 112490: Uninitialized scalar field Created: 09/Sep/20  Updated: 29/Oct/23  Resolved: 02/Oct/20

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Sara Golemon
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: Security 2020-10-05
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/encryptdb/keystore.cpp:73: UNINIT_CTOR 112490 Class member declaration for "rolloverId".
/src/mongo/db/modules/enterprise/src/encryptdb/keystore.cpp:62: UNINIT_CTOR 112490 Non-static class member "rolloverId" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 02/Oct/20 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: SERVER-50810 Pass rolloverId to KeystoreRecordViewV1 ctor
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/bb3af5ea10ae3296c0ea0021f619d99b6e1cfac3

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