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

Coverity analysis defect 121112: Dereference before null check

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0
    • None
    • None
    • Fully Compatible
    • ALL
    • QE 2021-11-15, QE 2021-11-29

    Description

      Dereference before null check

      There may be a null pointer dereference, or else the comparison against null is unnecessary. All paths that lead to this null pointer comparison already dereference the pointer earlier
      /src/mongo/db/query/sbe_runtime_planner.cpp:123: REVERSE_INULL 121112 Null-checking "candidate" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.

      Attachments

        Activity

          People

            justin.seyster@mongodb.com Justin Seyster
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: