[SERVER-51344] Coverity analysis defect 114629: Uninitialized scalar field Created: 05/Oct/20  Updated: 29/Oct/23  Resolved: 20/Nov/20

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: coverity, servicearch-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service arch 2020-11-30
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/executor/remote_command_request.h:90: UNINIT_CTOR 114629 Class member declaration for "fireAndForgetMode".
/src/mongo/executor/remote_command_request.cpp:100: UNINIT_CTOR 114629 Non-static class member "fireAndForgetMode" is not initialized in this constructor nor in any functions that it calls.



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

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-51344 default init for fireAndForgetMode
Branch: master
https://github.com/mongodb/mongo/commit/250d733513a19dab90a5889043f612b794ba2e37

Comment by Billy Donahue [ 19/Nov/20 ]

CR http://mongodbcr.appspot.com/735980001

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