Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34317

Coverity analysis defect 103443: Explicit null dereferenced

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.4
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • Repl 2018-04-23

      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"));
      

            Assignee:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: