Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] util-linux-2.42.start/misc-utils/cal.c: scope_hint: In function ‘monthly’ util-linux-2.42.start/misc-utils/cal.c:1084:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)*ctl.months_in_row, 208)’ util-linux-2.42.start/misc-utils/cal.c:79: included_from: Included from here. # 1082| # 1083| for (i = 0; i < ctl->months_in_row - 1; i++) # 1084|-> ms[i].next = &ms[i + 1]; # 1085| # 1086| rows = (ctl->num_months - 1) / ctl->months_in_row; Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] util-linux-2.42.start/misc-utils/waitpid.c: scope_hint: In function ‘parse_pids’ util-linux-2.42.start/misc-utils/waitpid.c:53:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_strings, 4)’ util-linux-2.42.start/include/strutils.h:55:64: note: in definition of macro ‘strtopid_or_err’ util-linux-2.42.start/misc-utils/waitpid.c:53:55: note: in expansion of macro ‘_’ # 51| # 52| for (size_t i = 0; i < n_strings; i++) # 53|-> pids[i] = strtopid_or_err(strings[i], _("invalid PID argument")); # 54| # 55| return pids; Error: GCC_ANALYZER_WARNING (CWE-688): [#def3] util-linux-2.42.start/term-utils/agetty.c: scope_hint: In function ‘dump_iface_all’ util-linux-2.42.start/term-utils/agetty.c:2686:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected util-linux-2.42.start/include/netlink.h:28: included_from: Included from here. util-linux-2.42.start/include/netaddrq.h:17: included_from: Included from here. util-linux-2.42.start/term-utils/agetty.c:51: included_from: Included from here. util-linux-2.42.start/include/netaddrq.h:62:46: note: in expansion of macro ‘list_for_each’ util-linux-2.42.start/term-utils/agetty.c:2938:17: note: in expansion of macro ‘list_for_each_netaddrq_iface’ /usr/include/stdio.h:360:12: note: argument 1 of ‘fprintf’ must be non-null # 2684| if (first) # 2685| { # 2686|-> fprintf(ie->output, "%s: ", ifaceq->ifname); # 2687| first = false; # 2688| } Error: GCC_ANALYZER_WARNING (CWE-688): [#def4] util-linux-2.42.start/term-utils/agetty.c:2698:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected util-linux-2.42.start/include/netaddrq.h:62:46: note: in expansion of macro ‘list_for_each’ util-linux-2.42.start/term-utils/agetty.c:2938:17: note: in expansion of macro ‘list_for_each_netaddrq_iface’ util-linux-2.42.start/term-utils/agetty.c:2681:9: note: in expansion of macro ‘list_for_each’ util-linux-2.42.start/term-utils/agetty.c:2693:9: note: in expansion of macro ‘list_for_each’ /usr/include/stdio.h:360:12: note: argument 1 of ‘fprintf’ must be non-null # 2696| if (first) # 2697| { # 2698|-> fprintf(ie->output, "%s: ", ifaceq->ifname); # 2699| first = false; # 2700| }
| analyzer-version-clippy | 1.88.0 |
| analyzer-version-cppcheck | 2.18.0 |
| analyzer-version-gcc | 15.1.1 |
| analyzer-version-gcc-analyzer | 15.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.88.0 |
| diffbase-analyzer-version-cppcheck | 2.18.0 |
| diffbase-analyzer-version-gcc | 15.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 15.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-20.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.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | util-linux-2.42.start-7.20250805112416922029.master.521.gec4677910 |
| diffbase-store-results-to | /tmp/tmp_4gsaprs/util-linux-2.42.start-7.20250805112416922029.master.521.gec4677910.tar.xz |
| diffbase-time-created | 2025-08-08 01:57:31 |
| diffbase-time-finished | 2025-08-08 02:07:10 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,cppcheck,clippy,gcc' '-o' '/tmp/tmp_4gsaprs/util-linux-2.42.start-7.20250805112416922029.master.521.gec4677910.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp_4gsaprs/util-linux-2.42.start-7.20250805112416922029.master.521.gec4677910.src.rpm' |
| diffbase-tool-version | csmock-3.8.2.20250807.103350.g1f0dd98-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-20.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | util-linux-2.42.start-7.20250808014404911724.pr3649.524.g2df8a4595 |
| store-results-to | /tmp/tmp4j0t95hw/util-linux-2.42.start-7.20250808014404911724.pr3649.524.g2df8a4595.tar.xz |
| time-created | 2025-08-08 02:07:38 |
| time-finished | 2025-08-08 02:16:12 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,cppcheck,clippy,gcc' '-o' '/tmp/tmp4j0t95hw/util-linux-2.42.start-7.20250808014404911724.pr3649.524.g2df8a4595.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp4j0t95hw/util-linux-2.42.start-7.20250808014404911724.pr3649.524.g2df8a4595.src.rpm' |
| tool-version | csmock-3.8.2.20250807.103350.g1f0dd98-1.el9 |