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

Coverity analysis defect 118042: Dereference after null check

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.9.0-rc1, 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:623: FORWARD_NULL 118042 Comparing "directory" to null implies that "directory" might be null.
      /ext/storage_sources/local_store/local_store.c:649: FORWARD_NULL 118042 Passing null pointer "directory" to "strncmp", which dereferences it.

            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: