[SERVER-76686] Coverity analysis defect 137996: Uninitialized pointer field Created: 28/Apr/23  Updated: 29/Oct/23  Resolved: 05/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Alyssa Clark
Resolution: Fixed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Integration
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QI 2023-05-15
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/exec/timeseries_modify.h:84: UNINIT_CTOR 137996 Class member declaration for "isFromOplogApplication".
/src/mongo/db/exec/timeseries_modify.h:48: UNINIT_CTOR 137996 Non-static class member "isFromOplogApplication" is not initialized in this constructor nor in any functions that it calls.
/src/mongo/db/exec/timeseries_modify.h:88: UNINIT_CTOR 137996 Class member declaration for "updateDriver".
/src/mongo/db/exec/timeseries_modify.h:48: UNINIT_CTOR 137996 Non-static class member "updateDriver" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Githook User [ 04/May/23 ]

Author:

{'name': 'Alyssa Wagenmaker', 'email': 'alyssa.wagenmaker@mongodb.com', 'username': 'awagenmaker'}

Message: SERVER-76686 Initialize all TimeseriesModifyParams fields
Branch: master
https://github.com/mongodb/mongo/commit/97ff72823355568798c76591c4e2e84d4cd7ff62

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