[SERVER-37063] Coverity analysis defect 104999: Uninitialized scalar field Created: 10/Sep/18  Updated: 29/Oct/23  Resolved: 12/Sep/18

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Gregory Wlodarek
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: Storage NYC 2018-09-10, Storage NYC 2018-09-24
Participants:

 Description   

A scalar field is not initialized by the constructor

Defect 104999 (STATIC_C)
Checker UNINIT_CTOR (subcategory none)
File: /src/mongo/db/storage/biggie/store.h
Function mongo::biggie::RadixStore<std::_cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::_cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::Node::Node()
/src/mongo/db/storage/biggie/store.h, line: 712
Class member declaration for "_numSubtreeElems".

            size_type _numSubtreeElems;

/src/mongo/db/storage/biggie/store.h, line: 691
Non-static class member "_numSubtreeElems" is not initialized in this constructor nor in any functions that it calls.

            }

/src/mongo/db/storage/biggie/store.h, line: 713
Class member declaration for "_sizeSubtreeElems".

            size_type _sizeSubtreeElems;

/src/mongo/db/storage/biggie/store.h, line: 691
Non-static class member "_sizeSubtreeElems" is not initialized in this constructor nor in any functions that it calls.

            }



 Comments   
Comment by Githook User [ 12/Sep/18 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-37063 Fix uninitialized scalar field
Branch: master
https://github.com/mongodb/mongo/commit/4592bf741ed8a7492e31a1e0a8ad997fcd0a2704

Generated at Thu Feb 08 04:44:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.