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

Coverity analysis defect 116392: Uninitialized pointer field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Catalog
    • Fully Compatible
    • ALL
    • Execution Team 2020-10-19

      Uninitialized pointer field

      The pointer field will point to an arbitrary memory location, any attempt to write may cause corruption. A pointer field is not initialized in the constructor
      /src/mongo/db/catalog/collection_catalog.h:114: UNINIT_CTOR 116392 Class member declaration for "_genNum".
      /src/mongo/db/catalog/collection_catalog.cpp:109: UNINIT_CTOR 116392 Non-static class member "_genNum" is not initialized in this constructor nor in any functions that it calls.
      /src/mongo/db/catalog/collection_catalog.h:117: UNINIT_CTOR 116392 Class member declaration for "_catalog".
      /src/mongo/db/catalog/collection_catalog.cpp:109: UNINIT_CTOR 116392 Non-static class member "_catalog" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: