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

XMLWordPrintableJSON

    • Query Execution
    • Fully Compatible
    • ALL
    • v8.1, v8.0
    • QE 2025-03-31
    • None
    • 3
    • 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
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: