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

Coverity analysis defect 116138: Uninitialized pointer field

    • Fully Compatible
    • ALL
    • Query 2020-08-24

      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/exec/multi_iterator.h:82: UNINIT_CTOR 116138 Class member declaration for "_opCtx".
      /src/mongo/db/exec/multi_iterator.cpp:49: UNINIT_CTOR 116138 Non-static class member "_opCtx" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            bernard.gorman@mongodb.com Bernard Gorman
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: