[SERVER-63767] Coverity analysis defect 121564: Unchecked return value Created: 17/Feb/22  Updated: 27/Oct/23  Resolved: 31/Jan/23

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

Type: Bug Priority: Minor - P4
Reporter: Coverity Collector User Assignee: Projjal Chanda
Resolution: Gone away Votes: 0
Labels: coverity, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2022-02-17 at 9.58.38 AM.png    
Assigned Teams:
Query Execution
Operating System: ALL
Participants:

 Description   

Unchecked return value

If the function returns an error value, the error value may be mistaken for a normal value. Value returned from a function is not checked for errors before being used
/src/mongo/db/exec/sbe/parser/parser.cpp:1028: CHECKED_RETURN 121564 Calling "optimize" without checking return value (as is done elsewhere 21 out of 27 times).



 Comments   
Comment by Projjal Chanda [ 31/Jan/23 ]

SBE parser has been removed. Hence closing this ticket.

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