Coverity analysis defect 177478: Dereference of potentially null field

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • ALL
    • QE 2025-10-27
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Dereference of potentially null field

      If the field is actually null, then a null pointer dereference will occur. Field, which is statistically checked against null, is dereferenced.
      /src/mongo/db/exec/sbe/stages/hashagg_base.cpp:210: NULL_FIELD 177478 Reading field "_recordStore", which is expected to possibly be "nullptr" in "this->_recordStore" (checked 10 out of 12 times).
      /src/mongo/db/exec/sbe/stages/hashagg_base.cpp:210: NULL_FIELD 177478 Attempting to access the managed object of an empty smart pointer "this->_recordStore".

            Assignee:
            Niels Lohmann
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: