[SERVER-61000] Coverity analysis defect 121043: Uninitialized pointer field Created: 26/Oct/21  Updated: 29/Oct/23  Resolved: 17/Dec/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Lingzhi Deng
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: Replication 2021-12-27
Participants:

 Description   

Uninitialized pointer field

The pointer field will point to an arbitrary memory location, any attempt to write may cause corruption. A pointer field is not initialized in the constructor
/src/mongo/db/repl/replication_recovery_test.cpp:231: UNINIT_CTOR 121043 The compiler-generated constructor for this class does not initialize "_storageInterface".
/src/mongo/db/repl/replication_recovery_test.cpp:233: UNINIT_CTOR 121043 The compiler-generated constructor for this class does not initialize "_stashedEnableMajorityReadConcern".



 Comments   
Comment by Githook User [ 17/Dec/21 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-61000: Fix uninitialized field in ReplicationRecoveryTest
Branch: master
https://github.com/mongodb/mongo/commit/26b17741ec55ffe4cec93e29fec83f330a3cdccc

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