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

Add check for zero snprintf buffer size when buffer is NULL

    • 3
    • Storage - Ra 2022-01-10

      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
      /src/os_common/os_fstream.c:135: FORWARD_NULL 121262 Comparing "p" to null implies that "p" might be null.

            Assignee:
            will.korteland@mongodb.com Will Korteland
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: