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

Coverity analysis defect 104949: Uninitialized scalar field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.2
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • ALL
    • Storage NYC 2018-08-13

      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.

          }
      

            Assignee:
            sean.tao Sean Tao
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: