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

Coverity analysis defect 115968: Uninitialized pointer field _desc

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • Execution Team 2020-08-10

      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/storage/ephemeral_for_test/ephemeral_for_test_sorted_impl.h:93: UNINIT_CTOR 115968 Class member declaration for "_desc".
      /src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_sorted_impl.cpp:1245: UNINIT_CTOR 115968 Non-static class member "_desc" is not initialized in this constructor nor in any functions that it calls.

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

              Created:
              Updated:
              Resolved: