[SERVER-71927] Coverity analysis defect 134298: Dereference null return value Created: 07/Dec/22  Updated: 29/Oct/23  Resolved: 19/Dec/22

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Enrico Golfieri
Resolution: Fixed Votes: 0
Labels: coverity, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Capture.PNG    
Issue Links:
Problem/Incident
is caused by SERVER-71559 MigrationChunkClonerSource is an abst... Closed
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Minor Change
Operating System: ALL
Sprint: Sharding EMEA 2022-12-26
Participants:

 Description   

Dereference null return value

If the function actually returns a null value, a null pointer dereference will occur. Return value of function which returns null is dereferenced without checking



 Comments   
Comment by Githook User [ 16/Dec/22 ]

Author:

{'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-71927 - Coverity analysis defect 134298: Dereference null return value
Branch: master
https://github.com/mongodb/mongo/commit/dbfcedabff1c0861fe6ff031b9b99b600abe1e49

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