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

Skip null check, per coverity

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

      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.

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

              Created:
              Updated:
              Resolved: