Coverity: __wt_txn_update_check dereferences cbt without NULL check

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage - Ra 2020-12-14
    • 2

      WT-6710 added metadata check in the following if condition, which dereferences cbt without a NULL check. There are potential callers that pass a NULL argument for cbt, making this a real bug that can cause a seg-fault.

          /* Don't check if transaction isolation is not snapshot or the table is metadata. */
          if (txn->isolation != WT_ISO_SNAPSHOT || WT_IS_METADATA(cbt->dhandle))
              return (0);
      

              Assignee:
              Haribabu Kommi
              Reporter:
              Sulabh Mahajan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: