Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] util-linux-2.42.start/disk-utils/cfdisk.c:2182:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(fdisk_get_nlabels(*cf.cxt) + 1, 32) + i * 32’ util-linux-2.42.start/disk-utils/cfdisk.c:267:25: note: in expansion of macro ‘__UL_DBG’ util-linux-2.42.start/disk-utils/cfdisk.c:2170:9: note: in expansion of macro ‘DBG’ # 2180| fdisk_label_get_type(lb) == FDISK_DISKLABEL_BSD) # 2181| continue; # 2182|-> cm[i++].name = fdisk_label_get_name(lb); # 2183| } # 2184| Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] util-linux-2.42.start/disk-utils/cfdisk.c:2182:32: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(fdisk_get_nlabels(*cf.cxt) + 1, 32) + i * 32’ util-linux-2.42.start/disk-utils/cfdisk.c:267:25: note: in expansion of macro ‘__UL_DBG’ util-linux-2.42.start/disk-utils/cfdisk.c:2170:9: note: in expansion of macro ‘DBG’ # 2180| fdisk_label_get_type(lb) == FDISK_DISKLABEL_BSD) # 2181| continue; # 2182|-> cm[i++].name = fdisk_label_get_name(lb); # 2183| } # 2184| Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] util-linux-2.42.start/disk-utils/fdformat.c:129:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(track_size) + count’ util-linux-2.42.start/disk-utils/fdformat.c:20: included_from: Included from here. # 127| } # 128| for (count = 0; count < track_size; count++) # 129|-> if (data[count] != FD_FILL_BYTE) { # 130| if (retries_left) { # 131| format_begin(ctrl); Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] util-linux-2.42.start/misc-utils/copyfilerange.c:34: included_from: Included from here. util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’ util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘range_files’ util-linux-2.42.start/include/c.h:23: included_from: Included from here. util-linux-2.42.start/misc-utils/copyfilerange.c:31: included_from: Included from here. # 93| ret = strdup(str); # 94| if (!ret) # 95|-> err(XALLOC_EXIT_CODE, "cannot duplicate string"); # 96| return ret; # 97| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] util-linux-2.42.start/login-utils/last.c:48: included_from: Included from here. util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’ util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(8) + nfiles * 8’ util-linux-2.42.start/include/optutils.h:8: included_from: Included from here. util-linux-2.42.start/login-utils/last.c:46: included_from: Included from here. # 93| ret = strdup(str); # 94| if (!ret) # 95|-> err(XALLOC_EXIT_CODE, "cannot duplicate string"); # 96| return ret; # 97| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def6] util-linux-2.42.start/misc-utils/copyfilerange.c: scope_hint: In function ‘main’ util-linux-2.42.start/misc-utils/copyfilerange.c:221:53: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘range_files’ # 219| if (!range_files) # 220| range_files = xmalloc(sizeof(char *) * argc); # 221|-> range_files[nrange_files++] = xstrdup(optarg); # 222| break; # 223| case 'v': Error: GCC_ANALYZER_WARNING (CWE-401): [#def7] util-linux-2.42.start/misc-utils/copyfilerange.c:244:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ util-linux-2.42.start/misc-utils/copyfilerange.c:244:36: note: in expansion of macro ‘_’ # 242| # 243| if (!range.in_filename) # 244|-> errx(EXIT_FAILURE, _("source file is required")); # 245| # 246| if (!range.out_filename) Error: GCC_ANALYZER_WARNING (CWE-401): [#def8] util-linux-2.42.start/misc-utils/copyfilerange.c:244:17: warning[-Wanalyzer-malloc-leak]: leak of ‘range_files’ util-linux-2.42.start/include/nls.h:27: included_from: Included from here. util-linux-2.42.start/misc-utils/copyfilerange.c:32: included_from: Included from here. util-linux-2.42.start/misc-utils/copyfilerange.c:244:36: note: in expansion of macro ‘_’ # 242| # 243| if (!range.in_filename) # 244|-> errx(EXIT_FAILURE, _("source file is required")); # 245| # 246| if (!range.out_filename) Error: GCC_ANALYZER_WARNING (CWE-476): [#def9] util-linux-2.42.start/misc-utils/logger.c:1053:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(*ctl.max_message_size + 4)’ # 1051| c = getchar(); # 1052| } # 1053|-> buf[i] = '\0'; # 1054| # 1055| if (i > 0 || !ctl->skip_empty_lines) {
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.1 |
| analyzer-version-gcc-analyzer | 16.0.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.92.0 |
| diffbase-analyzer-version-cppcheck | 2.19.1 |
| diffbase-analyzer-version-gcc | 16.0.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.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-181.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.20260119.105402.g7a5be1b.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | util-linux-2.42.start-7.20260120144046788635.master.1216.gc25b941da |
| diffbase-store-results-to | /tmp/tmpj625dle8/util-linux-2.42.start-7.20260120144046788635.master.1216.gc25b941da.tar.xz |
| diffbase-time-created | 2026-01-20 19:54:35 |
| diffbase-time-finished | 2026-01-20 20:13:08 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpj625dle8/util-linux-2.42.start-7.20260120144046788635.master.1216.gc25b941da.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpj625dle8/util-linux-2.42.start-7.20260120144046788635.master.1216.gc25b941da.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |
| 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.20260119.105402.g7a5be1b.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | util-linux-2.42.start-7.20260120194103112544.pr3947.1277.gf22b5ec9a |
| store-results-to | /tmp/tmpg08jri93/util-linux-2.42.start-7.20260120194103112544.pr3947.1277.gf22b5ec9a.tar.xz |
| time-created | 2026-01-20 20:13:49 |
| time-finished | 2026-01-20 20:30:58 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpg08jri93/util-linux-2.42.start-7.20260120194103112544.pr3947.1277.gf22b5ec9a.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpg08jri93/util-linux-2.42.start-7.20260120194103112544.pr3947.1277.gf22b5ec9a.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |