Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
util-linux-2.42.start/libmount/src/monitor.c: scope_hint: In function 'mnt_monitor_next_change'
util-linux-2.42.start/libmount/src/monitor.c:444:20: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
util-linux-2.42.start/include/c.h:23: included_from: Included from here.
util-linux-2.42.start/libmount/src/mountP.h:29: included_from: Included from here.
util-linux-2.42.start/libmount/src/monitor.c:38: included_from: Included from here.
#  442|   	}
#  443|   
#  444|-> 	me->active = 0;
#  445|   	mn->last = me;
#  446|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
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)’
util-linux-2.42.start/misc-utils/blkid.c:49: included_from: Included from here.
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-476): [#def3]
util-linux-2.42.start/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
util-linux-2.42.start/misc-utils/hardlink.c:528:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)n, 8)’
util-linux-2.42.start/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
util-linux-2.42.start/misc-utils/hardlink.c:58: included_from: Included from here.
util-linux-2.42.start/misc-utils/hardlink.c:251:21: note: in expansion of macro ‘is_log_enabled’
util-linux-2.42.start/misc-utils/hardlink.c:562:9: note: in expansion of macro ‘jlog’
util-linux-2.42.start/misc-utils/hardlink.c:55: included_from: Included from here.
#  526|   
#  527|   	for (i = 0; i < n; i++) {
#  528|-> 		table[i] = names;
#  529|   		names += strlen(names) + 1;
#  530|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
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) + i * 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;

Scan Properties

analyzer-version-clippy1.88.0
analyzer-version-cppcheck2.18.0
analyzer-version-gcc15.1.1
analyzer-version-gcc-analyzer15.1.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.88.0
diffbase-analyzer-version-cppcheck2.18.0
diffbase-analyzer-version-gcc15.1.1
diffbase-analyzer-version-gcc-analyzer15.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-201.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.20250805112416922029.master.521.gec4677910
diffbase-store-results-to/tmp/tmpu5lllny3/util-linux-2.42.start-7.20250805112416922029.master.521.gec4677910.tar.xz
diffbase-time-created2025-08-07 11:36:38
diffbase-time-finished2025-08-07 11:45:34
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,cppcheck,clippy,gcc' '-o' '/tmp/tmpu5lllny3/util-linux-2.42.start-7.20250805112416922029.master.521.gec4677910.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpu5lllny3/util-linux-2.42.start-7.20250805112416922029.master.521.gec4677910.src.rpm'
diffbase-tool-versioncsmock-3.8.2.20250807.103350.g1f0dd98-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-201.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.20250807112511695298.pr3676.538.g489ebfe70
store-results-to/tmp/tmp_hlb8lyw/util-linux-2.42.start-7.20250807112511695298.pr3676.538.g489ebfe70.tar.xz
time-created2025-08-07 11:45:53
time-finished2025-08-07 11:54:17
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,cppcheck,clippy,gcc' '-o' '/tmp/tmp_hlb8lyw/util-linux-2.42.start-7.20250807112511695298.pr3676.538.g489ebfe70.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp_hlb8lyw/util-linux-2.42.start-7.20250807112511695298.pr3676.538.g489ebfe70.src.rpm'
tool-versioncsmock-3.8.2.20250807.103350.g1f0dd98-1.el9