[SERVER-54830] Coverity analysis defect 117752: Uninitialized pointer field Created: 26/Feb/21  Updated: 29/Oct/23  Resolved: 16/Mar/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Jason Chan
Resolution: Fixed Votes: 0
Labels: coverity, pm-1791_non-cloud-blocking, pm-1791_other_required
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2021-03-22
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/repl/tenant_cloner_test_fixture.h:43: UNINIT_CTOR 117752 The compiler-generated constructor for this class does not initialize "serviceContext".



 Comments   
Comment by Githook User [ 16/Mar/21 ]

Author:

{'name': 'Jason Chan', 'email': 'jason.chan@mongodb.com', 'username': 'jasonjhchan'}

Message: SERVER-54830 Initialize serviceContext to nullptr in
TenantClonerTestFixture
Branch: master
https://github.com/mongodb/mongo/commit/4822755eb5ead89962348297d16f293e1542abeb

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