Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘new_filter’
util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(17, 8)’
#   66|   	void *ret = calloc(nelems, size);
#   67|   
#   68|-> 	if (!ret && size && nelems)
#   69|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
#   70|   	return ret;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(ct + 1, 8)’
util-linux-2.42.start/lsfd-cmd/lsfd.c:50: included_from: Included from here.
util-linux-2.42.start/lsfd-cmd/lsfd.c:2411:9: note: in expansion of macro ‘list_for_each’
#   66|   	void *ret = calloc(nelems, size);
#   67|   
#   68|-> 	if (!ret && size && nelems)
#   69|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
#   70|   	return ret;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
util-linux-2.42.start/misc-utils/logger.c:1050:34: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(*ctl.max_message_size + 4)’
# 1048|   
# 1049|   		while (c != EOF && c != '\n' && i < ctl->max_message_size) {
# 1050|-> 			buf[i++] = c;
# 1051|   			c = getchar();
# 1052|   		}

Error: CPPCHECK_WARNING (CWE-476): [#def4]
util-linux-2.42.start/sys-utils/lscpu-arm.c:562: warning[nullPointer]: Possible null pointer dereference: parts
#  560|   	tb = arm_mktable(cxt, "arm-models");
#  561|   
#  562|-> 	for (i = 0; parts[i].id != -1; i++) {
#  563|   		struct libscols_line *ln;
#  564|   		ln = scols_table_new_line(tb, NULL);

Error: CPPCHECK_WARNING (CWE-476): [#def5]
util-linux-2.42.start/sys-utils/lscpu-arm.c:592: warning[nullPointer]: Possible null pointer dereference: parts
#  590|   		errx(EXIT_FAILURE, _("implementer not found"));
#  591|   
#  592|-> 	for (i = 0; parts[i].id != -1; i++) {
#  593|   		if (parts[i].id == model) {
#  594|   			printf("%s\n", parts[i].name);

Scan Properties

analyzer-version-clippy1.93.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.1
analyzer-version-gcc-analyzer16.0.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.93.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.1
diffbase-analyzer-version-gcc-analyzer16.0.1
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-24.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.20260119.105402.g7a5be1b.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameutil-linux-2.42.start-7.20260126103321598347.master.1228.g6fb39c43d
diffbase-store-results-to/tmp/tmpac204phc/util-linux-2.42.start-7.20260126103321598347.master.1228.g6fb39c43d.tar.xz
diffbase-time-created2026-01-26 11:18:35
diffbase-time-finished2026-01-26 11:36:03
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpac204phc/util-linux-2.42.start-7.20260126103321598347.master.1228.g6fb39c43d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpac204phc/util-linux-2.42.start-7.20260126103321598347.master.1228.g6fb39c43d.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-24.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260119.105402.g7a5be1b.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameutil-linux-2.42.start-7.20260126110435375097.pr3986.1229.g5043745a2
store-results-to/tmp/tmpm0krgkjm/util-linux-2.42.start-7.20260126110435375097.pr3986.1229.g5043745a2.tar.xz
time-created2026-01-26 11:36:43
time-finished2026-01-26 11:53:38
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpm0krgkjm/util-linux-2.42.start-7.20260126110435375097.pr3986.1229.g5043745a2.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpm0krgkjm/util-linux-2.42.start-7.20260126110435375097.pr3986.1229.g5043745a2.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9