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

Coverity analysis defect 116392: Uninitialized pointer field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0
    • Component/s: Catalog
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • 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: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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: