Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8386

Coverity analysis defect 121104: Dereference after null check

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.1, 5.2.0
    • None
    • None
    • 2
    • Storage - Ra 2021-11-29

    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
      /test/format/snap.c:694: FORWARD_NULL 121104 Comparing "session" to null implies that "session" might be null.
      /test/format/snap.c:695: FORWARD_NULL 121104 Dereferencing null pointer "session".

      Attachments

        Activity

          People

            keith.bostic@mongodb.com Keith Bostic (Inactive)
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: