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

Coverity analysis defect 115968: Uninitialized pointer field _desc

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7.0
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Execution Team 2020-08-10

      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/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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: