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

Replace null comparison with WT_ASSERT to avoid null pointer deference

    • 2
    • Storage - Ra 2022-03-07

      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/reconcile/rec_visibility.c:688: FORWARD_NULL 121581 Comparing "upd" to null implies that "upd" might be null.
      /src/reconcile/rec_visibility.c:691: FORWARD_NULL 121581 Dereferencing null pointer "upd".

            Assignee:
            clarisse.cheah@mongodb.com Clarisse Cheah
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: