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

Coverity analysis defect 121387: Dereference after null check

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.3.0
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2022-02-21

    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/dbhelpers.cpp:167: FORWARD_NULL 121387 Comparing "desc" to null implies that "desc" might be null.

      Attachments

        Activity

          People

            haley.connelly@mongodb.com Haley Connelly
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: