Error: CPPCHECK_WARNING (CWE-401): [#def1] tslib-1.23/plugins/evthres.c:382: error[memleak]: Memory leak: c # 380| } # 381| # 382|-> return &(c->module); # 383| } # 384| Error: CPPCHECK_WARNING (CWE-401): [#def2] tslib-1.23/plugins/input-raw.c:983: error[memleak]: Memory leak: i # 981| } # 982| # 983|-> return &(i->module); # 984| } # 985| Error: CPPCHECK_WARNING (CWE-401): [#def3] tslib-1.23/plugins/median.c:440: error[memleak]: Memory leak: c # 438| } # 439| # 440|-> return &(c->module); # 441| } # 442| Error: CPPCHECK_WARNING (CWE-401): [#def4] tslib-1.23/plugins/waveshare-raw.c:347: error[memleak]: Memory leak: i # 345| } # 346| # 347|-> return &(i->module); # 348| } # 349| Error: GCC_ANALYZER_WARNING (CWE-479): [#def5] tslib-1.23/tests/ts_finddev.c:38:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler tslib-1.23/tests/ts_finddev.c:43:5: enter_function: entry to ‘main’ tslib-1.23/tests/ts_finddev.c:51:12: branch_false: following ‘false’ branch (when ‘argc == 3’)... tslib-1.23/tests/ts_finddev.c:54:9: branch_false: ...to here tslib-1.23/tests/ts_finddev.c:56:12: branch_false: following ‘false’ branch... tslib-1.23/tests/ts_finddev.c:59:14: branch_false: ...to here tslib-1.23/tests/ts_finddev.c:60:12: branch_false: following ‘false’ branch... tslib-1.23/tests/ts_finddev.c:63:12: branch_false: ...to here tslib-1.23/tests/ts_finddev.c:63:12: branch_false: following ‘false’ branch... tslib-1.23/tests/ts_finddev.c:66:9: branch_false: ...to here tslib-1.23/tests/ts_finddev.c:35:13: enter_function: entry to ‘alarm_handler’ tslib-1.23/tests/ts_finddev.c:38:9: danger: call to ‘printf’ from within signal handler # 36| { # 37| /* time is expired */ # 38|-> printf("signal %d caught\n", sig); # 39| # 40| exit(0); Error: GCC_ANALYZER_WARNING (CWE-479): [#def6] tslib-1.23/tests/ts_finddev.c:40:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler tslib-1.23/tests/ts_finddev.c:43:5: enter_function: entry to ‘main’ tslib-1.23/tests/ts_finddev.c:51:12: branch_false: following ‘false’ branch (when ‘argc == 3’)... tslib-1.23/tests/ts_finddev.c:54:9: branch_false: ...to here tslib-1.23/tests/ts_finddev.c:56:12: branch_false: following ‘false’ branch... tslib-1.23/tests/ts_finddev.c:59:14: branch_false: ...to here tslib-1.23/tests/ts_finddev.c:60:12: branch_false: following ‘false’ branch... tslib-1.23/tests/ts_finddev.c:63:12: branch_false: ...to here tslib-1.23/tests/ts_finddev.c:63:12: branch_false: following ‘false’ branch... tslib-1.23/tests/ts_finddev.c:66:9: branch_false: ...to here tslib-1.23/tests/ts_finddev.c:35:13: enter_function: entry to ‘alarm_handler’ tslib-1.23/tests/ts_finddev.c:40:9: danger: call to ‘exit’ from within signal handler # 38| printf("signal %d caught\n", sig); # 39| # 40|-> exit(0); # 41| } # 42| Error: GCC_ANALYZER_WARNING (CWE-476): [#def7] tslib-1.23/tests/ts_verify.c:170:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data.samp_mt’ tslib-1.23/tests/ts_verify.c:444:5: enter_function: entry to ‘main’ tslib-1.23/tests/ts_verify.c:508:12: branch_false: following ‘false’ branch... tslib-1.23/tests/ts_verify.c:512:9: branch_false: ...to here tslib-1.23/tests/ts_verify.c:514:9: call_function: calling ‘run_tests’ from ‘main’ # 168| for (j = 0; j < ret; j++) { # 169| for (i = 0; i < data->slots; i++) { # 170|-> if (!(data->samp_mt[j][i].valid & TSLIB_MT_VALID)) # 171| continue; # 172| Error: GCC_ANALYZER_WARNING (CWE-688): [#def8] tslib-1.23/tests/ts_verify.c:505:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘data.tsconf’ where non-null expected tslib-1.23/tests/ts_verify.c:504:23: acquire_memory: this call could return NULL tslib-1.23/tests/ts_verify.c:505:9: danger: argument 4 (‘fopen("ts_verify_ts.conf", "a+")’) from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected #argument 4 of ‘__builtin_fwrite’ must be non-null # 503| unlink(CONFFILE); # 504| data.tsconf = fopen(CONFFILE, "a+"); # 505|-> fprintf(data.tsconf, "module_raw input\n"); # 506| fclose(data.tsconf); # 507|
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-181.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.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | tslib-1.23-1.fc43 |
store-results-to | /tmp/tmpcazyn7d2/tslib-1.23-1.fc43.tar.xz |
time-created | 2025-04-25 15:50:56 |
time-finished | 2025-04-25 15:52:26 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpcazyn7d2/tslib-1.23-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpcazyn7d2/tslib-1.23-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |