Coverity analysis defect 118042: Dereference after null check

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • WT10.0.0, 4.9.0-rc1, 4.4.7, 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 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
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: