[SERVER-36543] Coverity analysis defect 104949: Uninitialized scalar field Created: 08/Aug/18  Updated: 29/Oct/23  Resolved: 08/Aug/18

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Sean Tao
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-08-13
Participants:

 Description   

A scalar field is not initialized by the constructor

Defect 104949 (STATIC_C)
Checker UNINIT_CTOR (subcategory none)
File: /src/mongo/db/storage/biggie/biggie_sorted_impl.cpp
Function mongo::biggie::SortedDataInterface::SortedDataInterface(const mongo::Ordering &, bool, mongo::StringData)
/src/mongo/db/storage/biggie/biggie_sorted_impl.h, line: 177
Class member declaration for "_dupsAllowed".

        bool _dupsAllowed;

/src/mongo/db/storage/biggie/biggie_sorted_impl.cpp, line: 310
Non-static class member "_dupsAllowed" is not initialized in this constructor nor in any functions that it calls.

    }


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