[SERVER-51288] Coverity analysis defect 114956: Uninitialized scalar field Created: 01/Oct/20  Updated: 29/Oct/23  Resolved: 20/Nov/20

Status: Closed
Project: Core Server
Component/s: Networking
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/util/net/sock.h:230: UNINIT_CTOR 114956 Class member declaration for "_fdCreationMicroSec".
/src/mongo/util/net/sock.cpp:241: UNINIT_CTOR 114956 Non-static class member "_fdCreationMicroSec" 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-51288 util/net/sock.h uninitialized field
Branch: master
https://github.com/mongodb/mongo/commit/887bcdcd992829fcac9a667aa19be9c913247571

Comment by Billy Donahue [ 19/Nov/20 ]

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

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