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

Coverity analysis defect 116994: Dereference after null check

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      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/tiered/tiered_cursor.c:144: FORWARD_NULL 116994 Comparing "curtiered->cursors" to null implies that "curtiered->cursors" might be null.
      /src/tiered/tiered_cursor.c:145: FORWARD_NULL 116994 Although "__curtiered_open_cursors" does overwrite "curtiered->cursors" on some paths, it also contains at least one feasible path which does not overwrite it.

            Assignee:
            keith.smith@mongodb.com Keith Smith
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: