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

Coverity analysis defect 144996: Uninitialized pointer field

    • Query Execution
    • Fully Compatible
    • 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:359: UNINIT_CTOR 144996 Class member declaration for "_collection".
      /src/mongo/db/exec/express/express_plan.h:252: UNINIT_CTOR 144996 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:360: UNINIT_CTOR 144996 Class member declaration for "_indexCatalogEntry".
      /src/mongo/db/exec/express/express_plan.h:252: UNINIT_CTOR 144996 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:366: UNINIT_CTOR 144996 Class member declaration for "_stats".
      /src/mongo/db/exec/express/express_plan.h:252: UNINIT_CTOR 144996 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:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: