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

Skip null check, per coverity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.1, 5.0.4, 4.4.10, 5.1.0-rc0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: