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

Coverity analysis defect 114181: Explicit null dereferenced

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.0, 4.4.0-rc9, 4.7.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      Storage - Ra 2020-06-15

      Description

      Dereference of an explicit null value

      Defect 114181 (STATIC_C)
      Checker FORWARD_NULL (subcategory deref_constant_null)
      File: /test/checkpoint/workers.c
      Function real_worker
      /test/checkpoint/workers.c, line: 245
      Dereferencing null pointer "session".

                  if ((ret = session->open_cursor(session, g.cookies[j].uri, NULL, NULL, &cursors[j])) != 0) {

      File: /test/checkpoint/workers.c
      Function real_worker
      /test/checkpoint/workers.c, line: 314
      Dereferencing null pointer "session".

              if ((t_ret = session->close(session, NULL)) != 0 && ret == 0) {

        Attachments

          Activity

            People

            Assignee:
            ravi.giri Ravi Giri
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: