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

Skip null check, per coverity

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.1, 5.0.4, 4.4.10, 5.1.0-rc0
    • Component/s: None
    • Labels:
      None

      Description

      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
      /ext/extractors/csv/csv_extractor.c:154: REVERSE_INULL 120743 Directly dereferencing pointer "parser".
      /ext/extractors/csv/csv_extractor.c:198: REVERSE_INULL 120743 Null-checking "parser" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.

        Attachments

          Activity

            People

            Assignee:
            donald.anderson Donald Anderson
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: