Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] util-linux-2.40.4/misc-utils/cal.c:1016:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)*ctl.months_in_row, 208) + (sizetype)i * 208’ util-linux-2.40.4/misc-utils/cal.c:1047:13: enter_function: entry to ‘yearly’ util-linux-2.40.4/misc-utils/cal.c:1061:9: call_function: calling ‘monthly’ from ‘yearly’ # 1014| # 1015| for (i = 0; i < ctl->months_in_row - 1; i++) # 1016|-> ms[i].next = &ms[i + 1]; # 1017| # 1018| rows = (ctl->num_months - 1) / ctl->months_in_row; Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] util-linux-2.40.4/misc-utils/hardlink.c:515:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)n * 8) + (long unsigned int)i * 8’ util-linux-2.40.4/misc-utils/hardlink.c:1048:13: enter_function: entry to ‘visitor’ util-linux-2.40.4/misc-utils/hardlink.c:1056:12: branch_false: following ‘false’ branch... branch_false: ...to here util-linux-2.40.4/misc-utils/hardlink.c:1059:16: branch_true: following ‘true’ branch (when ‘master’ is non-NULL)... util-linux-2.40.4/misc-utils/hardlink.c:1063:21: branch_true: ...to here util-linux-2.40.4/misc-utils/hardlink.c:1063:20: branch_false: following ‘false’ branch... util-linux-2.40.4/misc-utils/hardlink.c:1065:21: branch_false: ...to here util-linux-2.40.4/misc-utils/hardlink.c:1065:20: branch_false: following ‘false’ branch... branch_false: ...to here util-linux-2.40.4/misc-utils/hardlink.c:1069:26: call_function: inlined call to ‘count_nodes’ from ‘visitor’ util-linux-2.40.4/misc-utils/hardlink.c:1070:20: branch_false: following ‘false’ branch (when ‘ct != 0’)... util-linux-2.40.4/misc-utils/hardlink.c:1074:26: branch_false: ...to here util-linux-2.40.4/misc-utils/hardlink.c:1086:44: branch_true: following ‘true’ branch (when ‘other’ is non-NULL)... util-linux-2.40.4/misc-utils/hardlink.c:1089:29: branch_true: ...to here util-linux-2.40.4/misc-utils/hardlink.c:1089:28: branch_false: following ‘false’ branch... util-linux-2.40.4/misc-utils/hardlink.c:1092:25: branch_false: ...to here util-linux-2.40.4/misc-utils/hardlink.c:1092:25: branch_true: following ‘true’ branch... util-linux-2.40.4/misc-utils/hardlink.c:1093:25: branch_true: ...to here util-linux-2.40.4/misc-utils/hardlink.c:1093:25: branch_true: following ‘true’ branch... util-linux-2.40.4/misc-utils/hardlink.c:1095:30: branch_true: ...to here util-linux-2.40.4/misc-utils/hardlink.c:1095:28: branch_false: following ‘false’ branch... util-linux-2.40.4/misc-utils/hardlink.c:1099:30: branch_false: ...to here util-linux-2.40.4/misc-utils/hardlink.c:1099:30: call_function: calling ‘file_may_link_to’ from ‘visitor’ # 513| # 514| for (i = 0; i < n; i++) { # 515|-> table[i] = names; # 516| names += strlen(names) + 1; # 517| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] util-linux-2.40.4/misc-utils/waitpid.c:54:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_strings, 4) + i * 4’ util-linux-2.40.4/misc-utils/waitpid.c:223:5: enter_function: entry to ‘main’ util-linux-2.40.4/misc-utils/waitpid.c:234:12: branch_false: following ‘false’ branch (when ‘n_pids != 0’)... util-linux-2.40.4/misc-utils/waitpid.c:237:13: branch_false: ...to here util-linux-2.40.4/misc-utils/waitpid.c:241:23: call_function: calling ‘parse_pids’ from ‘main’ # 52| # 53| for (size_t i = 0; i < n_strings; i++) # 54|-> pids[i] = strtopid_or_err(strings[i], _("failed to parse pid")); # 55| # 56| return pids;
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 |
diffbase-analyzer-version-clippy | 1.86.0 |
diffbase-analyzer-version-cppcheck | 2.17.1 |
diffbase-analyzer-version-gcc | 15.0.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.1 |
diffbase-analyzer-version-shellcheck | 0.10.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-220.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.20250425.124705.g1c7c448.main-1.el9.noarch |
diffbase-mock-config | fedora-rawhide-x86_64 |
diffbase-project-name | util-linux-2.40.4-7.fc43 |
diffbase-store-results-to | /tmp/tmpgmeyevn9/util-linux-2.40.4-7.fc43.tar.xz |
diffbase-time-created | 2025-04-25 15:58:28 |
diffbase-time-finished | 2025-04-25 16:04:44 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpgmeyevn9/util-linux-2.40.4-7.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpgmeyevn9/util-linux-2.40.4-7.fc43.src.rpm' |
diffbase-tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-220.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 | util-linux-2.40.4-7.fc42 |
store-results-to | /tmp/tmpsg6uki48/util-linux-2.40.4-7.fc42.tar.xz |
time-created | 2025-04-25 15:51:16 |
time-finished | 2025-04-25 15:57:54 |
title | Fixed findings |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpsg6uki48/util-linux-2.40.4-7.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpsg6uki48/util-linux-2.40.4-7.fc42.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |