[SERVER-50828] Coverity analysis defect 112053: Unchecked return value Created: 09/Sep/20  Updated: 29/Oct/23  Resolved: 23/Sep/20

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Eric Cox (Inactive)
Resolution: Fixed Votes: 0
Labels: coverity, coverity-pm-1854-tracking, qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-49363 Triage Coverity Issues for Query code... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2020-10-05
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/pipeline/document_source_exchange.cpp:397: CHECKED_RETURN 112053 Calling "appendDocument" without checking return value (as is done elsewhere 3 out of 4 times).



 Comments   
Comment by Githook User [ 22/Sep/20 ]

Author:

{'name': 'Eric Cox', 'email': 'eric.cox@mongodb.com', 'username': 'ericox'}

Message: SERVER-50828 Coverity analysis defect 112053: Unchecked return value
Branch: master
https://github.com/mongodb/mongo/commit/a8cf9ff6b35080af5cb6e233b2a6372d292ad8ad

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