[SERVER-77912] Coverity analysis defect 138235: Uninitialized pointer field Created: 08/Jun/23  Updated: 08/Jun/23  Resolved: 08/Jun/23

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

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

Attachments: PNG File Screenshot 2023-06-08 at 10.31.45 AM.png    
Issue Links:
Problem/Incident
is caused by SERVER-77580 Add Counter, Gauge, MetricManager imp... Closed
Assigned Teams:
Atlas Streams
Operating System: ALL
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/modules/enterprise/src/streams/exec/change_stream_source_operator.h:35: UNINIT_CTOR 138235 Class member declaration for "svcCtx".
/src/mongo/db/modules/enterprise/src/streams/exec/change_stream_source_operator.h:30: UNINIT_CTOR 138235 Non-static class member "svcCtx" is not initialized in this constructor nor in any functions that it calls.



 Comments   
Comment by Eric Sedor [ 08/Jun/23 ]

Thanks for this report. We are tracking this specific issue using a different, internal project, so I will close this ticket.

Comment by Kyle Suarez [ 08/Jun/23 ]

eric.sedor@mongodb.com This code was implemented by and is owned by the Atlas Streams team. I'm sending this ticket back and undoing your change. I have let that team know about this issue already.

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