Coverity analysis defect 103443: Explicit null dereferenced

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: