[SERVER-68993] Coverity analysis defect 122917: Dereference null return value Created: 19/Aug/22  Updated: 27/Oct/23  Resolved: 26/Sep/22

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Timour Katchaounov
Resolution: Gone away Votes: 0
Labels: M1, coverity, neweng, quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2022-08-19 at 11.11.16 AM.png    
Operating System: ALL
Sprint: QO 2022-10-03
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/query/ce/ce_histogram.cpp:75: NULL_RETURNS 122917 Dereferencing a pointer that might be "nullptr" "key._path.cast()->name()" when calling "basic_string". [Note: The source code implementation of the function has been overridden by a builtin model.]



 Comments   
Comment by Timour Katchaounov [ 26/Sep/22 ]

The code in question is gone due to SERVER-69039.

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