Task #37300 - fixed.err

back to task #37300
download
Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/blkid.c: scope_hint: In function ‘main’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/blkid.c:889:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)(argc - optind), 8)’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/blkid.c:49: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/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):
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:529: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’
util-linux-2.41.devel-build/util-linux-2.41.devel/include/optutils.h:8: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/hardlink.c:58: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/hardlink.c:55: included_from: Included from here.
#  527|   
#  528|   	for (i = 0; i < n; i++) {
#  529|-> 		table[i] = names;
#  530|   		names += strlen(names) + 1;
#  531|   	}

Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c: scope_hint: In function ‘parse_pids’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c:54:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_strings, 4)’
util-linux-2.41.devel-build/util-linux-2.41.devel/include/strutils.h:53:64: note: in definition of macro ‘strtopid_or_err’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c:54:55: note: in expansion of macro ‘_’
#   52|   
#   53|   	for (size_t i = 0; i < n_strings; i++)
#   54|-> 		pids[i] = strtopid_or_err(strings[i], _("failed to parse pid"));
#   55|   
#   56|   	return pids;