Add check for zero snprintf buffer size when buffer is NULL

XMLWordPrintableJSON

    • Storage - Ra 2022-01-10
    • 3

      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
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: