[SERVER-19580] Coverity analysis defect 72910: Dereference after null check Created: 24/Jul/15  Updated: 14/Apr/16  Resolved: 18/Feb/16

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Kyle Suarez
Resolution: Done Votes: 0
Labels: coverity, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Integration 10 (02/22/16)
Participants:

 Description   

Pointer is checked against null but then dereferenced anyway

Defect 72910 (STATIC_C)
Checker FORWARD_NULL (subcategory none)
File: /src/mongo/db/cloner.cpp
Function mongo::Cloner::Fun::operator ()(mongo::DBClientCursorBatchIterator &)
/src/mongo/db/cloner.cpp, line: 138
Comparing "collection" to null implies that "collection" might be null.

            if (!collection) {



 Comments   
Comment by Kyle Suarez [ 18/Feb/16 ]

The current code no longer dereferences a null pointer, so I'm closing this as Gone Away.

Generated at Thu Feb 08 03:51:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.