[SERVER-61001] Coverity analysis defect 121061: Uninitialized scalar field Created: 26/Oct/21  Updated: 27/Oct/23  Resolved: 26/Oct/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Henrik Edin
Resolution: Works as Designed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Sprint: Execution Team 2021-11-01
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/simple8b.h:349: UNINIT_CTOR 121061 Class member declaration for "_current".
/src/mongo/bson/util/simple8b.cpp:734: UNINIT_CTOR 121061 Non-static class member "_current" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/bson/util/simple8b.h:354: UNINIT_CTOR 121061 Class member declaration for "_mask".
/src/mongo/bson/util/simple8b.cpp:734: UNINIT_CTOR 121061 Non-static class member "_mask" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/bson/util/simple8b.h:364: UNINIT_CTOR 121061 Class member declaration for "_bitsPerValue".
/src/mongo/bson/util/simple8b.cpp:734: UNINIT_CTOR 121061 Non-static class member "_bitsPerValue" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/bson/util/simple8b.h:368: UNINIT_CTOR 121061 Class member declaration for "_countMask".
/src/mongo/bson/util/simple8b.cpp:734: UNINIT_CTOR 121061 Non-static class member "_countMask" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/bson/util/simple8b.h:371: UNINIT_CTOR 121061 Class member declaration for "_countBits".
/src/mongo/bson/util/simple8b.cpp:734: UNINIT_CTOR 121061 Non-static class member "_countBits" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/bson/util/simple8b.h:374: UNINIT_CTOR 121061 Class member declaration for "_countMultiplier".
/src/mongo/bson/util/simple8b.cpp:734: UNINIT_CTOR 121061 Non-static class member "_countMultiplier" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/bson/util/simple8b.h:377: UNINIT_CTOR 121061 Class member declaration for "_selector".
/src/mongo/bson/util/simple8b.cpp:734: UNINIT_CTOR 121061 Non-static class member "_selector" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/bson/util/simple8b.h:380: UNINIT_CTOR 121061 Class member declaration for "_extensionType".
/src/mongo/bson/util/simple8b.cpp:734: UNINIT_CTOR 121061 Non-static class member "_extensionType" is not initialized in this constructor nor in any functions that it calls.


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