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

Coverity analysis defect 103846: 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 103846 (STATIC_C)
      Checker NULL_RETURNS (subcategory unimpl)
      File: /bench/wtperf/config.c
      Function config_opt_file
      /bench/wtperf/config.c, line: 515
      Assuming unimplemented function "__ctype_b_loc" may return a null value.

          		for (ltrim = line; *ltrim && isspace((u_char)*ltrim);
      

      /bench/wtperf/config.c, line: 515
      Dereferencing "__ctype_b_loc()", which is known to be "NULL".

          		for (ltrim = line; *ltrim && isspace((u_char)*ltrim);
      

      File: /bench/wtperf/config.c
      Function config_opt_file
      /bench/wtperf/config.c, line: 535
      Assuming unimplemented function "__ctype_b_loc" may return a null value.

          		while (rtrim > ltrim && isspace((u_char)rtrim[-1]))
      

      /bench/wtperf/config.c, line: 535
      Dereferencing "__ctype_b_loc()", which is known to be "NULL".

          		while (rtrim > ltrim && isspace((u_char)rtrim[-1]))
      

      File: /bench/wtperf/config.c
      Function config_opt_file
      /bench/wtperf/config.c, line: 555
      Assuming unimplemented function "__ctype_b_loc" may return a null value.

          		while (rtrim > ltrim && isspace((u_char)rtrim[-1]))
      

      /bench/wtperf/config.c, line: 555
      Dereferencing "__ctype_b_loc()", which is known to be "NULL".

          		while (rtrim > ltrim && isspace((u_char)rtrim[-1]))
      

            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: