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

Coverity analysis defect 115281: Uninitialized pointer field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Catalog
    • Labels:
    • Operating System:
      ALL
    • Sprint:
      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

              Assignee:
              brian.deleonardis Brian DeLeonardis
              Reporter:
              xgen-internal-coverity Coverity Collector User
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: