Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-25847

Coverity analysis defect 99860: Dereference after null check

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • WiredTiger
    • Fully Compatible
    • ALL

    Description

      Pointer is checked against null but then dereferenced anyway

      Defect 99860 (STATIC_C)
      Checker FORWARD_NULL (subcategory none)
      File: /src/third_party/wiredtiger/src/os_posix/os_mtx_cond.c
      Function __wt_cond_signal
      /src/third_party/wiredtiger/src/os_posix/os_mtx_cond.c, line: 125
      Comparing "session" to null implies that "session" might be null.

          	if (session != NULL)

      Attachments

        Activity

          People

            keith.bostic@mongodb.com Keith Bostic (Inactive)
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: