[SERVER-34317] Coverity analysis defect 103443: Explicit null dereferenced Created: 04/Apr/18  Updated: 29/Oct/23  Resolved: 13/Apr/18

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2018-04-23
Participants:

 Description   

Dereference of an explicit null value

Defect 103443 (STATIC_C)
Checker FORWARD_NULL (subcategory deref_constant_null)
File: /src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp
Function mongo::WiredTigerKVEngine::WiredTigerKVEngine(const std::_cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> &, const std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> &, mongo::ClockSource *, const std::_cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> &, unsigned long, bool, bool, bool, bool)
/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp, line: 436
Dereferencing null pointer "this->_conn".

            invariantWTOK(_conn->query_timestamp(_conn, buf, "get=recovery"));



 Comments   
Comment by Githook User [ 13/Apr/18 ]

Author:

{'email': 'daniel.gottlieb@mongodb.com', 'name': 'Daniel Gottlieb', 'username': 'dgottlieb'}

Message: SERVER-34317: Check wiredtiger_open return code before accessing the connection.
Branch: master
https://github.com/mongodb/mongo/commit/69254d4b16e5e23e384121d142b743c4f7d6dfc1

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