Error: GCC_ANALYZER_WARNING (CWE-457): [#def1] findutils-4.10.0/build/gl/lib/parse-datetime.c:1814:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>' findutils-4.10.0/build/gl/lib/parse-datetime.y:2389:1: enter_function: entry to 'parse_datetime' findutils-4.10.0/build/gl/lib/parse-datetime.y:2394:6: branch_false: following 'false' branch... findutils-4.10.0/build/gl/lib/parse-datetime.y:2396:13: branch_false: ...to here findutils-4.10.0/build/gl/lib/parse-datetime.y:2396:13: call_function: calling 'parse_datetime_body' from 'parse_datetime' Error: COMPILER_WARNING (CWE-704): [#def2] findutils-4.10.0/gl/lib/c-strstr.c: scope_hint: In function 'c_strstr' findutils-4.10.0/gl/lib/c-strstr.c:31:10: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type # 31 | return strstr (haystack, needle); # | ^~~~~~ # 29| /* POSIX says that strstr() interprets the strings as byte sequences, not # 30| as character sequences in the current locale. */ # 31|-> return strstr (haystack, needle); # 32| } Error: COMPILER_WARNING (CWE-704): [#def3] findutils-4.10.0/gl/lib/c-strstr.c:31:10: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type # 29| /* POSIX says that strstr() interprets the strings as byte sequences, not # 30| as character sequences in the current locale. */ # 31|-> return strstr (haystack, needle); # 32| } Error: CPPCHECK_WARNING (CWE-562): [#def4] findutils-4.10.0/gl/lib/mktime.c:262: error[returnDanglingLifetime]: Returning pointer to local variable 'x' that will be invalid when returning. # 260| { # 261| __time64_t x = t; # 262|-> return convert (&x, tm); # 263| } # 264| Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] findutils-4.10.0/gl/lib/time_rz.c:210:9: warning[-Wanalyzer-malloc-leak]: leak of 'set_tz(tz)' findutils-4.10.0/build/gl/lib/time.h:1034:1: enter_function: entry to 'mktime_z' findutils-4.10.0/gl/lib/time_rz.c:287:6: branch_false: following 'false' branch (when 'tz' is non-NULL)... findutils-4.10.0/gl/lib/time_rz.c:291:27: branch_false: ...to here findutils-4.10.0/gl/lib/time_rz.c:291:27: call_function: calling 'set_tz' from 'mktime_z' findutils-4.10.0/gl/lib/time_rz.c:291:27: return_function: returning to 'mktime_z' from 'set_tz' findutils-4.10.0/gl/lib/time_rz.c:292:10: branch_true: following 'true' branch... findutils-4.10.0/gl/lib/time_rz.c:295:25: branch_true: ...to here findutils-4.10.0/gl/lib/time_rz.c:306:16: branch_false: following 'false' branch... findutils-4.10.0/gl/lib/time_rz.c:306:16: branch_false: ...to here findutils-4.10.0/gl/lib/time_rz.c:210:9: danger: 'set_tz(tz)' leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7) # 208| char *env_tz = getenv_TZ (); # 209| if (env_tz # 210|-> ? tz->tz_is_set && strcmp (tz->abbrs, env_tz) == 0 # 211| : !tz->tz_is_set) # 212| return local_tz;
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-53.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | findutils-4.11.0-2.fc45 |
| diffbase-store-results-to | /tmp/tmpehjg9c0o/findutils-4.11.0-2.fc45.tar.xz |
| diffbase-time-created | 2026-08-03 14:10:25 |
| diffbase-time-finished | 2026-08-03 14:12:57 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpehjg9c0o/findutils-4.11.0-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpehjg9c0o/findutils-4.11.0-2.fc45.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.HEAD-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-53.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | findutils-4.10.0-7.fc44 |
| store-results-to | /tmp/tmp2obynepu/findutils-4.10.0-7.fc44.tar.xz |
| time-created | 2026-08-03 14:07:00 |
| time-finished | 2026-08-03 14:10:05 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp2obynepu/findutils-4.10.0-7.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp2obynepu/findutils-4.10.0-7.fc44.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |