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

Coverity analysis defect 121920: Uninitialized pointer field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.0.0-rc5, 6.1.0-rc0
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • QE 2022-04-04, QE 2022-04-18, QE 2022-05-02, QE 2022-05-16

    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/exec/sbe/stages/hash_lookup.h:136: UNINIT_CTOR 121920 Class member declaration for "_inOuterMatchAccessor".
      /src/mongo/db/exec/sbe/stages/hash_lookup.cpp:58: UNINIT_CTOR 121920 Non-static class member "_inOuterMatchAccessor" is not initialized in this constructor nor in any functions that it calls.
      /src/mongo/db/exec/sbe/stages/hash_lookup.h:138: UNINIT_CTOR 121920 Class member declaration for "_inInnerMatchAccessor".
      /src/mongo/db/exec/sbe/stages/hash_lookup.cpp:58: UNINIT_CTOR 121920 Non-static class member "_inInnerMatchAccessor" is not initialized in this constructor nor in any functions that it calls.

      Attachments

        Issue Links

          Activity

            People

              eric.cox@mongodb.com Eric Cox (Inactive)
              xgen-internal-coverity Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: