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

Coverity analysis defect 121043: Uninitialized pointer field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Replication 2021-12-27

      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/repl/replication_recovery_test.cpp:231: UNINIT_CTOR 121043 The compiler-generated constructor for this class does not initialize "_storageInterface".
      /src/mongo/db/repl/replication_recovery_test.cpp:233: UNINIT_CTOR 121043 The compiler-generated constructor for this class does not initialize "_stashedEnableMajorityReadConcern".

            Assignee:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: