[SERVER-68734] Coverity analysis defect 128580: Dereference before null check Created: 11/Aug/22  Updated: 06/Sep/22  Resolved: 06/Sep/22

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

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

Issue Links:
Duplicate
duplicates SERVER-67559 Implement global index cloner primary... Closed
Operating System: ALL
Participants:

 Description   

Dereference before null check

There may be a null pointer dereference, or else the comparison against null is unnecessary. All paths that lead to this null pointer comparison already dereference the pointer earlier
/src/mongo/db/s/global_index/global_index_cloner_fetcher.cpp:159: REVERSE_INULL 128580 Directly dereferencing pointer "this->_pipeline".
/src/mongo/db/s/global_index/global_index_cloner_fetcher.cpp:167: REVERSE_INULL 128580 Null-checking "this->_pipeline" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.


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