[SERVER-64941] Coverity analysis defect 121945: Uninitialized scalar field Created: 25/Mar/22  Updated: 27/Oct/23  Resolved: 06/Dec/22

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

Type: Task Priority: Major - P3
Reporter: Coverity Collector User Assignee: Ian Boros
Resolution: Gone away Votes: 0
Labels: coverity, pm2646-m4
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2022-03-25 at 10.56.44 AM.png     PNG File Screen Shot 2022-03-25 at 10.57.37 AM.png    
Assigned Teams:
Query Execution
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/bson/util/bsoncolumnbuilder.h:179: UNINIT_CTOR 121945 Class member declaration for "_referenceSubObjType".
/src/mongo/bson/util/bsoncolumnbuilder.cpp:513: UNINIT_CTOR 121945 Non-static class member "_referenceSubObjType" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Ian Boros [ 06/Dec/22 ]

This was an issue in another part of the code but it went away.

Comment by Ana Meza [ 29/Mar/22 ]

ethan.zhang adding this one to the Columnstore EPIC

Generated at Thu Feb 08 06:01:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.