Task #144553 - added.err

back to task #144553
download
Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.43.devel/disk-utils/cfdisk.c: scope_hint: In function ‘ui_create_label’
util-linux-2.43.devel/disk-utils/cfdisk.c:2226:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(fdisk_get_nlabels(*cf.cxt) + 1, 32)’
util-linux-2.43.devel/include/debug.h:118:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
util-linux-2.43.devel/disk-utils/cfdisk.c:270:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
util-linux-2.43.devel/include/debug.h:118:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
util-linux-2.43.devel/disk-utils/cfdisk.c:270:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
util-linux-2.43.devel/include/debug.h:82:9: note: in expansion of macro ‘__UL_DBG_CALL’
util-linux-2.43.devel/include/debug.h:88:9: note: in expansion of macro ‘__UL_DBG_OBJ’
util-linux-2.43.devel/disk-utils/cfdisk.c:266:25: note: in expansion of macro ‘__UL_DBG’
util-linux-2.43.devel/disk-utils/cfdisk.c:2214:9: note: in expansion of macro ‘DBG’
# 2224|   		    fdisk_label_get_type(lb) == FDISK_DISKLABEL_BSD)
# 2225|   			continue;
# 2226|-> 		cm[i++].name = fdisk_label_get_name(lb);
# 2227|   	}
# 2228|   

Error: GCC_ANALYZER_WARNING (CWE-401):
util-linux-2.43.devel/libfdisk/src/gpt.c: scope_hint: In function 'gpt_create_disklabel'
util-linux-2.43.devel/libfdisk/src/gpt.c:2726:12: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(1, *cxt.sector_size)'
util-linux-2.43.devel/include/pt-mbr.h:8: included_from: Included from here.
util-linux-2.43.devel/libfdisk/src/gpt.c:30: included_from: Included from here.
util-linux-2.43.devel/libfdisk/src/gpt.c:2695:16: note: in expansion of macro 'fdisk_is_label'
util-linux-2.43.devel/libfdisk/src/gpt.c: scope_hint: In function 'gpt_create_disklabel'
# 2724|   	/* backup ("copy" primary) */
# 2725|   	gpt->bheader = calloc(1, cxt->sector_size);
# 2726|-> 	if (!gpt->bheader) {
# 2727|   		rc = -ENOMEM;
# 2728|   		goto done;

Error: GCC_ANALYZER_WARNING (CWE-401):
util-linux-2.43.devel/libfdisk/src/gpt.c:2743:9: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(1, esz)'
util-linux-2.43.devel/libfdisk/src/gpt.c:2695:16: note: in expansion of macro 'fdisk_is_label'
util-linux-2.43.devel/libfdisk/src/gpt.c: scope_hint: In function 'gpt_create_disklabel'
# 2741|   		goto done;
# 2742|   	}
# 2743|-> 	gpt_recompute_crc(gpt->pheader, gpt->ents);
# 2744|   	gpt_recompute_crc(gpt->bheader, gpt->ents);
# 2745|   

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)’
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|