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

7.0 -- Coverity analysis defect 169954: Dereference after null check

    • Query Execution
    • Fully Compatible
    • ALL
    • v8.1, v8.0
    • QE 2025-03-31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Dereference after null check

      Either the check against null is unnecessary, or there may be a null pointer dereference. Pointer is checked against null but then dereferenced anyway
      /src/mongo/db/exec/sbe/stages/hash_agg.cpp:127: FORWARD_NULL 169954 Calling "this->_recordStore.operator bool()" implies that "this->_recordStore" might be null-like.
      /src/mongo/db/exec/sbe/stages/hash_agg.cpp:132: FORWARD_NULL 169954 Attempting to access the managed object of an empty smart pointer "this->_recordStore".

            Assignee:
            jan.steemann@mongodb.com Jan Steemann
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None