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

Coverity analysis defect 104999: Uninitialized scalar field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.3
    • Affects Version/s: None
    • Component/s: Storage
    • Fully Compatible
    • ALL
    • Storage NYC 2018-09-10, Storage NYC 2018-09-24

      A scalar field is not initialized by the constructor

      Defect 104999 (STATIC_C)
      Checker UNINIT_CTOR (subcategory none)
      File: /src/mongo/db/storage/biggie/store.h
      Function mongo::biggie::RadixStore<std::_cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::_cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::Node::Node()
      /src/mongo/db/storage/biggie/store.h, line: 712
      Class member declaration for "_numSubtreeElems".

                  size_type _numSubtreeElems;
      

      /src/mongo/db/storage/biggie/store.h, line: 691
      Non-static class member "_numSubtreeElems" is not initialized in this constructor nor in any functions that it calls.

                  }
      

      /src/mongo/db/storage/biggie/store.h, line: 713
      Class member declaration for "_sizeSubtreeElems".

                  size_type _sizeSubtreeElems;
      

      /src/mongo/db/storage/biggie/store.h, line: 691
      Non-static class member "_sizeSubtreeElems" is not initialized in this constructor nor in any functions that it calls.

                  }
      

            Assignee:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: