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

Coverity analysis defect 104949: Uninitialized scalar field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.2
    • Component/s: Storage
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Storage NYC 2018-08-13

      Description

      A scalar field is not initialized by the constructor

      Defect 104949 (STATIC_C)
      Checker UNINIT_CTOR (subcategory none)
      File: /src/mongo/db/storage/biggie/biggie_sorted_impl.cpp
      Function mongo::biggie::SortedDataInterface::SortedDataInterface(const mongo::Ordering &, bool, mongo::StringData)
      /src/mongo/db/storage/biggie/biggie_sorted_impl.h, line: 177
      Class member declaration for "_dupsAllowed".

              bool _dupsAllowed;

      /src/mongo/db/storage/biggie/biggie_sorted_impl.cpp, line: 310
      Non-static class member "_dupsAllowed" is not initialized in this constructor nor in any functions that it calls.

          }

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: