[SERVER-50230] Coverity analysis defect 114677: Uninitialized scalar field Created: 10/Aug/20  Updated: 29/Oct/23  Resolved: 27/Aug/20

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Benety Goh
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-09-07
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/repl_index_build_state.h:281: UNINIT_CTOR 114677 Class member declaration for "opId".
/src/mongo/db/repl_index_build_state.h:252: UNINIT_CTOR 114677 Non-static class member "opId" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 27/Aug/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-50230 fix Coverity analysis defect 114677: Uninitialized scalar field
Branch: master
https://github.com/mongodb/mongo/commit/470d9b90bb51d76094255022eeaa9fdbd4bcac76

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