Newly introduced defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
util-linux-2.41.devel-build/util-linux-2.41.devel/disk-utils/fdformat.c: scope_hint: In function ‘verify_disk’
util-linux-2.41.devel-build/util-linux-2.41.devel/disk-utils/fdformat.c:127:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)track_size)’
util-linux-2.41.devel-build/util-linux-2.41.devel/disk-utils/fdformat.c:28: included_from: Included from here.
#  125|   				}
#  126|   				for (count = 0; count < track_size; count++)
#  127|-> 					if (data[count] != FD_FILL_BYTE) {
#  128|   						if (retries_left) {
#  129|   							format_begin(ctrl);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c: scope_hint: In function 'mnt_table_find_target'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1196:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'fs'
util-linux-2.41.devel-build/util-linux-2.41.devel/include/c.h:22: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:29: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:52: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:32: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1714:9: note: in expansion of macro 'DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1720:17: note: in expansion of macro 'DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1100:9: note: in expansion of macro 'DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1154:9: note: in expansion of macro 'DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1179:9: note: in expansion of macro 'DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:189:28: note: in expansion of macro 'IS_ITER_FORWARD'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:868:17: note: in expansion of macro 'MNT_ITER_INIT'
# 1194|   		char *p;
# 1195|   
# 1196|-> 		if (!fs->target
# 1197|   		    || mnt_fs_is_swaparea(fs)
# 1198|   		    || mnt_fs_is_kernel(fs)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/hardlink.c:522:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)n, 8) + (long unsigned int)i * 8’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
#  520|   
#  521|   	for (i = 0; i < n; i++) {
#  522|-> 		table[i] = names;
#  523|   		names += strlen(names) + 1;
#  524|   	}

Scan Properties

analyzer-version-clippy1.80.1
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.80.1
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.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-58.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameutil-linux-2.41.devel-1.20240821092534121521.master.637.g96ac92a3d
diffbase-store-results-to/tmp/tmpzach19s3/util-linux-2.41.devel-1.20240821092534121521.master.637.g96ac92a3d.tar.xz
diffbase-time-created2024-08-21 18:43:29
diffbase-time-finished2024-08-21 18:56:59
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,shellcheck,gcc,clippy' '-o' '/tmp/tmpzach19s3/util-linux-2.41.devel-1.20240821092534121521.master.637.g96ac92a3d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpzach19s3/util-linux-2.41.devel-1.20240821092534121521.master.637.g96ac92a3d.src.rpm'
diffbase-tool-versioncsmock-3.6.1-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-58.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-nameutil-linux-2.41.devel-1.20240821134745029307.pr3092.663.g5f3e61936
store-results-to/tmp/tmpfjv4kk_u/util-linux-2.41.devel-1.20240821134745029307.pr3092.663.g5f3e61936.tar.xz
time-created2024-08-21 19:11:51
time-finished2024-08-21 19:22:05
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,shellcheck,gcc,clippy' '-o' '/tmp/tmpfjv4kk_u/util-linux-2.41.devel-1.20240821134745029307.pr3092.663.g5f3e61936.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpfjv4kk_u/util-linux-2.41.devel-1.20240821134745029307.pr3092.663.g5f3e61936.src.rpm'
tool-versioncsmock-3.6.1-1.el9