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

Coverity analysis defect 118042: Dereference after null check

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.0, 4.9.0-rc1, 4.4.7, 5.0.0-rc0
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: