Coverity analysis defect 98151: Dereference after null check

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Pointer is checked against null but then dereferenced anyway

      Defect 98151 (STATIC_C)
      Checker FORWARD_NULL (subcategory none)
      File: /src/third_party/wiredtiger/src/btree/bt_cursor.c
      Function __wt_btcur_range_truncate
      /src/third_party/wiredtiger/src/btree/bt_cursor.c, line: 1169
      Comparing "start" to null implies that "start" might be null.

          	cbt = (start != NULL) ? start : stop;
      

      File: /src/third_party/wiredtiger/src/btree/bt_cursor.c
      Function __wt_btcur_range_truncate
      /src/third_party/wiredtiger/src/btree/bt_cursor.c, line: 1169
      Comparing "start" to null implies that "start" might be null.

          	cbt = (start != NULL) ? start : stop;
      

      File: /src/third_party/wiredtiger/src/btree/bt_cursor.c
      Function __wt_btcur_range_truncate
      /src/third_party/wiredtiger/src/btree/bt_cursor.c, line: 1169
      Comparing "start" to null implies that "start" might be null.

          	cbt = (start != NULL) ? start : stop;
      

              Assignee:
              Keith Bostic (Inactive)
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: