[SERVER-85759] Coverity analysis defect 138632: Dereference null return value Created: 25/Jan/24  Updated: 29/Jan/24  Resolved: 29/Jan/24

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: Etienne Petrel
Resolution: Works as Designed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2024-01-25 at 17.36.49.png    
Assigned Teams:
Storage Engines
Operating System: ALL
Sprint: 2024-02-06 tapioooooooooooooca
Participants:
Story Points: 1

 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/third_party/wiredtiger/src/conn/conn_compact.c:340: NULL_RETURNS 138632 Assigning: "compact_stat" = "NULL" return value from "__background_compact_get_stat".


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