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

Coverity analysis defect 105092: Uninitialized pointer field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.6
    • Component/s: Replication
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Repl 2018-11-19

      Description

      A pointer field is not initialized in the constructor

      Defect 105092 (STATIC_C)
      Checker UNINIT_CTOR (subcategory pointer)
      File: /src/mongo/db/repl/replication_coordinator_mock.cpp
      Function mongo::repl::ReplicationCoordinatorMock::ReplicationCoordinatorMock(mongo::ServiceContext *, const mongo::repl::ReplSettings &)
      /src/mongo/db/repl/replication_coordinator_mock.h, line: 291
      Class member declaration for "_storage".

              StorageInterface* _storage;

      /src/mongo/db/repl/replication_coordinator_mock.cpp, line: 63
      Non-static class member "_storage" is not initialized in this constructor nor in any functions that it calls.

              : _service(service), _settings(settings) {}

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: