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

Coverity analysis defect 105001: Uninitialized scalar field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.4
    • Component/s: Shell
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Security 2018-09-24

      Description

      A scalar field is not initialized by the constructor

      Defect 105001 (STATIC_C)
      Checker UNINIT_CTOR (subcategory none)
      File: /src/mongo/shell/shell_utils_launcher.cpp
      Function mongo::shell_utils::ProgramRunner::ProgramRunner(const mongo::BSONObj &, const mongo::BSONObj &, bool)
      /src/mongo/shell/shell_utils_launcher.h, line: 145
      Class member declaration for "_pipe".

              int _pipe;

      /src/mongo/shell/shell_utils_launcher.cpp, line: 384
      Non-static class member "_pipe" is not initialized in this constructor nor in any functions that it calls.

          }

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: