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

Coverity analysis defect 114245: Uninitialized scalar field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Catalog
    • Labels:
    • Fully Compatible
    • ALL
    • Execution Team 2020-11-16, Execution Team 2020-11-30

      Uninitialized scalar field

      The field will contain an arbitrary value left over from earlier computations. A scalar field is not initialized by the constructor
      /src/mongo/db/catalog/collection_impl.h:407: UNINIT_CTOR 114245 Class member declaration for "_validationAction".
      /src/mongo/db/catalog/collection_impl.cpp:256: UNINIT_CTOR 114245 Non-static class member "_validationAction" is not initialized in this constructor nor in any functions that it calls.
      /src/mongo/db/catalog/collection_impl.h:408: UNINIT_CTOR 114245 Class member declaration for "_validationLevel".
      /src/mongo/db/catalog/collection_impl.cpp:256: UNINIT_CTOR 114245 Non-static class member "_validationLevel" is not initialized in this constructor nor in any functions that it calls.

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

              Created:
              Updated:
              Resolved: