Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘new_filter’
util-linux-2.42.start/lsfd-cmd/lsfd.c:2394:28: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(17, 8) + i * 8’
# 2392|   	struct libscols_counter *ct;
# 2393|   
# 2394|-> 	f = new_filter(spec->expr, false, ctl);
# 2395|   
# 2396|   	ct = scols_filter_new_counter(f);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
util-linux-2.42.start/lsfd-cmd/lsfd.c:2394:28: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(ct + 1, 8) + i * 8’
util-linux-2.42.start/lsfd-cmd/lsfd.c:2414:9: note: in expansion of macro ‘list_for_each’
# 2392|   	struct libscols_counter *ct;
# 2393|   
# 2394|-> 	f = new_filter(spec->expr, false, ctl);
# 2395|   
# 2396|   	ct = scols_filter_new_counter(f);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
util-linux-2.42.start/misc-utils/blkid.c: scope_hint: In function ‘main’
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) + (long unsigned int)numdev * 8’
util-linux-2.42.start/misc-utils/blkid.c:18: included_from: Included from here.
#  887|   				continue;
#  888|   
#  889|-> 			devices[numdev++] = dev;
#  890|   		}
#  891|   

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-6.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameutil-linux-2.42.start-7.20260113141040330229.master.1183.g6766bbf17
diffbase-store-results-to/tmp/tmpin0qjq5f/util-linux-2.42.start-7.20260113141040330229.master.1183.g6766bbf17.tar.xz
diffbase-time-created2026-01-14 01:34:41
diffbase-time-finished2026-01-14 01:54:28
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpin0qjq5f/util-linux-2.42.start-7.20260113141040330229.master.1183.g6766bbf17.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpin0qjq5f/util-linux-2.42.start-7.20260113141040330229.master.1183.g6766bbf17.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-6.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameutil-linux-2.42.start-7.20260114012150073763.pr3953.1189.ge5178ad49
store-results-to/tmp/tmp1bh7wz77/util-linux-2.42.start-7.20260114012150073763.pr3953.1189.ge5178ad49.tar.xz
time-created2026-01-14 01:54:57
time-finished2026-01-14 02:12:19
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp1bh7wz77/util-linux-2.42.start-7.20260114012150073763.pr3953.1189.ge5178ad49.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp1bh7wz77/util-linux-2.42.start-7.20260114012150073763.pr3953.1189.ge5178ad49.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9