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

Add check for zero snprintf buffer size when buffer is NULL

    XMLWordPrintable

Details

    • 3
    • Storage - Ra 2022-01-10

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: