Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/blkid.c: scope_hint: In function ‘main’ util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/blkid.c:889:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)(argc - optind), 8)’ util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/blkid.c:49: included_from: Included from here. util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/blkid.c:18: included_from: Included from here. # 887| continue; # 888| # 889|-> devices[numdev++] = dev; # 890| } # 891| Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/enosys.c: scope_hint: In function ‘main’ util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/enosys.c:191:28: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_block(optarg, 38, & syscalls, 379)’ # 189| blocked = parse_block(optarg, ENOSYS, syscalls, ARRAY_SIZE(syscalls)); # 190| list_add(&blocked->head, &blocked_syscalls); # 191|-> if (blocked->number == __NR_execve) # 192| blocking_execve = true; # 193| Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’ util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c:529:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)n, 8) + (long unsigned int)i * 8’ util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’ util-linux-2.42.start-build/util-linux-2.42.start/include/optutils.h:8: included_from: Included from here. util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c:58: included_from: Included from here. util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c:55: included_from: Included from here. # 527| # 528| for (i = 0; i < n; i++) { # 529|-> table[i] = names; # 530| names += strlen(names) + 1; # 531| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/waitpid.c: scope_hint: In function ‘parse_pids’ util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/waitpid.c:54:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_strings, 4)’ util-linux-2.42.start-build/util-linux-2.42.start/include/strutils.h:53:64: note: in definition of macro ‘strtopid_or_err’ util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/waitpid.c:54:55: note: in expansion of macro ‘_’ # 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-187.us-west-2.compute.internal |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | util-linux-2.42.start-1.20250416100303260405.pr3533.271.g8faca2e99 |
| diffbase-store-results-to | /tmp/tmpwzi3gxde/util-linux-2.42.start-1.20250416100303260405.pr3533.271.g8faca2e99.tar.xz |
| diffbase-time-created | 2025-04-16 10:24:32 |
| diffbase-time-finished | 2025-04-16 10:35:04 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,unicontrol,clippy,gcc' '-o' '/tmp/tmpwzi3gxde/util-linux-2.42.start-1.20250416100303260405.pr3533.271.g8faca2e99.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpwzi3gxde/util-linux-2.42.start-1.20250416100303260405.pr3533.271.g8faca2e99.src.rpm' |
| diffbase-tool-version | csmock-3.8.0-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-187.us-west-2.compute.internal |
| mock-config | fedora-rawhide-x86_64 |
| project-name | util-linux-2.42.start-1.20250416084725531102.master.267.gefb22a49e |
| store-results-to | /tmp/tmprr_25dlj/util-linux-2.42.start-1.20250416084725531102.master.267.gefb22a49e.tar.xz |
| time-created | 2025-04-16 10:15:39 |
| time-finished | 2025-04-16 10:24:10 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,unicontrol,clippy,gcc' '-o' '/tmp/tmprr_25dlj/util-linux-2.42.start-1.20250416084725531102.master.267.gefb22a49e.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmprr_25dlj/util-linux-2.42.start-1.20250416084725531102.master.267.gefb22a49e.src.rpm' |
| tool-version | csmock-3.8.0-1.el9 |