[SERVER-52920] Coverity analysis defect 116664: Uninitialized scalar field Created: 17/Nov/20  Updated: 29/Oct/23  Resolved: 24/Jan/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Sergi Mateo Bellido
Resolution: Fixed Votes: 0
Labels: coverity, neweng, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
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/s/catalog/type_database.h:114: UNINIT_CTOR 116664 The compiler-generated constructor for this class does not initialize "_sharded".



 Comments   
Comment by Githook User [ 23/Jan/21 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-52920 Coverity analysis defect 116664: Uninitialized scalar field
Branch: master
https://github.com/mongodb/mongo/commit/69b67cd919d089a66062eb648cad8c66a14fb632

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