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

Add check for zero snprintf buffer size when buffer is NULL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.2, 5.3.0, 5.2.0-rc5
    • Component/s: None
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      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

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

              Dates

              Created:
              Updated:
              Resolved: