[SERVER-59897] Coverity analysis defect 120725: Uninitialized scalar field Created: 12/Sep/21  Updated: 29/Oct/23  Resolved: 17/Nov/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Eric Cox (Inactive)
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: QE 2021-10-04, QE 2021-10-18, QE 2021-11-01, QE 2021-11-15, QE 2021-11-29
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/exec/bucket_unpacker.h:149: UNINIT_CTOR 120725 The compiler-generated constructor for this class does not initialize "_unpackerBehavior".
/src/mongo/db/exec/bucket_unpacker.h:156: UNINIT_CTOR 120725 The compiler-generated constructor for this class does not initialize "_includeTimeField".
/src/mongo/db/exec/bucket_unpacker.h:159: UNINIT_CTOR 120725 The compiler-generated constructor for this class does not initialize "_includeMetaField".



 Comments   
Comment by Githook User [ 12/Nov/21 ]

Author:

{'name': 'Eric Cox', 'email': 'eric.cox@mongodb.com', 'username': 'ericox'}

Message: SERVER-59897 Fix uninitialized scalar field in BucketUnpacker
Branch: master
https://github.com/mongodb/mongo/commit/0d48c5f4d89b622af4efebee16b375378296a4d8

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