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

Coverity analysis defect 105001: Uninitialized scalar field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.4
    • Affects Version/s: None
    • Component/s: Shell
    • Fully Compatible
    • ALL
    • Security 2018-09-24

      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.

          }
      

            Assignee:
            annie.black@mongodb.com Annie Black
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: