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

Coverity analysis defect 104999: Uninitialized scalar field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.3
    • Component/s: Storage
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Storage NYC 2018-09-10, Storage NYC 2018-09-24

      Description

      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.

                  }

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: