[SERVER-50026] Coverity analysis defect 114245: Uninitialized scalar field Created: 30/Jul/20  Updated: 29/Oct/23  Resolved: 20/Nov/20

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Gregory Noma
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: Execution Team 2020-11-16, Execution Team 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/db/catalog/collection_impl.h:407: UNINIT_CTOR 114245 Class member declaration for "_validationAction".
/src/mongo/db/catalog/collection_impl.cpp:256: UNINIT_CTOR 114245 Non-static class member "_validationAction" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/db/catalog/collection_impl.h:408: UNINIT_CTOR 114245 Class member declaration for "_validationLevel".
/src/mongo/db/catalog/collection_impl.cpp:256: UNINIT_CTOR 114245 Non-static class member "_validationLevel" is not initialized in this constructor nor in any functions that it calls.



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

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-50026 Coverity analysis defect 114245: Uninitialized scalar field
Branch: master
https://github.com/mongodb/mongo/commit/dfa09cc55991094e4c7f4ee7442b2b41b4ff233d

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