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

Coverity analysis defect 115281: Uninitialized pointer field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Catalog
    • ALL
    • Execution Team 2020-10-19

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: