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

Coverity analysis defect 117647: Uninitialized pointer field

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • ALL
    • Security 2021-02-22

      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/auth/authentication_session.h:79: UNINIT_CTOR 117647 Class member declaration for "_session".
      /src/mongo/db/auth/authentication_session.cpp:84: UNINIT_CTOR 117647 Non-static class member "_session" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: