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

Coverity analysis defect 135887: Uninitialized pointer field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Sharding EMEA
    • Fully Compatible
    • ALL
    • Sharding EMEA 2023-04-03, Sharding EMEA 2023-04-17

      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_raii.h:491: UNINIT_CTOR 135887 Class member declaration for "_acquisition".
      /src/mongo/db/catalog_raii.cpp:601: UNINIT_CTOR 135887 Non-static class member "_acquisition" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: