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

Coverity analysis defect 104374: Dereference null return (stat)

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Return value of function, which is statistically inferred to return null, but with no source code available, is dereferenced

      Defect 104374 (STATIC_C)
      Checker NULL_RETURNS (subcategory unimpl)
      File: /src/include/ctype.i
      Function __wt_isdigit
      /src/include/ctype.i, line: 38
      Assuming unimplemented function "__ctype_b_loc" may return a null value.

          	return (isdigit(c) != 0);
      

      /src/include/ctype.i, line: 38
      Dereferencing "__ctype_b_loc()", which is known to be "NULL".

          	return (isdigit(c) != 0);
      

            Assignee:
            alex.cameron@mongodb.com Alex Cameron (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: