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

Coverity analysis defect 168237: Dereference before null check

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Engines
    • StorEng - Defined Pipeline

      Dereference before null check

      There may be a null pointer dereference, or else the comparison against null is unnecessary. All paths that lead to this null pointer comparison already dereference the pointer earlier
      /src/block_cache/block_io.c:416: REVERSE_INULL 168237 Directly dereferencing pointer "dsk".
      /src/block_cache/block_io.c:423: REVERSE_INULL 168237 Null-checking "dsk" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: