[SERVER-54691] Coverity analysis defect 117707: Uninitialized pointer field Created: 22/Feb/21  Updated: 29/Oct/23  Resolved: 01/Mar/21

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: Dan Larkin-York
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 2021-03-08
Participants:

 Description   

Uninitialized pointer field

The pointer field will point to an arbitrary memory location, any attempt to write may cause corruption. A pointer field is not initialized in the constructor
/src/mongo/db/timeseries/bucket_catalog.h:374: UNINIT_CTOR 117707 Class member declaration for "_key".
/src/mongo/db/timeseries/bucket_catalog.cpp:528: UNINIT_CTOR 117707 Non-static class member "_key" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/db/timeseries/bucket_catalog.h:375: UNINIT_CTOR 117707 Class member declaration for "_stats".
/src/mongo/db/timeseries/bucket_catalog.cpp:528: UNINIT_CTOR 117707 Non-static class member "_stats" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/db/timeseries/bucket_catalog.h:376: UNINIT_CTOR 117707 Class member declaration for "_time".
/src/mongo/db/timeseries/bucket_catalog.cpp:528: UNINIT_CTOR 117707 Non-static class member "_time" is not initialized in this constructor nor in any functions that it calls.


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