[SERVER-36574] Coverity analysis defect 104958: Dereference null return value Created: 10/Aug/18  Updated: 13/Aug/18  Resolved: 10/Aug/18

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

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

Issue Links:
Duplicate
duplicates SERVER-36575 Coverity analysis defect 104960: Dere... Closed
Operating System: ALL
Participants:

 Description   

Return value of function which returns null is dereferenced without checking

Defect 104958 (STATIC_C)
Checker NULL_RETURNS (subcategory none)
File: /src/mongo/db/ops/write_ops_exec.cpp
Function mongo::performDeletes(mongo::OperationContext *, const mongo::write_ops::Delete &)
/src/mongo/db/ops/write_ops_exec.cpp, line: 835
Assigning: "txnParticipant" = null return value from "get".

        auto txnParticipant = TransactionParticipant::get(opCtx);



 Comments   
Comment by Kaloian Manassiev [ 13/Aug/18 ]

This is closed as Duplicate, but not linked to anything - what is the Duplicate ticket? esha.maharishi, renctan

Comment by Esha Maharishi (Inactive) [ 10/Aug/18 ]

CC renctan

Generated at Thu Feb 08 04:43:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.