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

Coverity analysis defect 121104: Dereference after null check

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 2
    • Storage - Ra 2021-11-29

      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".

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

              Created:
              Updated:
              Resolved: