[SERVER-58089] Coverity analysis defect 120194: Uninitialized pointer field Created: 25/Jun/21  Updated: 29/Oct/23  Resolved: 09/Jul/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.2, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Matthew Walak (Inactive)
Resolution: Fixed Votes: 0
Labels: coverity, neweng, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Sharding 2021-07-12
Participants:
Story Points: 1

 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/s/resharding/resharding_recipient_service_test.cpp:318: UNINIT_CTOR 120194 The compiler-generated constructor for this class does not initialize "_metrics".



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 28/Jul/21 ]

Author:

{'name': 'Matt Walak', 'email': 'matt.walak@mongodb.com'}

Message: SERVER-58089 Coverity analysis defect 120194: Uninitialized pointer field
Branch: v5.0
https://github.com/mongodb/mongo/commit/299421a159279a550830cd304cdb38ae419deae4

Comment by Githook User [ 08/Jul/21 ]

Author:

{'name': 'Matt Walak', 'email': 'matt.walak@mongodb.com'}

Message: SERVER-58089 Coverity analysis defect 120194: Uninitialized pointer field
Branch: master
https://github.com/mongodb/mongo/commit/5b442afb57333e8b90cba38fa395e394aff0b83a

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