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

Coverity analysis defect 147226: Uninitialized pointer field

    • Query Execution
    • ALL
    • v8.0

      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/express/express_plan.h:169: UNINIT_CTOR 147226 Class member declaration for "_collection".
      /src/mongo/db/exec/express/express_plan.h:100: UNINIT_CTOR 147226 Non-static class member "_collection" is not initialized in this constructor nor in any functions that it calls.
      /src/mongo/db/exec/express/express_plan.h:170: UNINIT_CTOR 147226 Class member declaration for "_indexCatalogEntry".
      /src/mongo/db/exec/express/express_plan.h:100: UNINIT_CTOR 147226 Non-static class member "_indexCatalogEntry" is not initialized in this constructor nor in any functions that it calls.
      /src/mongo/db/exec/express/express_plan.h:174: UNINIT_CTOR 147226 Class member declaration for "_stats".
      /src/mongo/db/exec/express/express_plan.h:100: UNINIT_CTOR 147226 Non-static class member "_stats" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            adi.agrawal@mongodb.com Adi Agrawal
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: