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

Coverity analysis defect 115281: Uninitialized pointer field

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Catalog
    • 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:92: UNINIT_CTOR 115281 Class member declaration for "_genNum".
      /src/mongo/db/catalog/collection_catalog.cpp:94: UNINIT_CTOR 115281 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:94: UNINIT_CTOR 115281 Class member declaration for "_catalog".
      /src/mongo/db/catalog/collection_catalog.cpp:94: UNINIT_CTOR 115281 Non-static class member "_catalog" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            brian.deleonardis@mongodb.com Brian DeLeonardis (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: