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

Coverity analysis defect 122782: Dereference after null check

    • Fully Compatible
    • QE 2022-10-17, QE 2022-10-31, QE 2022-11-14

      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:360: FORWARD_NULL 122782 Calling "this->_recordStore.operator bool()" implies that "this->_recordStore" might be null-like.
      /src/mongo/db/exec/sbe/stages/hash_agg.cpp:391: FORWARD_NULL 122782 Attempting to access the managed object of an empty smart pointer "this->_recordStore".

            Assignee:
            sebastien.mendez@mongodb.com Sebastien Mendez
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: