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

Fix coverity bug: possible NULL dereference

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 4.4.7, 5.0.0-rc0
    • 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
      /ext/storage_sources/local_store/local_store.c:407: FORWARD_NULL 119990 Assigning: "fs" = "NULL".
      /ext/storage_sources/local_store/local_store.c:470: FORWARD_NULL 119990 Dereferencing null pointer "fs".

            Assignee:
            donald.anderson@mongodb.com Donald Anderson
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: