Task #113603 - fixed.err

back to task #113603
download
Error: GCC_ANALYZER_WARNING (CWE-401):
util-linux-2.43.devel/disk-utils/fsck.c:64: included_from: Included from here.
util-linux-2.43.devel/include/xalloc.h: scope_hint: In function ‘execute’
util-linux-2.43.devel/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 240)’
util-linux-2.43.devel/include/c.h:23: included_from: Included from here.
util-linux-2.43.devel/disk-utils/fsck.c:58: included_from: Included from here.
util-linux-2.43.devel/disk-utils/fsck.c: scope_hint: In function ‘execute’
#   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):
util-linux-2.43.devel/misc-utils/blkid.c: scope_hint: In function ‘main’
util-linux-2.43.devel/misc-utils/blkid.c:886:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)(argc - optind), 8) + (long unsigned int)numdev * 8’
util-linux-2.43.devel/misc-utils/blkid.c:49: included_from: Included from here.
util-linux-2.43.devel/misc-utils/blkid.c:18: included_from: Included from here.
#  884|   				continue;
#  885|   
#  886|-> 			devices[numdev++] = dev;
#  887|   		}
#  888|