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

Coverity: __wt_txn_update_check dereferences cbt without NULL check

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

      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@mongodb.com Haribabu Kommi
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: