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

Coverity analysis defect 122631: Dereference after null check

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2022-11-28

    Description

      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/storage/index_entry_comparison.cpp:277: FORWARD_NULL 122631 Comparing "desc" to null implies that "desc" might be null.

      Attachments

        Activity

          People

            will.buerger@mongodb.com Will Buerger
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: