[SERVER-49960] Coverity analysis defect 115281: Uninitialized pointer field Created: 28/Jul/20  Updated: 14/Oct/20  Resolved: 14/Oct/20

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Brian DeLeonardis (Inactive)
Resolution: Duplicate Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-51180 Coverity analysis defect 116392: Unin... Closed
Operating System: ALL
Sprint: Execution Team 2020-10-19
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/catalog/collection_catalog.h:92: UNINIT_CTOR 115281 Class member declaration for "_genNum".
/src/mongo/db/catalog/collection_catalog.cpp:94: UNINIT_CTOR 115281 Non-static class member "_genNum" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/db/catalog/collection_catalog.h:94: UNINIT_CTOR 115281 Class member declaration for "_catalog".
/src/mongo/db/catalog/collection_catalog.cpp:94: UNINIT_CTOR 115281 Non-static class member "_catalog" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Brian DeLeonardis (Inactive) [ 13/Oct/20 ]

Code review: https://mongodbcr.appspot.com/688720002/

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