[SERVER-70589] Coverity analysis defect 133990: Dereference null return value Created: 14/Oct/22  Updated: 29/Oct/23  Resolved: 01/Nov/22

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

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-11-14
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
/src/mongo/db/catalog/collection_impl.cpp:463: NULL_RETURNS 133990 Assigning: "desc" = "nullptr" return value from "findIndexByName".



 Comments   
Comment by Githook User [ 01/Nov/22 ]

Author:

{'name': 'Will Buerger', 'email': 'will.buerger@mongodb.com', 'username': 'wbuerger46'}

Message: SERVER-70589: Coverity analysis defect 133990: Dereference null return value
Branch: master
https://github.com/mongodb/mongo/commit/f9ce2b3836f6662587e27739948fdf0b839fca91

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