# util-linux-2.42.start-7.20260204095215160565.master.1350.g4a4eb88f2

## List of Findings

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
    util-linux-2.42.start/disk-utils/addpart.c: scope_hint: In function ‘main’
    util-linux-2.42.start/disk-utils/addpart.c:69:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(argv[1], 0)’
    util-linux-2.42.start/disk-utils/addpart.c:19: included_from: Included from here.
    util-linux-2.42.start/include/strutils.h:40:57: note: in definition of macro ‘strtou64_or_err’
    util-linux-2.42.start/disk-utils/addpart.c:72:50: note: in expansion of macro ‘_’
    #   67|   		err(EXIT_FAILURE, _("cannot open %s"), argv[1]);
    #   68|
    #   69|-> 	if (partx_add_partition(fd,
    #   70|   			strtou32_or_err(argv[2], _("invalid partition number argument")),
    #   71|   			strtou64_or_err(argv[3], _("invalid start argument")),

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
    util-linux-2.42.start/disk-utils/blockdev.c: scope_hint: In function ‘report_device’
    util-linux-2.42.start/disk-utils/blockdev.c:494:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/partitions", "r")’
    #  492|   	struct stat st;
    #  493|
    #  494|-> 	fd = open(device, O_RDONLY | O_NONBLOCK);
    #  495|   	if (fd < 0) {
    #  496|   		if (!quiet)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
    util-linux-2.42.start/disk-utils/blockdev.c:494:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/partitions", "r")’
    #  492|   	struct stat st;
    #  493|
    #  494|-> 	fd = open(device, O_RDONLY | O_NONBLOCK);
    #  495|   	if (fd < 0) {
    #  496|   		if (!quiet)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
    util-linux-2.42.start/disk-utils/blockdev.c:507:42: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/partitions", "r")’
    #  505|   		struct path_cxt *pc;
    #  506|
    #  507|-> 		pc = ul_new_sysfs_path(st.st_rdev, NULL, NULL);
    #  508|   		if (pc &&
    #  509|   		    sysfs_blkdev_get_wholedisk(pc, NULL, 0, &disk) == 0 &&

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
    util-linux-2.42.start/disk-utils/blockdev.c:507:42: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/partitions", "r")’
    #  505|   		struct path_cxt *pc;
    #  506|
    #  507|-> 		pc = ul_new_sysfs_path(st.st_rdev, NULL, NULL);
    #  508|   		if (pc &&
    #  509|   		    sysfs_blkdev_get_wholedisk(pc, NULL, 0, &disk) == 0 &&

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
    util-linux-2.42.start/disk-utils/blockdev.c:518:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/partitions", "r")’
    #  516|   		ul_unref_path(pc);
    #  517|   	}
    #  518|-> 	if (!*start_str)
    #  519|   		snprintf(start_str, sizeof(start_str), "%15ju", start);
    #  520|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
    util-linux-2.42.start/disk-utils/blockdev.c:518:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/partitions", "r")’
    #  516|   		ul_unref_path(pc);
    #  517|   	}
    #  518|-> 	if (!*start_str)
    #  519|   		snprintf(start_str, sizeof(start_str), "%15ju", start);
    #  520|

    Error: GCC_ANALYZER_WARNING (CWE-404): [#def8]
    util-linux-2.42.start/disk-utils/cfdisk.c: scope_hint: In function ‘ui_warnx’
    util-linux-2.42.start/disk-utils/cfdisk.c:717:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
    #  715|   	if (ui_enabled)
    #  716|   		ui_vprint_center(WARN_LINE,
    #  717|-> 			colors_wanted() ? COLOR_PAIR(CFDISK_CL_WARNING) : 0,
    #  718|   			fmt, ap);
    #  719|   	else {

    Error: GCC_ANALYZER_WARNING (CWE-404): [#def9]
    util-linux-2.42.start/disk-utils/cfdisk.c: scope_hint: In function ‘ui_info’
    util-linux-2.42.start/disk-utils/cfdisk.c:792:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
    util-linux-2.42.start/disk-utils/cfdisk.c:48: included_from: Included from here.
    #  790|   	if (ui_enabled)
    #  791|   		ui_vprint_center(INFO_LINE,
    #  792|-> 				colors_wanted() ? COLOR_PAIR(CFDISK_CL_INFO) : 0,
    #  793|   				fmt, ap);
    #  794|   	else {

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
    util-linux-2.42.start/disk-utils/cfdisk.c: scope_hint: In function ‘menu_push’
    util-linux-2.42.start/disk-utils/cfdisk.c:908:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
    util-linux-2.42.start/disk-utils/cfdisk.c:267:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/disk-utils/cfdisk.c:2170:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/disk-utils/cfdisk.c:267:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/disk-utils/cfdisk.c:903:9: note: in expansion of macro ‘DBG’
    #  906|   	m->items = items;
    #  907|
    #  908|-> 	for (d = m->items; d->name; d++) {
    #  909|   		const char *name = _(d->name);
    #  910|   		size_t len = mbs_safe_width(name);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
    util-linux-2.42.start/disk-utils/cfdisk.c: scope_hint: In function ‘menu_set_title’
    util-linux-2.42.start/disk-utils/cfdisk.c:952:1: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
    util-linux-2.42.start/disk-utils/cfdisk.c:267:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/disk-utils/cfdisk.c:2170:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/disk-utils/cfdisk.c:267:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/disk-utils/cfdisk.c:903:9: note: in expansion of macro ‘DBG’
    #  950|   	free(m->title);
    #  951|   	m->title = str;
    #  952|-> }
    #  953|
    #  954|

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
    util-linux-2.42.start/disk-utils/cfdisk.c: scope_hint: In function ‘ui_get_parttype’
    util-linux-2.42.start/disk-utils/cfdisk.c:2023:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(fdisk_label_get_nparttypes(fdisk_get_label(*cf.cxt, 0)) + 1, 32) + i * 32’
    # 2021|   		char *name;
    # 2022|
    # 2023|-> 		cm[i].userdata = (void *) x;
    # 2024|   		if (codetypes)
    # 2025|   			xasprintf(&name, "%2x %s",

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
    util-linux-2.42.start/disk-utils/cfdisk.c:2023:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(fdisk_label_get_nparttypes(fdisk_get_label(*cf.cxt, 0)) + 1, 32)’
    # 2021|   		char *name;
    # 2022|
    # 2023|-> 		cm[i].userdata = (void *) x;
    # 2024|   		if (codetypes)
    # 2025|   			xasprintf(&name, "%2x %s",

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
    util-linux-2.42.start/disk-utils/cfdisk.c:2025:25: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(fdisk_label_get_nparttypes(fdisk_get_label(*cf.cxt, 0)) + 1, 32) + i * 32’
    # 2023|   		cm[i].userdata = (void *) x;
    # 2024|   		if (codetypes)
    # 2025|-> 			xasprintf(&name, "%2x %s",
    # 2026|   				fdisk_parttype_get_code(x),
    # 2027|   				_(fdisk_parttype_get_name(x)));

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
    util-linux-2.42.start/disk-utils/cfdisk.c: scope_hint: In function ‘ui_create_label’
    util-linux-2.42.start/disk-utils/cfdisk.c:2182:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(fdisk_get_nlabels(*cf.cxt) + 1, 32) + i * 32’
    util-linux-2.42.start/disk-utils/cfdisk.c:267:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/disk-utils/cfdisk.c:2170:9: note: in expansion of macro ‘DBG’
    # 2180|   		    fdisk_label_get_type(lb) == FDISK_DISKLABEL_BSD)
    # 2181|   			continue;
    # 2182|-> 		cm[i++].name = fdisk_label_get_name(lb);
    # 2183|   	}
    # 2184|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
    util-linux-2.42.start/disk-utils/cfdisk.c:2182:32: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(fdisk_get_nlabels(*cf.cxt) + 1, 32) + i * 32’
    util-linux-2.42.start/disk-utils/cfdisk.c:267:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/disk-utils/cfdisk.c:2170:9: note: in expansion of macro ‘DBG’
    # 2180|   		    fdisk_label_get_type(lb) == FDISK_DISKLABEL_BSD)
    # 2181|   			continue;
    # 2182|-> 		cm[i++].name = fdisk_label_get_name(lb);
    # 2183|   	}
    # 2184|

    Error: CPPCHECK_WARNING (CWE-457): [#def17]
    util-linux-2.42.start/disk-utils/fdformat.c:68: error[uninitvar]: Uninitialized variable: current
    #   66|   	format_begin(ctrl);
    #   67|
    #   68|-> 	for (current.track = track_from; current.track <= track_to; current.track++) {
    #   69|   		for (current.head = 0; current.head < param.head; current.head++) {
    #   70|   			printf("%3u/%u\b\b\b\b\b", current.track, current.head);

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
    util-linux-2.42.start/disk-utils/fdformat.c:129:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(track_size) + count’
    util-linux-2.42.start/disk-utils/fdformat.c:20: included_from: Included from here.
    #  127|   				}
    #  128|   				for (count = 0; count < track_size; count++)
    #  129|-> 					if (data[count] != FD_FILL_BYTE) {
    #  130|   						if (retries_left) {
    #  131|   							format_begin(ctrl);

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
    util-linux-2.42.start/disk-utils/fdformat.c:129:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(track_size)’
    #  127|   				}
    #  128|   				for (count = 0; count < track_size; count++)
    #  129|-> 					if (data[count] != FD_FILL_BYTE) {
    #  130|   						if (retries_left) {
    #  131|   							format_begin(ctrl);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
    util-linux-2.42.start/disk-utils/fdisk-list.c: scope_hint: In function ‘is_ide_cdrom_or_tape’
    util-linux-2.42.start/disk-utils/fdisk-list.c:39:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
    #   37|   	int fd, ret;
    #   38|
    #   39|-> 	if ((fd = open(device, O_RDONLY|O_NONBLOCK)) < 0)
    #   40|   		return 0;
    #   41|   	ret = blkdev_is_cdrom(fd);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
    util-linux-2.42.start/disk-utils/fdisk-list.c:39:19: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
    #   37|   	int fd, ret;
    #   38|
    #   39|-> 	if ((fd = open(device, O_RDONLY|O_NONBLOCK)) < 0)
    #   40|   		return 0;
    #   41|   	ret = blkdev_is_cdrom(fd);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
    util-linux-2.42.start/disk-utils/fdisk-list.c:41:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(device, 2048)’
    #   39|   	if ((fd = open(device, O_RDONLY|O_NONBLOCK)) < 0)
    #   40|   		return 0;
    #   41|-> 	ret = blkdev_is_cdrom(fd);
    #   42|
    #   43|   	close(fd);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
    util-linux-2.42.start/disk-utils/fdisk-list.c:41:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
    #   39|   	if ((fd = open(device, O_RDONLY|O_NONBLOCK)) < 0)
    #   40|   		return 0;
    #   41|-> 	ret = blkdev_is_cdrom(fd);
    #   42|
    #   43|   	close(fd);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
    util-linux-2.42.start/disk-utils/fdisk-list.c:41:15: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
    #   39|   	if ((fd = open(device, O_RDONLY|O_NONBLOCK)) < 0)
    #   40|   		return 0;
    #   41|-> 	ret = blkdev_is_cdrom(fd);
    #   42|
    #   43|   	close(fd);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
    util-linux-2.42.start/disk-utils/fdisk-list.c: scope_hint: In function ‘next_proc_partition’
    util-linux-2.42.start/disk-utils/fdisk-list.c:413:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
    #  411|   			continue;
    #  412|
    #  413|-> 		devno = sysfs_devname_to_devno(buf);
    #  414|   		if (devno <= 0)
    #  415|   			continue;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
    util-linux-2.42.start/disk-utils/fdisk-list.c:413:25: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
    #  411|   			continue;
    #  412|
    #  413|-> 		devno = sysfs_devname_to_devno(buf);
    #  414|   		if (devno <= 0)
    #  415|   			continue;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
    util-linux-2.42.start/disk-utils/fdisk-list.c:417:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
    #  415|   			continue;
    #  416|
    #  417|-> 		if (sysfs_devno_is_dm_private(devno, NULL) ||
    #  418|   		    sysfs_devno_is_wholedisk(devno) <= 0)
    #  419|   			continue;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
    util-linux-2.42.start/disk-utils/fdisk-list.c:417:21: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
    #  415|   			continue;
    #  416|
    #  417|-> 		if (sysfs_devno_is_dm_private(devno, NULL) ||
    #  418|   		    sysfs_devno_is_wholedisk(devno) <= 0)
    #  419|   			continue;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
    util-linux-2.42.start/disk-utils/fdisk-list.c:418:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
    #  416|
    #  417|   		if (sysfs_devno_is_dm_private(devno, NULL) ||
    #  418|-> 		    sysfs_devno_is_wholedisk(devno) <= 0)
    #  419|   			continue;
    #  420|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
    util-linux-2.42.start/disk-utils/fdisk-list.c:418:21: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
    #  416|
    #  417|   		if (sysfs_devno_is_dm_private(devno, NULL) ||
    #  418|-> 		    sysfs_devno_is_wholedisk(devno) <= 0)
    #  419|   			continue;
    #  420|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
    util-linux-2.42.start/disk-utils/fdisk-list.c:421:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
    #  419|   			continue;
    #  420|
    #  421|-> 		if (!sysfs_devno_to_devpath(devno, buf, sizeof(buf)))
    #  422|   			continue;
    #  423|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
    util-linux-2.42.start/disk-utils/fdisk-list.c:421:22: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
    #  419|   			continue;
    #  420|
    #  421|-> 		if (!sysfs_devno_to_devpath(devno, buf, sizeof(buf)))
    #  422|   			continue;
    #  423|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
    util-linux-2.42.start/disk-utils/fdisk-list.c:424:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
    #  422|   			continue;
    #  423|
    #  424|-> 		cn = ul_canonicalize_path(buf);
    #  425|   		if (!cn)
    #  426|   			continue;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
    util-linux-2.42.start/disk-utils/fdisk-list.c:424:22: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
    #  422|   			continue;
    #  423|
    #  424|-> 		cn = ul_canonicalize_path(buf);
    #  425|   		if (!cn)
    #  426|   			continue;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
    util-linux-2.42.start/disk-utils/fdisk-list.c: scope_hint: In function ‘fieldname_to_id’
    util-linux-2.42.start/disk-utils/fdisk-list.c:556:14: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/disk-utils/fdisk-list.c:15: included_from: Included from here.
    #  554|   		return -1;
    #  555|
    #  556|-> 	fl = fdisk_label_get_field_by_name(fields_label, buf);
    #  557|   	if (!fl) {
    #  558|   		warnx(_("%s unknown column: %s"),

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
    util-linux-2.42.start/disk-utils/fdisk-list.c:558:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
    #  556|   	fl = fdisk_label_get_field_by_name(fields_label, buf);
    #  557|   	if (!fl) {
    #  558|-> 		warnx(_("%s unknown column: %s"),
    #  559|   				fdisk_label_get_name(fields_label), buf);
    #  560|   		free(buf);

    Error: GCC_ANALYZER_WARNING (CWE-457): [#def37]
    util-linux-2.42.start/disk-utils/fdisk-menu.c: scope_hint: In function ‘next_menu_entry’
    util-linux-2.42.start/disk-utils/fdisk-menu.c:296:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘((unsigned char*)&*m)[8]’
    util-linux-2.42.start/include/pt-mbr.h:8: included_from: Included from here.
    util-linux-2.42.start/disk-utils/fdisk-menu.c:21: included_from: Included from here.
    #  294|   		    (m->label && (!lb || !(m->label & type))) ||
    #  295|   		/* unwanted for nested PT */
    #  296|-> 		    (m->nonested && parent) ||
    #  297|   		/* menu excluded for specified labels */
    #  298|   		    (m->exclude && lb && (m->exclude & type))) {

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
    util-linux-2.42.start/disk-utils/fdisk-menu.c: scope_hint: In function ‘script_write’
    util-linux-2.42.start/disk-utils/fdisk-menu.c:543:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "w")’
    #  541|   	}
    #  542|
    #  543|-> 	rc = fdisk_script_write_file(sc, f);
    #  544|   	if (rc)
    #  545|   		fdisk_warn(cxt, _("Failed to write script %s"), filename);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
    util-linux-2.42.start/disk-utils/fdisk-menu.c:543:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "w")’
    #  541|   	}
    #  542|
    #  543|-> 	rc = fdisk_script_write_file(sc, f);
    #  544|   	if (rc)
    #  545|   		fdisk_warn(cxt, _("Failed to write script %s"), filename);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
    util-linux-2.42.start/disk-utils/fdisk.c: scope_hint: In function ‘strtosize_sectors’
    util-linux-2.42.start/disk-utils/fdisk.c:674:14: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
    #  672|   	}
    #  673|
    #  674|-> 	rc = strtosize(str, res);
    #  675|   	if (rc == 0 && insec)
    #  676|   		*res *= sector_size;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
    util-linux-2.42.start/disk-utils/fdisk.c: scope_hint: In function ‘get_dev_blocks’
    util-linux-2.42.start/disk-utils/fdisk.c:1047:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev, 2048)’
    # 1045|   	if ((fd = open(dev, O_RDONLY|O_NONBLOCK)) < 0)
    # 1046|   		err(EXIT_FAILURE, _("cannot open %s"), dev);
    # 1047|-> 	ret = blkdev_get_sectors(fd, (unsigned long long *) &size);
    # 1048|   	close(fd);
    # 1049|   	if (ret < 0)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
    util-linux-2.42.start/disk-utils/fsck.c: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/disk-utils/fsck.c:995:28: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(fs_type)’
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/sys/types.h:25: included_from: Included from here.
    util-linux-2.42.start/disk-utils/fsck.c:34: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/disk-utils/fsck.c:58: included_from: Included from here.
    #  993|   			s += 2;
    #  994|   			negate = 1;
    #  995|-> 		} else if (*s == '!') {
    #  996|   			s++;
    #  997|   			negate = 1;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
    util-linux-2.42.start/disk-utils/fsck.c:1005:28: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(fs_type)’
    # 1003|   			s += 5;
    # 1004|   		loop_special_case:
    # 1005|-> 			cmp->type[num] = negate ? FS_TYPE_NEGOPT : FS_TYPE_OPT;
    # 1006|   		} else {
    # 1007|   			if (first_negate) {

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def44]
    util-linux-2.42.start/disk-utils/fsck.cramfs.c:480:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(pathbufsz)’ where non-null expected
    util-linux-2.42.start/disk-utils/fsck.cramfs.c:44: included_from: Included from here.
    /usr/include/string.h:47:14: note: argument 1 of ‘memcpy’ must be non-null
    #  478|
    #  479|   	/* TODO: Do we need to check end_dir for empty case? */
    #  480|-> 	memcpy(newpath, path, pathlen);
    #  481|   	newpath[pathlen] = '/';
    #  482|   	pathlen++;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
    util-linux-2.42.start/disk-utils/isosize.c: scope_hint: In function ‘is_iso’
    util-linux-2.42.start/disk-utils/isosize.c:48:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filenamep, 0)’
    #   46|   	char label[8];
    #   47|
    #   48|-> 	if (pread(fd, &label, 8, 0x8000) == -1)
    #   49|   		return 1;
    #   50|   	return memcmp(&label, &"\1CD001\1", 8);

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def46]
    util-linux-2.42.start/disk-utils/mkfs.cramfs.c: scope_hint: In function ‘do_mmap’
    util-linux-2.42.start/disk-utils/mkfs.cramfs.c:172:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc((long unsigned int)size)’ where non-null expected
    util-linux-2.42.start/disk-utils/mkfs.cramfs.c:30: included_from: Included from here.
    /usr/include/unistd.h:838:16: note: argument 2 of ‘readlink’ must be non-null
    #  170|   		 * always used as buffer rather than a string */
    #  171|   		start = xmalloc(size);
    #  172|-> 		if (readlink(path, start, size) < 0) {
    #  173|   			warn(_("readlink failed: %s"), path);
    #  174|   			warn_skip = 1;

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def47]
    util-linux-2.42.start/disk-utils/mkfs.cramfs.c: scope_hint: In function ‘parse_directory’
    util-linux-2.42.start/disk-utils/mkfs.cramfs.c:302:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(len + 257)’ where non-null expected
    util-linux-2.42.start/disk-utils/mkfs.cramfs.c:37: included_from: Included from here.
    /usr/include/string.h:47:14: note: argument 1 of ‘memcpy’ must be non-null
    #  300|   	/* TODO: Reuse the parent's buffer to save memcpy'ing and duplication. */
    #  301|   	path = xmalloc(len + 1 + MAX_INPUT_NAMELEN + 1);
    #  302|-> 	memcpy(path, name, len);
    #  303|   	endpath = path + len;
    #  304|   	*endpath = '/';

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
    util-linux-2.42.start/disk-utils/mkfs.cramfs.c:308:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  306|
    #  307|   	/* read in the directory and sort */
    #  308|-> 	dircount = scandir(name, &dirlist, NULL, cramsort);
    #  309|
    #  310|   	if (dircount < 0)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
    util-linux-2.42.start/disk-utils/mkfs.cramfs.c:311:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    util-linux-2.42.start/disk-utils/mkfs.cramfs.c:311:36: note: in expansion of macro ‘_’
    #  309|
    #  310|   	if (dircount < 0)
    #  311|-> 		err(MKFS_EX_ERROR, _("could not read directory %s"), name);
    #  312|
    #  313|   	/* process directory */

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
    util-linux-2.42.start/disk-utils/mkfs.cramfs.c:341:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    util-linux-2.42.start/disk-utils/mkfs.cramfs.c:341:30: note: in expansion of macro ‘_’
    #  339|
    #  340|   		if (lstat(path, &st) < 0) {
    #  341|-> 			warn(_("stat of %s failed"), endpath);
    #  342|   			warn_skip = 1;
    #  343|   			continue;

    Error: CPPCHECK_WARNING (CWE-190): [#def51]
    util-linux-2.42.start/disk-utils/mkfs.cramfs.c:377: error[integerOverflow]: Signed integer overflow for expression '-(1<<24)'.
    #  375|   		} else {
    #  376|   			entry->size = st.st_rdev;
    #  377|-> 			if (entry->size & -(1<<CRAMFS_SIZE_WIDTH))
    #  378|   				warn_dev = 1;
    #  379|   		}

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def52]
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/mkfs.minix.c:570:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘inode_map’ where non-null expected
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/mkfs.minix.c:65: included_from: Included from here.
    /usr/include/string.h:65:14: note: argument 1 of ‘memset’ must be non-null
    #  568|   	inode_map = xmalloc(imaps * MINIX_BLOCK_SIZE);
    #  569|   	zone_map = xmalloc(zmaps * MINIX_BLOCK_SIZE);
    #  570|-> 	memset(inode_map,0xff,imaps * MINIX_BLOCK_SIZE);
    #  571|   	memset(zone_map,0xff,zmaps * MINIX_BLOCK_SIZE);
    #  572|

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def53]
    util-linux-2.42.start/disk-utils/mkfs.minix.c:571:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘zone_map’ where non-null expected
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    /usr/include/string.h:65:14: note: argument 1 of ‘memset’ must be non-null
    #  569|   	zone_map = xmalloc(zmaps * MINIX_BLOCK_SIZE);
    #  570|   	memset(inode_map,0xff,imaps * MINIX_BLOCK_SIZE);
    #  571|-> 	memset(zone_map,0xff,zmaps * MINIX_BLOCK_SIZE);
    #  572|
    #  573|   	for (i = get_first_zone() ; i<zones ; i++)

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def54]
    util-linux-2.42.start/disk-utils/mkfs.minix.c:579:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘inode_buffer’ where non-null expected
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/minix_programs.h:30:25: note: in definition of macro ‘UPPER’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘setup_tables’
    /usr/include/string.h:65:14: note: argument 1 of ‘memset’ must be non-null
    #  577|
    #  578|   	inode_buffer = xmalloc(get_inode_buffer_size());
    #  579|-> 	memset(inode_buffer,0, get_inode_buffer_size());
    #  580|
    #  581|   	printf(P_("%lu inode\n", "%lu inodes\n", inodes), inodes);

    Error: GCC_ANALYZER_WARNING (CWE-479): [#def55]
    util-linux-2.42.start/disk-utils/mkfs.minix.c: scope_hint: In function ‘alarm_intr.part.0’
    util-linux-2.42.start/disk-utils/mkfs.minix.c:625:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
    #  623|   	if (!currently_testing)
    #  624|   		return;
    #  625|-> 	printf("%d ...", currently_testing);
    #  626|   	fflush(stdout);
    #  627|   }

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def56]
    util-linux-2.42.start/disk-utils/mkswap.c: scope_hint: In function ‘get_size’
    util-linux-2.42.start/disk-utils/mkswap.c:375:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*ctl.devname, 0)’
    #  373|   		if (fd < 0)
    #  374|   			err(EXIT_FAILURE, _("cannot open %s"), ctl->devname);
    #  375|-> 		if (blkdev_get_size(fd, &size) < 0)
    #  376|   			err(EXIT_FAILURE, _("cannot determine size of %s"), ctl->devname);
    #  377|   		if ((unsigned long long) ctl->offset > size)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
    util-linux-2.42.start/disk-utils/mkswap.c: scope_hint: In function ‘wipe_device’
    util-linux-2.42.start/disk-utils/mkswap.c:514:24: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(v)’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    #  512|   		}
    #  513|   #endif
    #  514|-> 	} else if (!ctl->quiet) {
    #  515|   		warnx(_("%s: warning: don't erase bootbits sectors"),
    #  516|   			ctl->devname);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
    util-linux-2.42.start/disk-utils/mkswap.c: scope_hint: In function ‘main’
    util-linux-2.42.start/disk-utils/mkswap.c:722:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl.signature_page’
    util-linux-2.42.start/disk-utils/mkswap.c:722:23: note: in expansion of macro ‘_’
    #  720|
    #  721|   	if (!ctl.devname) {
    #  722|-> 		warnx(_("error: Nowhere to set up swap on?"));
    #  723|   		errtryhelp(EXIT_FAILURE);
    #  724|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
    util-linux-2.42.start/disk-utils/partx.c:247:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
    #  245|   	dirname = xstrdup(path);
    #  246|
    #  247|-> 	while ((d = readdir(dir))) {
    #  248|   		int fd;
    #  249|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
    util-linux-2.42.start/disk-utils/partx.c:247:21: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(&path)’
    #  245|   	dirname = xstrdup(path);
    #  246|
    #  247|-> 	while ((d = readdir(dir))) {
    #  248|   		int fd;
    #  249|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
    util-linux-2.42.start/disk-utils/partx.c: scope_hint: In function ‘main’
    util-linux-2.42.start/disk-utils/partx.c:1035:34: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(wholedisk, 0)’
    # 1033|   		rc = del_parts(fd, wholedisk, disk_devno, lower, upper);
    # 1034|   	else {
    # 1035|-> 		blkid_probe pr = blkid_new_probe();
    # 1036|   		blkid_partlist ls = NULL;
    # 1037|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
    util-linux-2.42.start/disk-utils/partx.c:1038:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(wholedisk, 0)’
    # 1036|   		blkid_partlist ls = NULL;
    # 1037|
    # 1038|-> 		if (!pr || blkid_probe_set_device(pr, fd, 0, 0))
    # 1039|   			warnx(_("%s: failed to initialize blkid prober"),
    # 1040|   					wholedisk);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
    util-linux-2.42.start/disk-utils/partx.c:1039:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(wholedisk, 0)’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/disk-utils/partx.c:35: included_from: Included from here.
    util-linux-2.42.start/disk-utils/partx.c:1039:31: note: in expansion of macro ‘_’
    # 1037|
    # 1038|   		if (!pr || blkid_probe_set_device(pr, fd, 0, 0))
    # 1039|-> 			warnx(_("%s: failed to initialize blkid prober"),
    # 1040|   					wholedisk);
    # 1041|   		else {

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
    util-linux-2.42.start/disk-utils/partx.c:1070:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(wholedisk, 0)’
    util-linux-2.42.start/disk-utils/partx.c:1039:31: note: in expansion of macro ‘_’
    # 1068|   			rc = 1;
    # 1069|
    # 1070|-> 		blkid_free_probe(pr);
    # 1071|   	}
    # 1072|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def65]
    util-linux-2.42.start/disk-utils/partx.c: scope_hint: In function ‘close_fd’
    util-linux-2.42.start/disk-utils/partx.c:1075:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(wholedisk, 0)’
    util-linux-2.42.start/disk-utils/partx.c:1039:31: note: in expansion of macro ‘_’
    util-linux-2.42.start/disk-utils/partx.c:42: included_from: Included from here.
    # 1073|   	free(wholedisk);
    # 1074|
    # 1075|-> 	if (loopdev)
    # 1076|   		loopcxt_deinit(&lc);
    # 1077|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def66]
    util-linux-2.42.start/disk-utils/sfdisk.c: scope_hint: In function ‘get_size’
    util-linux-2.42.start/disk-utils/sfdisk.c:819:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev, 0)’
    #  817|   	}
    #  818|
    #  819|-> 	if (blkdev_get_sectors(fd, (unsigned long long *) sz) == -1) {
    #  820|   		if (!silent)
    #  821|   			warn(_("Cannot get size of %s"), dev);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def67]
    util-linux-2.42.start/disk-utils/swaplabel.c: scope_hint: In function ‘change_info’
    util-linux-2.42.start/disk-utils/swaplabel.c:74:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(devname, 2)’
    #   72|   		uuid_t newuuid;
    #   73|
    #   74|-> 		if (uuid_parse(uuid, newuuid) == -1)
    #   75|   			warnx(_("failed to parse UUID: %s"), uuid);
    #   76|   		else {

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
    util-linux-2.42.start/disk-utils/swaplabel.c:75:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(devname, 2)’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/disk-utils/swaplabel.c:29: included_from: Included from here.
    util-linux-2.42.start/disk-utils/swaplabel.c:75:31: note: in expansion of macro ‘_’
    #   73|
    #   74|   		if (uuid_parse(uuid, newuuid) == -1)
    #   75|-> 			warnx(_("failed to parse UUID: %s"), uuid);
    #   76|   		else {
    #   77|   			if (lseek(fd, SWAP_UUID_OFFSET, SEEK_SET) !=

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
    util-linux-2.42.start/include/all-io.h: scope_hint: In function 'write_all'
    util-linux-2.42.start/include/all-io.h:28:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[1]'
    #   26|
    #   27|   		errno = 0;
    #   28|-> 		tmp = write(fd, buf, count);
    #   29|   		if (tmp > 0) {
    #   30|   			count -= tmp;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def70]
    util-linux-2.42.start/sys-utils/unshare.c:47: included_from: Included from here.
    util-linux-2.42.start/include/all-io.h: scope_hint: In function ‘write_all’
    util-linux-2.42.start/include/all-io.h:28:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/setgroups", 1)’
    util-linux-2.42.start/sys-utils/unshare.c:20: included_from: Included from here.
    #   26|
    #   27|   		errno = 0;
    #   28|-> 		tmp = write(fd, buf, count);
    #   29|   		if (tmp > 0) {
    #   30|   			count -= tmp;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
    util-linux-2.42.start/include/all-io.h:30:31: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/setgroups", 1)’
    #   28|   		tmp = write(fd, buf, count);
    #   29|   		if (tmp > 0) {
    #   30|-> 			count -= tmp;
    #   31|   			if (count)
    #   32|   				buf = (const void *) ((const char *) buf + tmp);

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def72]
    util-linux-2.42.start/include/all-io.h: scope_hint: In function ‘read_all’
    util-linux-2.42.start/include/all-io.h:67:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
    util-linux-2.42.start/disk-utils/fdisk.c:17: included_from: Included from here.
    /usr/include/string.h:65:14: note: argument 1 of ‘memset’ must be non-null
    #   65|   	int tries = 0;
    #   66|
    #   67|-> 	memset(buf, 0, count);
    #   68|   	while (count > 0) {
    #   69|   		ret = read(fd, buf, count);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
    util-linux-2.42.start/lib/procfs.c:20: included_from: Included from here.
    util-linux-2.42.start/include/all-io.h: scope_hint: In function 'xusleep'
    util-linux-2.42.start/include/all-io.h:80:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&buf, 524288)'
    util-linux-2.42.start/lib/procfs.c:16: included_from: Included from here.
    #   78|   			return c;
    #   79|   		tries = 0;
    #   80|-> 		count -= ret;
    #   81|   		buf += ret;
    #   82|   		c += ret;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def74]
    util-linux-2.42.start/lib/sysfs.c:18: included_from: Included from here.
    util-linux-2.42.start/include/all-io.h: scope_hint: In function 'xusleep'
    util-linux-2.42.start/include/all-io.h:80:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(chain, 0)'
    util-linux-2.42.start/lib/sysfs.c:13: included_from: Included from here.
    #   78|   			return c;
    #   79|   		tries = 0;
    #   80|-> 		count -= ret;
    #   81|   		buf += ret;
    #   82|   		c += ret;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
    util-linux-2.42.start/include/all-io.h: scope_hint: In function ‘xusleep’
    util-linux-2.42.start/include/all-io.h:97:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/timens_offsets", 0)’
    #   95|
    #   96|   	while (1) {
    #   97|-> 		ret = read_all(fd, *buf + c, size - c);
    #   98|   		if (ret < 0) {
    #   99|   			free(*buf);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
    util-linux-2.42.start/include/all-io.h: scope_hint: In function ‘do_seccomp_filter’
    util-linux-2.42.start/include/all-io.h:97:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(file, 0)’
    #   95|
    #   96|   	while (1) {
    #   97|-> 		ret = read_all(fd, *buf + c, size - c);
    #   98|   		if (ret < 0) {
    #   99|   			free(*buf);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
    util-linux-2.42.start/lib/fileutils.c:17: included_from: Included from here.
    util-linux-2.42.start/include/c.h: scope_hint: In function 'xusleep'
    util-linux-2.42.start/include/c.h:490:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[0]'
    util-linux-2.42.start/lib/fileutils.c:18: included_from: Included from here.
    util-linux-2.42.start/include/c.h:19: included_from: Included from here.
    #  488|   		.tv_nsec  = (usec % 1000000L) * 1000
    #  489|   	};
    #  490|-> 	return nanosleep(&waittime, NULL);
    #  491|   #elif defined(HAVE_USLEEP)
    #  492|   	return usleep(usec);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
    util-linux-2.42.start/lib/path.c:24: included_from: Included from here.
    util-linux-2.42.start/include/c.h: scope_hint: In function 'xusleep'
    util-linux-2.42.start/include/c.h:490:16: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/lib/path.c:28: included_from: Included from here.
    util-linux-2.42.start/lib/path.c:40:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/lib/path.c:681:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/lib/path.c:26: included_from: Included from here.
    util-linux-2.42.start/lib/path.c:22: included_from: Included from here.
    #  488|   		.tv_nsec  = (usec % 1000000L) * 1000
    #  489|   	};
    #  490|-> 	return nanosleep(&waittime, NULL);
    #  491|   #elif defined(HAVE_USLEEP)
    #  492|   	return usleep(usec);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
    util-linux-2.42.start/libfdisk/src/fdiskP.h:22: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/gpt.c:23: included_from: Included from here.
    util-linux-2.42.start/include/c.h: scope_hint: In function 'xusleep'
    util-linux-2.42.start/include/c.h:490:16: warning[-Wanalyzer-malloc-leak]: leak of 'current'
    util-linux-2.42.start/include/pt-mbr.h:8: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/gpt.c:30: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/fdiskP.h:26: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/gpt.c:2104:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/gpt.c:29: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/gpt.c:19: included_from: Included from here.
    #  488|   		.tv_nsec  = (usec % 1000000L) * 1000
    #  489|   	};
    #  490|-> 	return nanosleep(&waittime, NULL);
    #  491|   #elif defined(HAVE_USLEEP)
    #  492|   	return usleep(usec);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
    util-linux-2.42.start/include/c.h:490:16: warning[-Wanalyzer-malloc-leak]: leak of 'result'
    #  488|   		.tv_nsec  = (usec % 1000000L) * 1000
    #  489|   	};
    #  490|-> 	return nanosleep(&waittime, NULL);
    #  491|   #elif defined(HAVE_USLEEP)
    #  492|   	return usleep(usec);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
    util-linux-2.42.start/misc-utils/lsclocks.c:32: included_from: Included from here.
    util-linux-2.42.start/include/c.h: scope_hint: In function ‘xusleep’
    util-linux-2.42.start/include/c.h:490:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
    util-linux-2.42.start/misc-utils/lsclocks.c:40: included_from: Included from here.
    util-linux-2.42.start/include/c.h:19: included_from: Included from here.
    #  488|   		.tv_nsec  = (usec % 1000000L) * 1000
    #  489|   	};
    #  490|-> 	return nanosleep(&waittime, NULL);
    #  491|   #elif defined(HAVE_USLEEP)
    #  492|   	return usleep(usec);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
    util-linux-2.42.start/include/all-io.h:20: included_from: Included from here.
    util-linux-2.42.start/sys-utils/setpriv.c:35: included_from: Included from here.
    util-linux-2.42.start/include/c.h: scope_hint: In function ‘xusleep’
    util-linux-2.42.start/include/c.h:490:16: warning[-Wanalyzer-malloc-leak]: leak of ‘filter’
    util-linux-2.42.start/sys-utils/setpriv.c:21: included_from: Included from here.
    #  488|   		.tv_nsec  = (usec % 1000000L) * 1000
    #  489|   	};
    #  490|-> 	return nanosleep(&waittime, NULL);
    #  491|   #elif defined(HAVE_USLEEP)
    #  492|   	return usleep(usec);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
    util-linux-2.42.start/sys-utils/lscpu.h:17: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lscpu-virt.c:22: included_from: Included from here.
    util-linux-2.42.start/include/c.h: scope_hint: In function ‘xusleep’
    util-linux-2.42.start/include/c.h:490:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
    util-linux-2.42.start/sys-utils/lscpu.h:25: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lscpu-virt.c:12: included_from: Included from here.
    #  488|   		.tv_nsec  = (usec % 1000000L) * 1000
    #  489|   	};
    #  490|-> 	return nanosleep(&waittime, NULL);
    #  491|   #elif defined(HAVE_USLEEP)
    #  492|   	return usleep(usec);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
    util-linux-2.42.start/sys-utils/mountpoint.c:32: included_from: Included from here.
    util-linux-2.42.start/include/closestream.h: scope_hint: In function ‘flush_standard_stream’
    util-linux-2.42.start/include/closestream.h:60:64: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
    #   58|   	 * descriptor from the stream.
    #   59|   	 */
    #   60|-> 	if ((fd = fileno(stream)) < 0 || (fd = dup(fd)) < 0 || close(fd) != 0)
    #   61|   		goto error;
    #   62|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
    util-linux-2.42.start/include/closestream.h: scope_hint: In function ‘close_fd’
    util-linux-2.42.start/include/closestream.h:107:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(devname, 2)’
    #  105|   {
    #  106|   	const int fsync_fail = (fsync(fd) != 0);
    #  107|-> 	const int close_fail = (close(fd) != 0);
    #  108|
    #  109|   	if (fsync_fail || close_fail)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
    util-linux-2.42.start/lib/path.c: scope_hint: In function 'ul_path_write_u64'
    util-linux-2.42.start/include/debug.h:64:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'ul_path_open(pc, 524289,  path)'
    util-linux-2.42.start/lib/path.c:40:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/lib/path.c:463:17: note: in expansion of macro 'DBG'
    util-linux-2.42.start/lib/path.c:40:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/lib/path.c:463:17: note: in expansion of macro 'DBG'
    #   62|   #define __UL_DBG(l, p, m, x) \
    #   63|   	do { \
    #   64|-> 		if ((p ## m) & l ## _debug_mask) { \
    #   65|   			fprintf(stderr, "%d: %s: %8s: ", getpid(), # l, # m); \
    #   66|   			x; \

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
    util-linux-2.42.start/libmount/src/utils.c: scope_hint: In function 'mnt_match_fstype'
    util-linux-2.42.start/include/debug.h:64:30: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "re")'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/utils.c:627:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/utils.c:627:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/utils.c:627:9: note: in expansion of macro 'DBG'
    #   62|   #define __UL_DBG(l, p, m, x) \
    #   63|   	do { \
    #   64|-> 		if ((p ## m) & l ## _debug_mask) { \
    #   65|   			fprintf(stderr, "%d: %s: %8s: ", getpid(), # l, # m); \
    #   66|   			x; \

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
    util-linux-2.42.start/lsfd-cmd/lsfd.h:35: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/include/debug.h:64:30: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/net/unix", "r")’
    util-linux-2.42.start/lsfd-cmd/lsfd.h:52:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:747:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/lsfd-cmd/lsfd.h:52:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:747:9: note: in expansion of macro ‘DBG’
    #   62|   #define __UL_DBG(l, p, m, x) \
    #   63|   	do { \
    #   64|-> 		if ((p ## m) & l ## _debug_mask) { \
    #   65|   			fprintf(stderr, "%d: %s: %8s: ", getpid(), # l, # m); \
    #   66|   			x; \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
    util-linux-2.42.start/libblkid/src/blkidP.h:34: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/probe.c:118: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_set_device'
    util-linux-2.42.start/include/debug.h:64:30: warning[-Wanalyzer-malloc-leak]: leak of 'blkid_new_probe()'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/probe.c:150:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/probe.c:2135:17: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/probe.c:150:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/blkidP.h:36: included_from: Included from here.
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/probe.c:2438:17: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_set_device'
    util-linux-2.42.start/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_set_device'
    util-linux-2.42.start/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_set_device'
    util-linux-2.42.start/libblkid/src/probe.c:662:9: note: in expansion of macro 'list_for_each_safe'
    util-linux-2.42.start/libblkid/src/probe.c:102: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/probe.c:150:9: note: in expansion of macro 'DBG'
    #   62|   #define __UL_DBG(l, p, m, x) \
    #   63|   	do { \
    #   64|-> 		if ((p ## m) & l ## _debug_mask) { \
    #   65|   			fprintf(stderr, "%d: %s: %8s: ", getpid(), # l, # m); \
    #   66|   			x; \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
    util-linux-2.42.start/libfdisk/src/fdiskP.h:26: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/ask.c:3: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/ask.c: scope_hint: In function 'fdisk_do_ask'
    util-linux-2.42.start/include/debug.h:64:30: warning[-Wanalyzer-malloc-leak]: leak of 'fdisk_new_ask()'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/ask.c:45:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/strutils.h:19: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/ask.c:2: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/ask.c:45:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/ask.c:144:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/ask.c:45:9: note: in expansion of macro 'DBG'
    #   62|   #define __UL_DBG(l, p, m, x) \
    #   63|   	do { \
    #   64|-> 		if ((p ## m) & l ## _debug_mask) { \
    #   65|   			fprintf(stderr, "%d: %s: %8s: ", getpid(), # l, # m); \
    #   66|   			x; \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
    util-linux-2.42.start/include/debug.h:64:30: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "re")'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/utils.c:627:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/utils.c:627:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/utils.c:627:9: note: in expansion of macro 'DBG'
    #   62|   #define __UL_DBG(l, p, m, x) \
    #   63|   	do { \
    #   64|-> 		if ((p ## m) & l ## _debug_mask) { \
    #   65|   			fprintf(stderr, "%d: %s: %8s: ", getpid(), # l, # m); \
    #   66|   			x; \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
    util-linux-2.42.start/libblkid/src/devname.c: scope_hint: In function 'lvm_probe_all'
    util-linux-2.42.start/include/debug.h:64:30: warning[-Wanalyzer-malloc-leak]: leak of 'opendir("/proc/lvm/VGs")'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devname.c:305:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devname.c:305:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devname.c:305:9: note: in expansion of macro 'DBG'
    #   62|   #define __UL_DBG(l, p, m, x) \
    #   63|   	do { \
    #   64|-> 		if ((p ## m) & l ## _debug_mask) { \
    #   65|   			fprintf(stderr, "%d: %s: %8s: ", getpid(), # l, # m); \
    #   66|   			x; \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
    util-linux-2.42.start/libblkid/src/devname.c: scope_hint: In function 'xreaddir'
    util-linux-2.42.start/include/debug.h:64:30: warning[-Wanalyzer-malloc-leak]: leak of 'opendir("/sys/block")'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devname.c:420:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devname.c:420:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devname.c:420:9: note: in expansion of macro 'DBG'
    #   62|   #define __UL_DBG(l, p, m, x) \
    #   63|   	do { \
    #   64|-> 		if ((p ## m) & l ## _debug_mask) { \
    #   65|   			fprintf(stderr, "%d: %s: %8s: ", getpid(), # l, # m); \
    #   66|   			x; \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:19: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/column.c:27: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/column.c: scope_hint: In function 'scols_column_set_color'
    util-linux-2.42.start/include/debug.h:64:30: warning[-Wanalyzer-malloc-leak]: leak of 'scols_new_column()'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/column.c:43:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/column.c:43:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/column.c:102:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/column.c:43:9: note: in expansion of macro 'DBG'
    #   62|   #define __UL_DBG(l, p, m, x) \
    #   63|   	do { \
    #   64|-> 		if ((p ## m) & l ## _debug_mask) { \
    #   65|   			fprintf(stderr, "%d: %s: %8s: ", getpid(), # l, # m); \
    #   66|   			x; \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:19: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/line.c:25: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/line.c: scope_hint: In function 'scols_line_set_color'
    util-linux-2.42.start/include/debug.h:64:30: warning[-Wanalyzer-malloc-leak]: leak of 'scols_new_line()'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/line.c:45:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/line.c:45:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/line.c:45:9: note: in expansion of macro 'DBG'
    #   62|   #define __UL_DBG(l, p, m, x) \
    #   63|   	do { \
    #   64|-> 		if ((p ## m) & l ## _debug_mask) { \
    #   65|   			fprintf(stderr, "%d: %s: %8s: ", getpid(), # l, # m); \
    #   66|   			x; \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
    util-linux-2.42.start/include/debug.h:64:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/net/unix", "r")’
    util-linux-2.42.start/lsfd-cmd/lsfd.h:52:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:747:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/lsfd-cmd/lsfd.h:52:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:747:9: note: in expansion of macro ‘DBG’
    #   62|   #define __UL_DBG(l, p, m, x) \
    #   63|   	do { \
    #   64|-> 		if ((p ## m) & l ## _debug_mask) { \
    #   65|   			fprintf(stderr, "%d: %s: %8s: ", getpid(), # l, # m); \
    #   66|   			x; \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
    util-linux-2.42.start/misc-utils/whereis.c:62: included_from: Included from here.
    util-linux-2.42.start/misc-utils/whereis.c: scope_hint: In function ‘dirlist_add_subdir’
    util-linux-2.42.start/include/debug.h:64:30: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&buf)’
    util-linux-2.42.start/misc-utils/whereis.c:76:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/whereis.c:297:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/include/debug.h:106:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
    util-linux-2.42.start/misc-utils/whereis.c:188:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
    util-linux-2.42.start/include/debug.h:106:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
    util-linux-2.42.start/misc-utils/whereis.c:188:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
    util-linux-2.42.start/include/xalloc.h:19: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h:18: included_from: Included from here.
    util-linux-2.42.start/include/c.h:208:32: note: in definition of macro ‘min’
    util-linux-2.42.start/misc-utils/whereis.c:76:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/whereis.c:297:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/whereis.c:76:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/whereis.c:297:9: note: in expansion of macro ‘DBG’
    #   62|   #define __UL_DBG(l, p, m, x) \
    #   63|   	do { \
    #   64|-> 		if ((p ## m) & l ## _debug_mask) { \
    #   65|   			fprintf(stderr, "%d: %s: %8s: ", getpid(), # l, # m); \
    #   66|   			x; \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
    util-linux-2.42.start/misc-utils/whereis.c: scope_hint: In function ‘findin’
    util-linux-2.42.start/include/debug.h:64:30: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dir)’
    util-linux-2.42.start/misc-utils/whereis.c:76:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/whereis.c:453:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/whereis.c:76:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/whereis.c:453:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/whereis.c:76:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/whereis.c:453:9: note: in expansion of macro ‘DBG’
    #   62|   #define __UL_DBG(l, p, m, x) \
    #   63|   	do { \
    #   64|-> 		if ((p ## m) & l ## _debug_mask) { \
    #   65|   			fprintf(stderr, "%d: %s: %8s: ", getpid(), # l, # m); \
    #   66|   			x; \

    Error: CPPCHECK_WARNING (CWE-476): [#def99]
    util-linux-2.42.start/include/fgetwc_or_err.h:12: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: stream
    #   10|
    #   11|   	errno = 0;
    #   12|-> 	ret = fgetwc(stream);
    #   13|   	if (ret == WEOF && errno != 0)
    #   14|   		err(EXIT_FAILURE, _("fgetwc() failed"));

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
    util-linux-2.42.start/text-utils/colcrt.c:53: included_from: Included from here.
    util-linux-2.42.start/include/fgetwc_or_err.h: scope_hint: In function ‘fgetwc_or_err’
    util-linux-2.42.start/include/fgetwc_or_err.h:12:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘ctl.f’
    #   10|
    #   11|   	errno = 0;
    #   12|-> 	ret = fgetwc(stream);
    #   13|   	if (ret == WEOF && errno != 0)
    #   14|   		err(EXIT_FAILURE, _("fgetwc() failed"));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
    util-linux-2.42.start/text-utils/rev.c:66: included_from: Included from here.
    util-linux-2.42.start/include/fgetwc_or_err.h: scope_hint: In function ‘fgetwc_or_err’
    util-linux-2.42.start/include/fgetwc_or_err.h:12:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
    util-linux-2.42.start/text-utils/rev.c:62: included_from: Included from here.
    #   10|
    #   11|   	errno = 0;
    #   12|-> 	ret = fgetwc(stream);
    #   13|   	if (ret == WEOF && errno != 0)
    #   14|   		err(EXIT_FAILURE, _("fgetwc() failed"));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
    util-linux-2.42.start/include/fgetwc_or_err.h:12:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl.f’
    #   10|
    #   11|   	errno = 0;
    #   12|-> 	ret = fgetwc(stream);
    #   13|   	if (ret == WEOF && errno != 0)
    #   14|   		err(EXIT_FAILURE, _("fgetwc() failed"));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
    util-linux-2.42.start/term-utils/agetty.c:49: included_from: Included from here.
    util-linux-2.42.start/include/fileutils.h: scope_hint: In function ‘fopen_at’
    util-linux-2.42.start/include/fileutils.h:40:18: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
    util-linux-2.42.start/term-utils/agetty.c:23: included_from: Included from here.
    #   38|                                int flags, const char *mode)
    #   39|   {
    #   40|-> 	int fd = openat(dir, filename, flags);
    #   41|   	FILE *ret;
    #   42|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
    util-linux-2.42.start/include/fileutils.h:48:17: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
    #   46|   	ret = fdopen(fd, mode);
    #   47|   	if (!ret)
    #   48|-> 		close(fd);
    #   49|   	return ret;
    #   50|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
    util-linux-2.42.start/lib/sysfs.c:17: included_from: Included from here.
    util-linux-2.42.start/include/fileutils.h: scope_hint: In function 'xreaddir'
    util-linux-2.42.start/include/fileutils.h:75:21: warning[-Wanalyzer-malloc-leak]: leak of 'name'
    #   73|   	struct dirent *d;
    #   74|
    #   75|-> 	while ((d = readdir(dp))) {
    #   76|   		if (!strcmp(d->d_name, ".") ||
    #   77|   		    !strcmp(d->d_name, ".."))

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
    util-linux-2.42.start/lib/fileutils.c:19: included_from: Included from here.
    util-linux-2.42.start/include/fileutils.h: scope_hint: In function 'xreaddir'
    util-linux-2.42.start/include/fileutils.h:75:21: warning[-Wanalyzer-malloc-leak]: leak of 'opendir("/proc/self/fd")'
    #   73|   	struct dirent *d;
    #   74|
    #   75|-> 	while ((d = readdir(dp))) {
    #   76|   		if (!strcmp(d->d_name, ".") ||
    #   77|   		    !strcmp(d->d_name, ".."))

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
    util-linux-2.42.start/libblkid/src/devname.c:42: included_from: Included from here.
    util-linux-2.42.start/include/fileutils.h: scope_hint: In function 'xreaddir'
    util-linux-2.42.start/include/fileutils.h:75:21: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(&path)'
    util-linux-2.42.start/libblkid/src/blkidP.h:34: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/devname.c:37: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devname.c:420:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devname.c:494:25: note: in expansion of macro 'DBG'
    #   73|   	struct dirent *d;
    #   74|
    #   75|-> 	while ((d = readdir(dp))) {
    #   76|   		if (!strcmp(d->d_name, ".") ||
    #   77|   		    !strcmp(d->d_name, ".."))

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
    util-linux-2.42.start/include/fileutils.h: scope_hint: In function ‘xreaddir’
    util-linux-2.42.start/include/fileutils.h:75:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc")’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘xreaddir’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘xreaddir’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    #   73|   	struct dirent *d;
    #   74|
    #   75|-> 	while ((d = readdir(dp))) {
    #   76|   		if (!strcmp(d->d_name, ".") ||
    #   77|   		    !strcmp(d->d_name, ".."))

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
    util-linux-2.42.start/disk-utils/partx.c:44: included_from: Included from here.
    util-linux-2.42.start/include/fileutils.h: scope_hint: In function ‘get_max_partno’
    util-linux-2.42.start/include/fileutils.h:125:31: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(&path)’
    #  123|   static inline bool is_dotdir_dirent(const struct dirent *d)
    #  124|   {
    #  125|-> 	return (d && d->d_name[0] == '.'
    #  126|   		&& (d->d_name[1] == 0
    #  127|   		    || (d->d_name[1] == '.' && d->d_name[2] == 0)));

    Error: GCC_ANALYZER_WARNING (CWE-835): [#def110]
    util-linux-2.42.start/include/list.h:126:20: warning[-Wanalyzer-infinite-loop]: infinite loop
    util-linux-2.42.start/misc-utils/lsblk-devtree.c: scope_hint: In function ‘device_remove_dependences’
    util-linux-2.42.start/misc-utils/lsblk-devtree.c: scope_hint: In function ‘device_remove_dependences’
    #  124|   _INLINE_ int list_empty(struct list_head *head)
    #  125|   {
    #  126|-> 	return head->next == head;
    #  127|   }
    #  128|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
    util-linux-2.42.start/include/list.h:126:20: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/dev")’
    util-linux-2.42.start/login-utils/sulogin-consoles.c: scope_hint: In function ‘detect_consoles_from_proc’
    #  124|   _INLINE_ int list_empty(struct list_head *head)
    #  125|   {
    #  126|-> 	return head->next == head;
    #  127|   }
    #  128|

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:15: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/calculate.c:1: included_from: Included from here.
    util-linux-2.42.start/include/list.h: scope_hint: In function 'merge_and_restore_back_links'
    util-linux-2.42.start/include/list.h:311:34: warning[-Wanalyzer-null-dereference]: dereference of NULL 'list'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:14: included_from: Included from here.
    util-linux-2.42.start/include/list.h:176:41: note: in expansion of macro 'container_of'
    util-linux-2.42.start/libsmartcols/src/calculate.c:494:19: note: in expansion of macro 'list_entry'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:19: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/calculate.c:502:25: note: in expansion of macro 'DBG'
    util-linux-2.42.start/include/list.h: scope_hint: In function 'merge_and_restore_back_links'
    #  309|   		(*cmp)(tail->next, tail->next, data);
    #  310|
    #  311|-> 		tail->next->prev = tail;
    #  312|   		tail = tail->next;
    #  313|   	} while (tail->next);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
    util-linux-2.42.start/include/mangle.h:29:17: warning[-Wanalyzer-malloc-leak]: leak of 'cacheval'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/cache.c:496:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/cache.c:445:9: note: in expansion of macro 'DBG'
    #   27|   {
    #   28|   	if (s)
    #   29|-> 		unhexmangle_to_buffer(s, s, strlen(s) + 1);
    #   30|   }
    #   31|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
    util-linux-2.42.start/libmount/src/cache.c:42: included_from: Included from here.
    util-linux-2.42.start/include/mangle.h: scope_hint: In function 'unhexmangle_string'
    util-linux-2.42.start/include/mangle.h:29:17: warning[-Wanalyzer-malloc-leak]: leak of 'tagval'
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/canonicalize.h:15: included_from: Included from here.
    util-linux-2.42.start/libmount/src/cache.c:38: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:32: included_from: Included from here.
    util-linux-2.42.start/libmount/src/cache.c:39: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/cache.c:496:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/cache.c:445:9: note: in expansion of macro 'DBG'
    #   27|   {
    #   28|   	if (s)
    #   29|-> 		unhexmangle_to_buffer(s, s, strlen(s) + 1);
    #   30|   }
    #   31|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
    util-linux-2.42.start/misc-utils/findmnt.c:50: included_from: Included from here.
    util-linux-2.42.start/include/mangle.h: scope_hint: In function ‘unhexmangle_string’
    util-linux-2.42.start/include/mangle.h:29:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(data)’
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/misc-utils/findmnt.c:49: included_from: Included from here.
    util-linux-2.42.start/misc-utils/findmnt.c:48: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/closestream.h:14: included_from: Included from here.
    util-linux-2.42.start/misc-utils/findmnt.c:44: included_from: Included from here.
    #   27|   {
    #   28|   	if (s)
    #   29|-> 		unhexmangle_to_buffer(s, s, strlen(s) + 1);
    #   30|   }
    #   31|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
    util-linux-2.42.start/libmount/src/hook_mount.c:49: included_from: Included from here.
    util-linux-2.42.start/include/mangle.h: scope_hint: In function 'unescape_string'
    util-linux-2.42.start/include/mangle.h:35:17: warning[-Wanalyzer-malloc-leak]: leak of 's'
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/errno.h:25: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:17: included_from: Included from here.
    util-linux-2.42.start/libmount/src/hook_mount.c:46: included_from: Included from here.
    #   33|   {
    #   34|   	if (s)
    #   35|-> 		unescape_to_buffer(s, wanted, s, strlen(s) + 1);
    #   36|   }
    #   37|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def117]
    util-linux-2.42.start/disk-utils/delpart.c:19: included_from: Included from here.
    util-linux-2.42.start/disk-utils/delpart.c: scope_hint: In function ‘main’
    util-linux-2.42.start/include/strutils.h:44:44: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(argv[1], 0)’
    util-linux-2.42.start/disk-utils/delpart.c:71:25: note: in expansion of macro ‘strtou32_or_err’
    util-linux-2.42.start/include/strutils.h:44:68: note: in definition of macro ‘strtou32_or_err’
    util-linux-2.42.start/disk-utils/delpart.c:71:50: note: in expansion of macro ‘_’
    util-linux-2.42.start/disk-utils/delpart.c:71:25: note: in expansion of macro ‘strtou32_or_err’
    util-linux-2.42.start/disk-utils/delpart.c:71:25: note: in expansion of macro ‘strtou32_or_err’
    #   42|
    #   43|   #define strtos32_or_err(_s, _e)	(int32_t) str2num_or_err(_s, 10, _e, INT32_MIN, INT32_MAX)
    #   44|-> #define strtou32_or_err(_s, _e)	(uint32_t) str2unum_or_err(_s, 10, _e, UINT32_MAX)
    #   45|   #define strtox32_or_err(_s, _e)	(uint32_t) str2unum_or_err(_s, 16, _e, UINT32_MAX)
    #   46|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
    util-linux-2.42.start/sys-utils/setpriv.c:41: included_from: Included from here.
    util-linux-2.42.start/sys-utils/setpriv.c: scope_hint: In function ‘get_group.part.0’
    util-linux-2.42.start/include/strutils.h:54:40: warning[-Wanalyzer-malloc-leak]: leak of ‘groups’
    util-linux-2.42.start/sys-utils/setpriv.c:770:15: note: in expansion of macro ‘strtol_or_err’
    util-linux-2.42.start/sys-utils/setpriv.c:449:50: note: in expansion of macro ‘_’
    util-linux-2.42.start/sys-utils/setpriv.c:770:15: note: in expansion of macro ‘strtol_or_err’
    util-linux-2.42.start/sys-utils/setpriv.c:770:15: note: in expansion of macro ‘strtol_or_err’
    #   52|   extern long double strtold_or_err(const char *str, const char *errmesg);
    #   53|
    #   54|-> #define strtol_or_err(_s, _e)	(long) str2num_or_err(_s, 10, _e, LONG_MIN, LONG_MAX)
    #   55|   #define strtopid_or_err(_s, _e)	(pid_t) str2num_or_err(_s, 10, _e, 1, SINT_MAX(pid_t))
    #   56|   #define strtoul_or_err(_s, _e)	(unsigned long) str2unum_or_err(_s, 10, _e, ULONG_MAX)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
    util-linux-2.42.start/libfdisk/src/context.c:13: included_from: Included from here.
    util-linux-2.42.start/include/strutils.h: scope_hint: In function 'strdup_between_offsets'
    util-linux-2.42.start/include/strutils.h:202:1: warning[-Wanalyzer-malloc-leak]: leak of 'p'
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/path.h:14: included_from: Included from here.
    util-linux-2.42.start/include/sysfs.h:22: included_from: Included from here.
    util-linux-2.42.start/include/loopdev.h:9: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/context.c:10: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/fdiskP.h:26: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/context.c:11: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/context.c:782:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:25: included_from: Included from here.
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    util-linux-2.42.start/libfdisk/src/context.c:127:16: note: in expansion of macro 'strdup_between_structs'
    #  200|   	*dst = p;
    #  201|   	return 0;
    #  202|-> }
    #  203|
    #  204|   /* Copy string addressed by struct member between two instances of the same

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
    util-linux-2.42.start/disk-utils/partx.c:37: included_from: Included from here.
    util-linux-2.42.start/include/strutils.h: scope_hint: In function ‘main’
    util-linux-2.42.start/include/strutils.h:277:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>)’
    util-linux-2.42.start/disk-utils/partx.c:38: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/disk-utils/partx.c:33: included_from: Included from here.
    #  275|   	size_t sz = prefix ? strlen(prefix) : 0;
    #  276|
    #  277|->         if (s && sz && strncmp(s, prefix, sz) == 0)
    #  278|                   return s + sz;
    #  279|   	return NULL;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
    util-linux-2.42.start/login-utils/lslogins.c:57: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘fill_table’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘build_sgroups_string(*user.sgroups, *user.nsgroups, 0)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
    util-linux-2.42.start/lsfd-cmd/lsfd.h:41: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/lsfd.c:60: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘add_mnt_ns’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘new_mnt_ns(id)’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/lsfd.c:48: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘add_mnt_ns’
    util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘add_mnt_ns’
    util-linux-2.42.start/lsfd-cmd/lsfd.c:915:13: note: in expansion of macro ‘is_association’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
    util-linux-2.42.start/misc-utils/uuidgen.c:22: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘unhex’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((*valuelen >> 1) + 1)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)((cols + 1) * rows))’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
    util-linux-2.42.start/term-utils/setterm.c:82: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xmalloc’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)(rows * cols * 2))’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
    util-linux-2.42.start/disk-utils/mkswap.c:50: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘check_blocks’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)*ctl.pagesize)’
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/disk-utils/mkswap.c:54: included_from: Included from here.
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xmalloc’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)llistxattr_or_die(&*a_62(D)->links.path, 0, 0))’
    util-linux-2.42.start/include/optutils.h:8: 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’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘llistxattr_or_die.part.0’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)llistxattr_or_die(&*b_64(D)->links.path, 0, 0))’
    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’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
    util-linux-2.42.start/sys-utils/lscpu.h:20: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lscpu-topology.c:22: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘get_online_state’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)page_size)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
    util-linux-2.42.start/login-utils/utmpdump.c:44: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘undump’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(1024)’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/login-utils/utmpdump.c:43: included_from: Included from here.
    util-linux-2.42.start/login-utils/utmpdump.c:399:33: note: in expansion of macro ‘_’
    util-linux-2.42.start/login-utils/utmpdump.c:287:31: note: in expansion of macro ‘_’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
    util-linux-2.42.start/misc-utils/lsclocks.c:38: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘main’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(112)’
    util-linux-2.42.start/misc-utils/lsclocks.c:35: included_from: Included from here.
    util-linux-2.42.start/misc-utils/lsclocks.c:630:42: note: in expansion of macro ‘strtopid_or_err’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
    util-linux-2.42.start/disk-utils/fsck.cramfs.c:69: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘cramfs_iget’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(12)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
    util-linux-2.42.start/text-utils/hexdump-parse.c:46: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(16)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
    util-linux-2.42.start/sys-utils/irq-common.c:32: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘get_irqinfo’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(2048)’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/sys-utils/irq-common.c:29: included_from: Included from here.
    util-linux-2.42.start/sys-utils/irq-common.c:254:22: note: in expansion of macro ‘_’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(24)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
    util-linux-2.42.start/lsfd-cmd/lsfd.h:41: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/unkn.c:30: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘add_inode’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(32)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
    util-linux-2.42.start/lsfd-cmd/lsfd.h:41: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/cdev.c:22: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(56)’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/debug.h:40: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/lsfd.h:35: included_from: Included from here.
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
    util-linux-2.42.start/lsfd-cmd/lsfd.h:41: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:51: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘raw6_xinfo_scan_line’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(72)’
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘raw6_xinfo_scan_line’
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘raw6_xinfo_scan_line’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
    util-linux-2.42.start/misc-utils/lslocks.c:43: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘set_rawdata_u64’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(8)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
    util-linux-2.42.start/text-utils/bits.c:29: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘print_bits’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(buf_size)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
    util-linux-2.42.start/sys-utils/fallocate.c:72: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘dig_holes’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(bufsz + 8)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
    util-linux-2.42.start/disk-utils/mkfs.cramfs.c:60: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘parse_directory’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(len + 257)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
    util-linux-2.42.start/misc-utils/namei.c:39: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘dotdot_stat’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(len + 4)’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/misc-utils/namei.c:38: included_from: Included from here.
    util-linux-2.42.start/misc-utils/namei.c:29: included_from: Included from here.
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/misc-utils/namei.c:40: included_from: Included from here.
    util-linux-2.42.start/misc-utils/namei.c:146:35: note: in expansion of macro ‘_’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
    util-linux-2.42.start/sys-utils/readprofile.c:50: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘main’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(len)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘do_directory’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(pathbufsz)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(regerror(regcomp(&*<unknown>.re,  regex, 9), <unknown>, 0, 0) + 1)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
    util-linux-2.42.start/sys-utils/lscpu.h:20: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lscpu.c:39: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘print_cpuset’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(setbuflen)’
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lscpu.c:34: included_from: Included from here.
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
    util-linux-2.42.start/disk-utils/fdisk.c:35: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘dump_blkdev’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(size)’
    util-linux-2.42.start/disk-utils/fdisk.h:18: included_from: Included from here.
    util-linux-2.42.start/disk-utils/fdisk.c:47: included_from: Included from here.
    util-linux-2.42.start/disk-utils/fdisk.c:36: included_from: Included from here.
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/disk-utils/fdisk.c:37: included_from: Included from here.
    util-linux-2.42.start/disk-utils/fdisk.c:1013:41: note: in expansion of macro ‘_’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
    util-linux-2.42.start/disk-utils/fdformat.c:28: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘format_begin.part.0’
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(track_size)’
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
    util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrndup(a, (long unsigned int)(p2 - a))’
    util-linux-2.42.start/text-utils/hexdump.h:39: included_from: Included from here.
    util-linux-2.42.start/text-utils/hexdump-parse.c:238:9: note: in expansion of macro ‘list_for_each’
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/sys/types.h:25: included_from: Included from here.
    util-linux-2.42.start/text-utils/hexdump-parse.c:38: included_from: Included from here.
    #   30|   	void *ret = malloc(size);
    #   31|
    #   32|-> 	if (!ret && size)
    #   33|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
    util-linux-2.42.start/include/xalloc.h:33:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #   31|
    #   32|   	if (!ret && size)
    #   33|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;
    #   35|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xmalloc’
    util-linux-2.42.start/include/xalloc.h:33:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fname’
    #   31|
    #   32|   	if (!ret && size)
    #   33|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;
    #   35|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xmalloc’
    util-linux-2.42.start/include/xalloc.h:33:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fs’
    #   31|
    #   32|   	if (!ret && size)
    #   33|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;
    #   35|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
    util-linux-2.42.start/include/xalloc.h:33:17: warning[-Wanalyzer-malloc-leak]: leak of ‘groupmap’
    #   31|
    #   32|   	if (!ret && size)
    #   33|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;
    #   35|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
    util-linux-2.42.start/include/xalloc.h:33:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lbuf’
    #   31|
    #   32|   	if (!ret && size)
    #   33|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;
    #   35|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
    util-linux-2.42.start/misc-utils/enosys.c:34: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xmalloc’
    util-linux-2.42.start/include/xalloc.h:33:17: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/getopt.h:24: included_from: Included from here.
    util-linux-2.42.start/misc-utils/enosys.c:20: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/misc-utils/enosys.c:28: included_from: Included from here.
    #   31|
    #   32|   	if (!ret && size)
    #   33|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;
    #   35|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
    util-linux-2.42.start/misc-utils/wipefs.c:37: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xmalloc’
    util-linux-2.42.start/include/xalloc.h:33:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
    util-linux-2.42.start/misc-utils/wipefs.c:23: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h:18: included_from: Included from here.
    #   31|
    #   32|   	if (!ret && size)
    #   33|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;
    #   35|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
    util-linux-2.42.start/sys-utils/unshare.c:45: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xmalloc’
    util-linux-2.42.start/include/xalloc.h:33:17: warning[-Wanalyzer-malloc-leak]: leak of ‘usermap’
    #   31|
    #   32|   	if (!ret && size)
    #   33|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   34|   	return ret;
    #   35|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xreallocarray’
    util-linux-2.42.start/include/xalloc.h:54:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    util-linux-2.42.start/sys-utils/irq-common.c: scope_hint: In function ‘xreallocarray’
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/ctype.h:25: included_from: Included from here.
    util-linux-2.42.start/sys-utils/irq-common.c:14: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/sys-utils/irq-common.c:27: included_from: Included from here.
    util-linux-2.42.start/sys-utils/irq-common.c:31: included_from: Included from here.
    #   52|   void *xreallocarray(void *ptr, const size_t nelems, const size_t size)
    #   53|   {
    #   54|-> 	void *ret = reallocarray(ptr, nelems, size);
    #   55|
    #   56|   	if (!ret && size && nelems)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
    util-linux-2.42.start/text-utils/more.c:88: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xreallocarray.part.0’
    util-linux-2.42.start/include/xalloc.h:56:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(s)’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/strutils.h:19: included_from: Included from here.
    util-linux-2.42.start/text-utils/more.c:86: included_from: Included from here.
    #   54|   	void *ret = reallocarray(ptr, nelems, size);
    #   55|
    #   56|-> 	if (!ret && size && nelems)
    #   57|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   58|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
    util-linux-2.42.start/include/xalloc.h:57:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    util-linux-2.42.start/include/debug.h:106:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
    util-linux-2.42.start/term-utils/script.c:159:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
    util-linux-2.42.start/include/debug.h:106:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
    util-linux-2.42.start/term-utils/script.c:159:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
    #   55|
    #   56|   	if (!ret && size && nelems)
    #   57|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   58|   	return ret;
    #   59|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
    util-linux-2.42.start/term-utils/script.c:68: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xreallocarray’
    util-linux-2.42.start/include/xalloc.h:57:17: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
    util-linux-2.42.start/term-utils/script.c:72: included_from: Included from here.
    util-linux-2.42.start/include/debug.h:106:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
    util-linux-2.42.start/term-utils/script.c:159:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
    util-linux-2.42.start/include/debug.h:106:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
    util-linux-2.42.start/term-utils/script.c:159:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
    util-linux-2.42.start/term-utils/script.c:69: included_from: Included from here.
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/closestream.h:14: included_from: Included from here.
    util-linux-2.42.start/term-utils/script.c:58: included_from: Included from here.
    #   55|
    #   56|   	if (!ret && size && nelems)
    #   57|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   58|   	return ret;
    #   59|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
    util-linux-2.42.start/lib/pwdutils.c:11: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function 'xgetgroup'
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of 'xcalloc(1, 32)'
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/lib/pwdutils.c:9: included_from: Included from here.
    #   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-401): [#def164]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function 'xgetuserpw'
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of 'xcalloc(1, 48)'
    #   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-401): [#def165]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘get_desc_for_probe’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘add_offset(wp0, *offset)’
    #   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-401): [#def166]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘read_misc’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘new_miscdev(minor, & name)’
    #   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-401): [#def167]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘read_partitions’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘new_partition(__dev, & name)’
    #   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-401): [#def168]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘read_process.part.0’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘new_proc(pid,  leader)’
    #   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-401): [#def169]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘zram_get_sysfs’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘new_zram(*<unknown>)’
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/sys-utils/zramctl.c:42: included_from: Included from here.
    /usr/include/systemd/_sd-common.h:20: included_from: Included from here.
    /usr/include/systemd/sd-device.h:23: included_from: Included from here.
    util-linux-2.42.start/sys-utils/zramctl.c:32: included_from: Included from here.
    #   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-401): [#def170]
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/dev/mqueue")’
    #   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-401): [#def171]
    util-linux-2.42.start/sys-utils/ipcutils.c:16: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/dev/shm")’
    #   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-401): [#def172]
    util-linux-2.42.start/misc-utils/blkid.c:49: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘main’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc((long unsigned int)(argc - optind), 8)’
    #   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-401): [#def173]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc((long unsigned int)(i + 1), 8)’
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/bits/libc-header-start.h:33: included_from: Included from here.
    /usr/include/stdio.h:28: included_from: Included from here.
    util-linux-2.42.start/misc-utils/blkid.c:13: included_from: Included from here.
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/misc-utils/blkid.c:41: included_from: Included from here.
    #   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-401): [#def174]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘get_sorted_xattr_name_table’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc((long unsigned int)n, 8)’
    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’
    #   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-401): [#def175]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘main’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 120)’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘main’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘main’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    #   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-401): [#def176]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘load_xinfo_from_proc_unix’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 152)’
    util-linux-2.42.start/lsfd-cmd/lsfd.h:40: included_from: Included from here.
    #   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-401): [#def177]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘mark_sock_xinfo_loaded’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 16)’
    #   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-401): [#def178]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 200)’
    #   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-401): [#def179]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xmalloc’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 208)’
    #   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-401): [#def180]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘main’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 224)’
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘main’
    util-linux-2.42.start/sys-utils/lscpu.c: scope_hint: In function ‘main’
    #   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-401): [#def181]
    util-linux-2.42.start/disk-utils/fsck.c:64: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘fs_create_data.part.0’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 24)’
    #   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-401): [#def182]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 248)’
    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:883:9: note: in expansion of macro ‘jlog’
    #   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-401): [#def183]
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 32)’
    #   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-401): [#def184]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘anon_eventfd_init’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 40)’
    #   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-401): [#def185]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘handle_diag_vsock.part.0’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 48)’
    #   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-401): [#def186]
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 56)’
    #   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-401): [#def187]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 64)’
    util-linux-2.42.start/include/debug.h:106:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
    util-linux-2.42.start/term-utils/script.c:159:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
    util-linux-2.42.start/include/debug.h:106:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
    util-linux-2.42.start/term-utils/script.c:159:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
    #   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-401): [#def188]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘raw_xinfo_scan_line’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 72)’
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘raw_xinfo_scan_line’
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘raw_xinfo_scan_line’
    #   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-401): [#def189]
    util-linux-2.42.start/sys-utils/lsipc.c:42: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘main’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 8)’
    #   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-401): [#def190]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘menu_push’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 88)’
    util-linux-2.42.start/disk-utils/cfdisk.c:267:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/disk-utils/cfdisk.c:2170:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/disk-utils/cfdisk.c:267:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/disk-utils/cfdisk.c:903:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/include/closestream.h:15: included_from: Included from here.
    util-linux-2.42.start/disk-utils/cfdisk.c:57: included_from: Included from here.
    util-linux-2.42.start/disk-utils/cfdisk.c:909:36: note: in expansion of macro ‘_’
    #   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-401): [#def191]
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 96)’
    #   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-401): [#def192]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘new_filter’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(17, 8)’
    #   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-401): [#def193]
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(ct + 1, 8)’
    util-linux-2.42.start/lsfd-cmd/lsfd.c:50: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/lsfd.c:2454:9: note: in expansion of macro ‘list_for_each’
    #   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-401): [#def194]
    util-linux-2.42.start/disk-utils/cfdisk.c:61: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘ui_create_label’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(fdisk_get_nlabels(*cf.cxt) + 1, 32)’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/disk-utils/cfdisk.c:55: included_from: Included from here.
    util-linux-2.42.start/disk-utils/cfdisk.c:65: included_from: Included from here.
    util-linux-2.42.start/disk-utils/cfdisk.c:267:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/disk-utils/cfdisk.c:2170:9: note: in expansion of macro ‘DBG’
    #   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-401): [#def195]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘ui_get_parttype’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(fdisk_label_get_nparttypes(fdisk_get_label(*cf.cxt, 0)) + 1, 32)’
    #   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-401): [#def196]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(n_args, 8)’
    #   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-401): [#def197]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/include/xalloc.h:69:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #   67|
    #   68|   	if (!ret && size && nelems)
    #   69|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   70|   	return ret;
    #   71|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/include/xalloc.h:69:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fname’
    #   67|
    #   68|   	if (!ret && size && nelems)
    #   69|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   70|   	return ret;
    #   71|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
    util-linux-2.42.start/sys-utils/setpriv.c:42: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/include/xalloc.h:69:17: warning[-Wanalyzer-malloc-leak]: leak of ‘groups’
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/sys-utils/setpriv.c:40: included_from: Included from here.
    #   67|
    #   68|   	if (!ret && size && nelems)
    #   69|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   70|   	return ret;
    #   71|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/include/xalloc.h:69:17: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
    #   67|
    #   68|   	if (!ret && size && nelems)
    #   69|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   70|   	return ret;
    #   71|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/include/xalloc.h:69:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
    util-linux-2.42.start/disk-utils/mkswap.c: scope_hint: In function ‘xcalloc’
    #   67|
    #   68|   	if (!ret && size && nelems)
    #   69|-> 		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   70|   	return ret;
    #   71|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘color_fmt’
    util-linux-2.42.start/include/xalloc.h:70:16: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
    #   68|   	if (!ret && size && nelems)
    #   69|   		err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
    #   70|-> 	return ret;
    #   71|   }
    #   72|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #   93|   	ret = strdup(str);
    #   94|   	if (!ret)
    #   95|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|   	return ret;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
    util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
    #   93|   	ret = strdup(str);
    #   94|   	if (!ret)
    #   95|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|   	return ret;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fname’
    #   93|   	ret = strdup(str);
    #   94|   	if (!ret)
    #   95|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|   	return ret;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/disk-utils/partx.c:43: included_from: Included from here.
    #   93|   	ret = strdup(str);
    #   94|   	if (!ret)
    #   95|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|   	return ret;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
    util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘opts.passwd.pw_dir’
    #   93|   	ret = strdup(str);
    #   94|   	if (!ret)
    #   95|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|   	return ret;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
    util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘opts.passwd.pw_gecos’
    #   93|   	ret = strdup(str);
    #   94|   	if (!ret)
    #   95|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|   	return ret;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘opts.passwd.pw_name’
    #   93|   	ret = strdup(str);
    #   94|   	if (!ret)
    #   95|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|   	return ret;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
    util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘opts.passwd.pw_passwd’
    #   93|   	ret = strdup(str);
    #   94|   	if (!ret)
    #   95|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|   	return ret;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
    util-linux-2.42.start/misc-utils/copyfilerange.c:34: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘range_files’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/misc-utils/copyfilerange.c:31: included_from: Included from here.
    #   93|   	ret = strdup(str);
    #   94|   	if (!ret)
    #   95|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|   	return ret;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘search_value’
    #   93|   	ret = strdup(str);
    #   94|   	if (!ret)
    #   95|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|   	return ret;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
    util-linux-2.42.start/misc-utils/findmnt-verify.c:17: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘vfy.fs_ary’
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/bits/libc-header-start.h:33: included_from: Included from here.
    /usr/include/stdio.h:28: included_from: Included from here.
    util-linux-2.42.start/misc-utils/findmnt-verify.c:1: included_from: Included from here.
    util-linux-2.42.start/misc-utils/findmnt-verify.c: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/misc-utils/findmnt-verify.c:15: included_from: Included from here.
    #   93|   	ret = strdup(str);
    #   94|   	if (!ret)
    #   95|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|   	return ret;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
    util-linux-2.42.start/login-utils/last.c:48: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(8) + nfiles * 8’
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/login-utils/last.c:46: included_from: Included from here.
    #   93|   	ret = strdup(str);
    #   94|   	if (!ret)
    #   95|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|   	return ret;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
    util-linux-2.42.start/lib/pager.c:24: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(cmd)’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/lib/pager.c:23: included_from: Included from here.
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/unistd.h:25: included_from: Included from here.
    util-linux-2.42.start/lib/pager.c:13: included_from: Included from here.
    #   93|   	ret = strdup(str);
    #   94|   	if (!ret)
    #   95|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|   	return ret;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
    util-linux-2.42.start/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.group’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    #   94|   	if (!ret)
    #   95|   		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|-> 	return ret;
    #   97|   }
    #   98|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
    util-linux-2.42.start/misc-utils/lsblk-properties.c:10: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.label’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/misc-utils/lsblk-properties.c:8: included_from: Included from here.
    util-linux-2.42.start/misc-utils/lsblk.h:20: included_from: Included from here.
    util-linux-2.42.start/misc-utils/lsblk-properties.c:16: included_from: Included from here.
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    #   94|   	if (!ret)
    #   95|   		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|-> 	return ret;
    #   97|   }
    #   98|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
    util-linux-2.42.start/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.model’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    #   94|   	if (!ret)
    #   95|   		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|-> 	return ret;
    #   97|   }
    #   98|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
    util-linux-2.42.start/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.mode’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    #   94|   	if (!ret)
    #   95|   		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|-> 	return ret;
    #   97|   }
    #   98|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
    util-linux-2.42.start/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.owner’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    #   94|   	if (!ret)
    #   95|   		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|-> 	return ret;
    #   97|   }
    #   98|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
    util-linux-2.42.start/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.partlabel’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    #   94|   	if (!ret)
    #   95|   		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|-> 	return ret;
    #   97|   }
    #   98|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
    util-linux-2.42.start/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.pttype’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    #   94|   	if (!ret)
    #   95|   		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|-> 	return ret;
    #   97|   }
    #   98|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
    util-linux-2.42.start/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.ptuuid’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    #   94|   	if (!ret)
    #   95|   		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|-> 	return ret;
    #   97|   }
    #   98|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
    util-linux-2.42.start/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.revision’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    #   94|   	if (!ret)
    #   95|   		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|-> 	return ret;
    #   97|   }
    #   98|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
    util-linux-2.42.start/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.uuid’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
    #   94|   	if (!ret)
    #   95|   		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #   96|-> 	return ret;
    #   97|   }
    #   98|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrndup’
    util-linux-2.42.start/include/xalloc.h:109:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  107|   	ret = strndup(str, size);
    #  108|   	if (!ret)
    #  109|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #  110|   	return ret;
    #  111|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrndup’
    util-linux-2.42.start/include/xalloc.h:109:17: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
    #  107|   	ret = strndup(str, size);
    #  108|   	if (!ret)
    #  109|-> 		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #  110|   	return ret;
    #  111|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘color_fmt’
    util-linux-2.42.start/include/xalloc.h:110:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    /usr/include/libintl.h:100: included_from: Included from here.
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/text-utils/hexdump-parse.c:45: included_from: Included from here.
    #  108|   	if (!ret)
    #  109|   		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #  110|-> 	return ret;
    #  111|   }
    #  112|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
    util-linux-2.42.start/include/xalloc.h:110:16: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
    #  108|   	if (!ret)
    #  109|   		err(XALLOC_EXIT_CODE, "cannot duplicate string");
    #  110|-> 	return ret;
    #  111|   }
    #  112|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xasprintf’
    util-linux-2.42.start/include/xalloc.h:125:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  123|   	va_end(args);
    #  124|   	if (ret < 0)
    #  125|-> 		err(XALLOC_EXIT_CODE, "cannot allocate string");
    #  126|   	return ret;
    #  127|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xasprintf’
    util-linux-2.42.start/include/xalloc.h:125:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(fdisk_label_get_nparttypes(fdisk_get_label(*cf.cxt, 0)) + 1, 32) + i * 32’
    #  123|   	va_end(args);
    #  124|   	if (ret < 0)
    #  125|-> 		err(XALLOC_EXIT_CODE, "cannot allocate string");
    #  126|   	return ret;
    #  127|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrappend’
    util-linux-2.42.start/include/xalloc.h:142:13: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/debug.h:40: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/lsfd.h:35: included_from: Included from here.
    #  140|   static inline void xstrappend(char **a, const char *b)
    #  141|   {
    #  142|-> 	if (ul_strappend(a, b) < 0)
    #  143|   		err(XALLOC_EXIT_CODE, "cannot allocate string");
    #  144|   }

    Error: GCC_ANALYZER_WARNING (CWE-404): [#def233]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrvfappend’
    util-linux-2.42.start/include/xalloc.h:156:19: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
    #  154|   int xstrvfappend(char **a, const char *format, va_list ap)
    #  155|   {
    #  156|-> 	int ret = ul_strvfappend(a, format, ap);
    #  157|
    #  158|   	if (ret < 0)

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def234]
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xgethostname’
    util-linux-2.42.start/include/xalloc.h:186:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(sz)’ where non-null expected
    /usr/include/bits/sigstksz.h:24: included_from: Included from here.
    /usr/include/signal.h:328: included_from: Included from here.
    util-linux-2.42.start/term-utils/write.c:52: included_from: Included from here.
    /usr/include/unistd.h:911:12: note: argument 1 of ‘gethostname’ must be non-null
    #  184|
    #  185|   	name = xmalloc(sizeof(char) * sz);
    #  186|-> 	if (gethostname(name, sz) != 0) {
    #  187|   		free(name);
    #  188|   		return NULL;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def235]
    util-linux-2.42.start/lib/caputils.c: scope_hint: In function ‘cap_last_by_procfs’
    util-linux-2.42.start/lib/caputils.c:61:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/sys/kernel/cap_last_cap", "r")’
    #   59|   	*ret = 0;
    #   60|
    #   61|-> 	if (f && fd_is_procfs(fileno(f))) {
    #   62|   		int cap;
    #   63|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
    util-linux-2.42.start/lib/caputils.c:61:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sys/kernel/cap_last_cap", "r")’
    #   59|   	*ret = 0;
    #   60|
    #   61|-> 	if (f && fd_is_procfs(fileno(f))) {
    #   62|   		int cap;
    #   63|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
    util-linux-2.42.start/lib/colors.c: scope_hint: In function 'colors_readdir'
    util-linux-2.42.start/lib/colors.c:263:18: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(dirname)'
    util-linux-2.42.start/lib/colors.c:38: included_from: Included from here.
    util-linux-2.42.start/lib/colors.c:60:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/lib/colors.c:257:9: note: in expansion of macro 'DBG'
    #  261|   		return -errno;
    #  262|
    #  263|-> 	namesz = strlen(cc->utilname);
    #  264|   	termsz = cc->termname ? strlen(cc->termname) : 0;
    #  265|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
    util-linux-2.42.start/lib/colors.c: scope_hint: In function 'colors_add_scheme'
    util-linux-2.42.start/lib/colors.c:392:12: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(name)'
    util-linux-2.42.start/lib/colors.c:60:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/lib/colors.c:507:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/lib/colors.c:60:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/lib/colors.c:507:9: note: in expansion of macro 'DBG'
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/assert.h:35: included_from: Included from here.
    util-linux-2.42.start/lib/colors.c:8: included_from: Included from here.
    util-linux-2.42.start/lib/colors.c:60:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/lib/colors.c:371:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/lib/colors.c:60:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/lib/colors.c:371:9: note: in expansion of macro 'DBG'
    #  390|   	cs->seq = seq;
    #  391|   	cs->name = strdup(name);
    #  392|-> 	if (!cs->name)
    #  393|   		goto err;
    #  394|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def239]
    util-linux-2.42.start/lib/configs.c: scope_hint: In function 'read_dir'
    util-linux-2.42.start/lib/configs.c:134:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(dirname, 589824)'
    #  132|   		goto finish;
    #  133|
    #  134|-> 	nfiles = scandirat(dd, ".", &namelist, filter, alphasort);
    #  135|   	if (nfiles <= 0)
    #  136|   		goto finish;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def240]
    util-linux-2.42.start/lib/fileutils.c: scope_hint: In function 'ul_restricted_path_oper'
    util-linux-2.42.start/lib/fileutils.c:200:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[0]'
    #  198|   	switch (pid) {
    #  199|   	case -1:
    #  200|-> 		close(pipes[0]);
    #  201|   		close(pipes[1]);
    #  202|   		return NULL;			/* fork error */

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def241]
    util-linux-2.42.start/lib/fileutils.c:200:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[1]'
    #  198|   	switch (pid) {
    #  199|   	case -1:
    #  200|-> 		close(pipes[0]);
    #  201|   		close(pipes[1]);
    #  202|   		return NULL;			/* fork error */

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def242]
    util-linux-2.42.start/lib/fileutils.c:201:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[1]'
    #  199|   	case -1:
    #  200|   		close(pipes[0]);
    #  201|-> 		close(pipes[1]);
    #  202|   		return NULL;			/* fork error */
    #  203|   	case 0:

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def243]
    util-linux-2.42.start/lib/fileutils.c:204:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[0]'
    #  202|   		return NULL;			/* fork error */
    #  203|   	case 0:
    #  204|-> 		close(pipes[0]);		/* close unused end */
    #  205|   		pipes[0] = -1;
    #  206|   		errno = 0;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def244]
    util-linux-2.42.start/lib/fileutils.c:204:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[1]'
    #  202|   		return NULL;			/* fork error */
    #  203|   	case 0:
    #  204|-> 		close(pipes[0]);		/* close unused end */
    #  205|   		pipes[0] = -1;
    #  206|   		errno = 0;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def245]
    util-linux-2.42.start/lib/fileutils.c:211:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[1]'
    #  209|   			result = NULL;	/* failed */
    #  210|   		else
    #  211|-> 			oper(path, &result, data);
    #  212|
    #  213|   		len = result ? (ssize_t) strlen(result) :

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def246]
    util-linux-2.42.start/lib/fileutils.c:225:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[0]'
    #  223|   	}
    #  224|
    #  225|-> 	close(pipes[1]);		/* close unused end */
    #  226|   	pipes[1] = -1;
    #  227|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def247]
    util-linux-2.42.start/lib/fileutils.c:225:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[1]'
    #  223|   	}
    #  224|
    #  225|-> 	close(pipes[1]);		/* close unused end */
    #  226|   	pipes[1] = -1;
    #  227|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def248]
    util-linux-2.42.start/lib/fileutils.c:252:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[0]'
    #  250|   		result = NULL;
    #  251|   	}
    #  252|-> 	close(pipes[0]);
    #  253|
    #  254|   	/* We make a best effort to reap child */

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def249]
    util-linux-2.42.start/lib/fileutils.c:252:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[errsv]'
    #  250|   		result = NULL;
    #  251|   	}
    #  252|-> 	close(pipes[0]);
    #  253|
    #  254|   	/* We make a best effort to reap child */

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def250]
    util-linux-2.42.start/lib/logindefs.c: scope_hint: In function ‘effective_access’
    util-linux-2.42.start/lib/logindefs.c:453:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path,  mode)’
    #  451|   	int fd = open(path, mode);
    #  452|   	if (fd != -1)
    #  453|-> 		close(fd);
    #  454|   	return fd == -1 ? -1 : 0;
    #  455|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
    util-linux-2.42.start/lib/loopdev.c: scope_hint: In function 'loop_scandir.part.0'
    util-linux-2.42.start/lib/loopdev.c:472:9: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(dirname)'
    #  470|   	if (!dir)
    #  471|   		return 0;
    #  472|-> 	free(*ary);
    #  473|   	*ary = NULL;
    #  474|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
    util-linux-2.42.start/lib/mbsedit.c: scope_hint: In function 'mbs_new_edit'
    util-linux-2.42.start/lib/mbsedit.c:28:35: warning[-Wanalyzer-malloc-leak]: leak of 'edit'
    #   26|   		edit->max_bytes = bufsz;
    #   27|   		edit->max_cells = ncells;
    #   28|-> 		edit->cur_cells = mbs_safe_width(buf);
    #   29|   		edit->cur_bytes = strlen(buf);
    #   30|   	}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def253]
    util-linux-2.42.start/lib/pager.c: scope_hint: In function ‘close_pair’
    util-linux-2.42.start/lib/pager.c:49:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdin[0]’
    #   47|   static inline void close_pair(int fd[2])
    #   48|   {
    #   49|-> 	close(fd[0]);
    #   50|   	close(fd[1]);
    #   51|   }

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def254]
    util-linux-2.42.start/lib/pager.c: scope_hint: In function ‘start_command’
    util-linux-2.42.start/lib/pager.c:79:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdin[0]’
    #   77|   	cmd->in = fdin[1];
    #   78|
    #   79|-> 	fflush(NULL);
    #   80|   	cmd->pid = fork();
    #   81|   	if (!cmd->pid) {

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def255]
    util-linux-2.42.start/lib/pager.c:95:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdin[0]’
    #   93|   	}
    #   94|
    #   95|-> 	close(fdin[0]);
    #   96|   	return 0;
    #   97|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
    util-linux-2.42.start/lib/pager.c:153:26: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(cmd)’
    #  151|
    #  152|   	for (s = strtok(p, ":"); s; s = strtok(NULL, ":")) {
    #  153|-> 		int fd = open(s, O_RDONLY|O_CLOEXEC);
    #  154|   		if (fd < 0)
    #  155|   			continue;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
    util-linux-2.42.start/lib/pager.c: scope_hint: In function ‘has_command’
    util-linux-2.42.start/lib/pager.c:153:26: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(path)’
    #  151|
    #  152|   	for (s = strtok(p, ":"); s; s = strtok(NULL, ":")) {
    #  153|-> 		int fd = open(s, O_RDONLY|O_CLOEXEC);
    #  154|   		if (fd < 0)
    #  155|   			continue;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
    util-linux-2.42.start/lib/pager.c:157:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(cmd)’
    #  155|   			continue;
    #  156|   		rc = faccessat(fd, b, X_OK, 0) == 0;
    #  157|-> 		close(fd);
    #  158|   		if (rc)
    #  159|   			break;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
    util-linux-2.42.start/lib/pager.c:157:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(path)’
    #  155|   			continue;
    #  156|   		rc = faccessat(fd, b, X_OK, 0) == 0;
    #  157|-> 		close(fd);
    #  158|   		if (rc)
    #  159|   			break;

    Error: GCC_ANALYZER_WARNING: [#def260]
    util-linux-2.42.start/lib/pager.c: scope_hint: In function ‘pager_close’
    util-linux-2.42.start/lib/pager.c:253:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
    #  251|
    #  252|   	/* restore original output */
    #  253|-> 	dup2(pager_process.org_out, STDOUT_FILENO);
    #  254|   	dup2(pager_process.org_err, STDERR_FILENO);
    #  255|

    Error: GCC_ANALYZER_WARNING: [#def261]
    util-linux-2.42.start/lib/pager.c:254:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
    #  252|   	/* restore original output */
    #  253|   	dup2(pager_process.org_out, STDOUT_FILENO);
    #  254|-> 	dup2(pager_process.org_err, STDERR_FILENO);
    #  255|
    #  256|   	close(pager_process.org_out);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
    util-linux-2.42.start/lib/path.c: scope_hint: In function 'ul_path_get_dirfd'
    util-linux-2.42.start/lib/path.c:224:30: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    util-linux-2.42.start/lib/path.c:40:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/lib/path.c:223:17: note: in expansion of macro 'DBG'
    #  222|
    #  223|   		DBG(CXT, ul_debugobj(pc, "opening dir: '%s'", path));
    #  224|-> 		pc->dir_fd = open(path, O_RDONLY|O_CLOEXEC);
    #  225|   	}
    #  226|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
    util-linux-2.42.start/lib/path.c: scope_hint: In function 'ul_path_open'
    util-linux-2.42.start/lib/path.c:473:28: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    #  471|   			path++;
    #  472|
    #  473|-> 		fdx = fd = openat(dir, path, flags);
    #  474|
    #  475|   		if (fd < 0 && errno == ENOENT

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
    util-linux-2.42.start/lib/path.c:477:24: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    #  475|   		if (fd < 0 && errno == ENOENT
    #  476|   		    && pc->redirect_on_enoent
    #  477|-> 		    && pc->redirect_on_enoent(pc, path, &dir) == 0)
    #  478|   			fd = openat(dir, path, flags);
    #  479|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
    util-linux-2.42.start/lib/path.c:478:30: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    #  476|   		    && pc->redirect_on_enoent
    #  477|   		    && pc->redirect_on_enoent(pc, path, &dir) == 0)
    #  478|-> 			fd = openat(dir, path, flags);
    #  479|
    #  480|   		DBG(CXT, ul_debugobj(pc, "opening '%s'%s", path, fdx != fd ? " [redirected]" : ""));

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def266]
    util-linux-2.42.start/lib/path.c: scope_hint: In function 'ul_path_opendir'
    util-linux-2.42.start/lib/path.c:590:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
    #  588|   		return NULL;
    #  589|
    #  590|-> 	dir = fdopendir(fd);
    #  591|   	if (!dir) {
    #  592|   		close(fd);

    Error: GCC_ANALYZER_WARNING (CWE-465): [#def267]
    util-linux-2.42.start/lib/pidutils.c: scope_hint: In function 'ul_parse_pid_str'
    util-linux-2.42.start/lib/pidutils.c:56:12: warning[-Wanalyzer-deref-before-check]: check of 'end' for NULL after already dereferencing it
    #   54|   	}
    #   55|
    #   56|-> 	if (end && *end != '\0')
    #   57|   		return -(errno = EINVAL);
    #   58|   	return 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
    util-linux-2.42.start/lib/procfs.c: scope_hint: In function 'procfs_process_init_path.part.0'
    util-linux-2.42.start/lib/procfs.c:99:17: warning[-Wanalyzer-malloc-leak]: leak of 'prc'
    util-linux-2.42.start/lib/procfs.c:21: included_from: Included from here.
    util-linux-2.42.start/lib/procfs.c:36:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/lib/procfs.c:94:17: note: in expansion of macro 'DBG'
    #   97|   			return -ENOMEM;
    #   98|
    #   99|-> 		ul_path_set_dialect(pc, prc, procfs_process_deinit_path);
    #  100|   	}
    #  101|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def269]
    util-linux-2.42.start/lib/procfs.c: scope_hint: In function 'strdup_procfs_file'
    util-linux-2.42.start/lib/procfs.c:438:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&buf, 524288)'
    #  436|   	if (read_procfs_file(fd, buf, sizeof(buf)) > 0)
    #  437|   		re = strdup(buf);
    #  438|-> 	close(fd);
    #  439|   	return re;
    #  440|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
    util-linux-2.42.start/lib/procfs.c:438:9: warning[-Wanalyzer-malloc-leak]: leak of 're'
    #  436|   	if (read_procfs_file(fd, buf, sizeof(buf)) > 0)
    #  437|   		re = strdup(buf);
    #  438|-> 	close(fd);
    #  439|   	return re;
    #  440|   }

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def271]
    util-linux-2.42.start/lib/randutils.c:20: included_from: Included from here.
    util-linux-2.42.start/lib/randutils.c: scope_hint: In function 'ul_random_get_bytes'
    util-linux-2.42.start/lib/randutils.c:63:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'random_get_fd()'
    util-linux-2.42.start/include/randutils.h:8:33: note: in definition of macro 'srand'
    util-linux-2.42.start/include/randutils.h:8:33: note: in definition of macro 'srand'
    #   61|   	n_pid = getpid();
    #   62|   	n_uid = getuid();
    #   63|-> 	srand((n_pid << 16) ^ n_uid ^ tv.tv_sec ^ tv.tv_usec);
    #   64|
    #   65|   #ifdef DO_JRAND_MIX

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
    util-linux-2.42.start/lib/strv.c: scope_hint: In function 'ul_strv_split'
    util-linux-2.42.start/lib/strv.c:190:38: warning[-Wanalyzer-malloc-leak]: leak of 'r'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/strutils.h:19: included_from: Included from here.
    util-linux-2.42.start/lib/strv.c:24: included_from: Included from here.
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:206:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    #  188|
    #  189|   #define _FOREACH_WORD(word, length, s, separator, quoted, state)        \
    #  190|->         for ((state) = (s), (word) = ul_split(&(state), &(length), (separator), (quoted)); (word); (word) = ul_split(&(state), &(length), (separator), (quoted)))
    #  191|
    #  192|   #define FOREACH_WORD_SEPARATOR(word, length, s, separator, state)       \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
    util-linux-2.42.start/lib/strv.c: scope_hint: In function ‘ul_strv_split’
    util-linux-2.42.start/lib/strv.c:190:38: warning[-Wanalyzer-malloc-leak]: leak of ‘r’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/strutils.h:19: included_from: Included from here.
    util-linux-2.42.start/lib/strv.c:24: included_from: Included from here.
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:206:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    #  188|
    #  189|   #define _FOREACH_WORD(word, length, s, separator, quoted, state)        \
    #  190|->         for ((state) = (s), (word) = ul_split(&(state), &(length), (separator), (quoted)); (word); (word) = ul_split(&(state), &(length), (separator), (quoted)))
    #  191|
    #  192|   #define FOREACH_WORD_SEPARATOR(word, length, s, separator, state)       \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
    util-linux-2.42.start/lib/strv.c:190:109: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:206:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    #  188|
    #  189|   #define _FOREACH_WORD(word, length, s, separator, quoted, state)        \
    #  190|->         for ((state) = (s), (word) = ul_split(&(state), &(length), (separator), (quoted)); (word); (word) = ul_split(&(state), &(length), (separator), (quoted)))
    #  191|
    #  192|   #define FOREACH_WORD_SEPARATOR(word, length, s, separator, state)       \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
    util-linux-2.42.start/lib/strv.c:190:109: warning[-Wanalyzer-malloc-leak]: leak of 'r'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:206:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro '_FOREACH_WORD'
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro 'FOREACH_WORD_SEPARATOR'
    #  188|
    #  189|   #define _FOREACH_WORD(word, length, s, separator, quoted, state)        \
    #  190|->         for ((state) = (s), (word) = ul_split(&(state), &(length), (separator), (quoted)); (word); (word) = ul_split(&(state), &(length), (separator), (quoted)))
    #  191|
    #  192|   #define FOREACH_WORD_SEPARATOR(word, length, s, separator, state)       \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
    util-linux-2.42.start/lib/strv.c:190:109: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:206:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    #  188|
    #  189|   #define _FOREACH_WORD(word, length, s, separator, quoted, state)        \
    #  190|->         for ((state) = (s), (word) = ul_split(&(state), &(length), (separator), (quoted)); (word); (word) = ul_split(&(state), &(length), (separator), (quoted)))
    #  191|
    #  192|   #define FOREACH_WORD_SEPARATOR(word, length, s, separator, state)       \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
    util-linux-2.42.start/lib/strv.c:190:109: warning[-Wanalyzer-malloc-leak]: leak of ‘r’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:206:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    util-linux-2.42.start/lib/strv.c:193:9: note: in expansion of macro ‘_FOREACH_WORD’
    util-linux-2.42.start/lib/strv.c:214:9: note: in expansion of macro ‘FOREACH_WORD_SEPARATOR’
    #  188|
    #  189|   #define _FOREACH_WORD(word, length, s, separator, quoted, state)        \
    #  190|->         for ((state) = (s), (word) = ul_split(&(state), &(length), (separator), (quoted)); (word); (word) = ul_split(&(state), &(length), (separator), (quoted)))
    #  191|
    #  192|   #define FOREACH_WORD_SEPARATOR(word, length, s, separator, state)       \

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
    util-linux-2.42.start/lib/sysfs.c: scope_hint: In function 'sysfs_blkdev_init_path'
    util-linux-2.42.start/lib/sysfs.c:100:17: warning[-Wanalyzer-malloc-leak]: leak of 'blk'
    util-linux-2.42.start/lib/sysfs.c:19: included_from: Included from here.
    util-linux-2.42.start/lib/sysfs.c:35:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/lib/sysfs.c:95:17: note: in expansion of macro 'DBG'
    #   98|   			return -ENOMEM;
    #   99|
    #  100|-> 		ul_path_set_dialect(pc, blk, sysfs_blkdev_deinit_path);
    #  101|   		ul_path_set_enoent_redirect(pc, sysfs_blkdev_enoent_redirect);
    #  102|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
    util-linux-2.42.start/lib/sysfs.c: scope_hint: In function 'sysfs_blkdev_get_slave'
    util-linux-2.42.start/lib/sysfs.c:324:9: warning[-Wanalyzer-malloc-leak]: leak of 'name'
    #  322|   	}
    #  323|
    #  324|-> 	closedir(dir);
    #  325|   	return name;
    #  326|   err:

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def280]
    util-linux-2.42.start/lib/sysfs.c: scope_hint: In function 'sysfs_devchain_is_removable'
    util-linux-2.42.start/lib/sysfs.c:479:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(chain, 0)'
    #  477|   		if (fd != -1) {
    #  478|   			rc = read_all(fd, buf, sizeof(buf));
    #  479|-> 			close(fd);
    #  480|
    #  481|   			if (rc > 0) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
    util-linux-2.42.start/libblkid/src/cache.c: scope_hint: In function 'blkid_get_cache_filename'
    util-linux-2.42.start/libblkid/src/cache.c:66:20: warning[-Wanalyzer-malloc-leak]: leak of 'cache'
    util-linux-2.42.start/libblkid/src/blkidP.h:34: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/cache.c:24: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/cache.c:103:9: note: in expansion of macro 'DBG'
    #   64|   	char *filename;
    #   65|
    #   66|-> 	filename = safe_getenv("BLKID_FILE");
    #   67|   	if (filename)
    #   68|   		filename = strdup(filename);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
    util-linux-2.42.start/libblkid/src/cache.c: scope_hint: In function 'blkid_get_cache_filename.part.0'
    util-linux-2.42.start/libblkid/src/cache.c:72:42: warning[-Wanalyzer-malloc-leak]: leak of 'cache'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/cache.c:103:9: note: in expansion of macro 'DBG'
    #   70|   		filename = conf->cachefile ? strdup(conf->cachefile) : NULL;
    #   71|   	else {
    #   72|-> 		struct blkid_config *c = blkid_read_config(NULL);
    #   73|   		if (!c)
    #   74|   			filename = strdup(get_default_cache_filename());

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
    util-linux-2.42.start/libblkid/src/cache.c: scope_hint: In function 'blkid_get_cache'
    util-linux-2.42.start/libblkid/src/cache.c:114:9: warning[-Wanalyzer-malloc-leak]: leak of 'cache'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/cache.c:103:9: note: in expansion of macro 'DBG'
    #  112|   		cache->bic_filename = blkid_get_cache_filename(NULL);
    #  113|
    #  114|-> 	blkid_read_cache(cache);
    #  115|   	*ret_cache = cache;
    #  116|   	return 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
    util-linux-2.42.start/libblkid/src/config.c: scope_hint: In function 'blkid_read_config'
    util-linux-2.42.start/libblkid/src/config.c:134:28: warning[-Wanalyzer-malloc-leak]: leak of 'conf'
    #  132|
    #  133|   	if (!filename)
    #  134|-> 		filename = safe_getenv("BLKID_CONF");
    #  135|
    #  136|   #ifndef HAVE_LIBECONF

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
    util-linux-2.42.start/libblkid/src/devno.c: scope_hint: In function 'blkid__scan_dir'
    util-linux-2.42.start/libblkid/src/devno.c:109:20: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
    util-linux-2.42.start/libblkid/src/blkidP.h:34: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/devno.c:35: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devno.c:189:17: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devno.c:189:17: note: in expansion of macro 'DBG'
    #  107|   	struct stat st;
    #  108|
    #  109|-> 	if ((dir = opendir(dirname)) == NULL)
    #  110|   		return;
    #  111|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
    util-linux-2.42.start/libblkid/src/devno.c:112:22: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devno.c:189:17: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devno.c:189:17: note: in expansion of macro 'DBG'
    #  110|   		return;
    #  111|
    #  112|-> 	while ((dp = readdir(dir)) != NULL) {
    #  113|   #ifdef _DIRENT_HAVE_D_TYPE
    #  114|   		if (dp->d_type != DT_UNKNOWN && dp->d_type != DT_BLK &&

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
    util-linux-2.42.start/libblkid/src/devno.c:112:22: warning[-Wanalyzer-malloc-leak]: leak of 'new_list'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devno.c:189:17: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devno.c:189:17: note: in expansion of macro 'DBG'
    #  110|   		return;
    #  111|
    #  112|-> 	while ((dp = readdir(dir)) != NULL) {
    #  113|   #ifdef _DIRENT_HAVE_D_TYPE
    #  114|   		if (dp->d_type != DT_UNKNOWN && dp->d_type != DT_BLK &&

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
    util-linux-2.42.start/libblkid/src/devno.c:112:22: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(dirname)'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devno.c:189:17: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devno.c:189:17: note: in expansion of macro 'DBG'
    #  110|   		return;
    #  111|
    #  112|-> 	while ((dp = readdir(dir)) != NULL) {
    #  113|   #ifdef _DIRENT_HAVE_D_TYPE
    #  114|   		if (dp->d_type != DT_UNKNOWN && dp->d_type != DT_BLK &&

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
    util-linux-2.42.start/libblkid/src/devno.c:188:28: warning[-Wanalyzer-malloc-leak]: leak of 'list'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devno.c:189:17: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/devno.c:189:17: note: in expansion of macro 'DBG'
    #  186|   		struct dir_list *current = list;
    #  187|
    #  188|-> 		list = list->next;
    #  189|   		DBG(DEVNO, ul_debug("directory %s", current->name));
    #  190|   		blkid__scan_dir(current->name, devno, &new_list, &devname);

    Error: GCC_ANALYZER_WARNING (CWE-416): [#def290]
    util-linux-2.42.start/libblkid/src/partitions/partitions.c: scope_hint: In function 'unref_parttable'
    util-linux-2.42.start/libblkid/src/partitions/partitions.c:331:12: warning[-Wanalyzer-use-after-free]: use after 'free' of 'tab'
    util-linux-2.42.start/libblkid/src/partitions/partitions.c: scope_hint: In function 'unref_parttable'
    util-linux-2.42.start/libblkid/src/blkidP.h:30: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/partitions/partitions.h:4: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/partitions/partitions.c:23: included_from: Included from here.
    util-linux-2.42.start/include/list.h:176:41: note: in expansion of macro 'container_of'
    util-linux-2.42.start/libblkid/src/partitions/partitions.c:346:39: note: in expansion of macro 'list_entry'
    util-linux-2.42.start/include/list.h:176:41: note: in expansion of macro 'container_of'
    util-linux-2.42.start/libblkid/src/partitions/partitions.c:346:39: note: in expansion of macro 'list_entry'
    #  329|   		return;
    #  330|
    #  331|-> 	tab->nparts--;
    #  332|   	if (tab->nparts <= 0) {
    #  333|   		list_del(&tab->t_tabs);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def291]
    util-linux-2.42.start/libblkid/src/probe.c: scope_hint: In function 'blkid_new_probe_from_filename'
    util-linux-2.42.start/libblkid/src/probe.c:234:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(filename, 526336)'
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/probe.c:2135:17: note: in expansion of macro 'DBG'
    #  232|   	return pr;
    #  233|   err:
    #  234|-> 	close(fd);
    #  235|   	blkid_free_probe(pr);
    #  236|   	return NULL;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
    util-linux-2.42.start/libblkid/src/resolve.c: scope_hint: In function 'blkid_get_tag_value'
    util-linux-2.42.start/libblkid/src/resolve.c:47:17: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
    #   45|
    #   46|   	if (!cache)
    #   47|-> 		blkid_put_cache(c);
    #   48|
    #   49|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
    util-linux-2.42.start/libblkid/src/resolve.c: scope_hint: In function 'blkid_get_devname'
    util-linux-2.42.start/libblkid/src/resolve.c:94:17: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
    util-linux-2.42.start/libblkid/src/blkidP.h:34: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/resolve.c:22: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/blkidP.h:355:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libblkid/src/resolve.c:71:9: note: in expansion of macro 'DBG'
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/bits/libc-header-start.h:33: included_from: Included from here.
    /usr/include/stdio.h:28: included_from: Included from here.
    util-linux-2.42.start/libblkid/src/resolve.c:13: included_from: Included from here.
    #   92|   	free(v);
    #   93|   	if (!cache)
    #   94|-> 		blkid_put_cache(c);
    #   95|   	return ret;
    #   96|   }

    Error: GCC_ANALYZER_WARNING (CWE-404): [#def294]
    util-linux-2.42.start/libblkid/src/superblocks/superblocks.c: scope_hint: In function 'blkid_probe_sprintf_version'
    util-linux-2.42.start/libblkid/src/superblocks/superblocks.c:568:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
    #  566|
    #  567|   		va_start(ap, fmt);
    #  568|-> 		rc = blkid_probe_vsprintf_value(pr, "VERSION", fmt, ap);
    #  569|   		va_end(ap);
    #  570|   	}

    Error: GCC_ANALYZER_WARNING (CWE-404): [#def295]
    util-linux-2.42.start/libblkid/src/superblocks/superblocks.c: scope_hint: In function 'blkid_probe_sprintf_uuid'
    util-linux-2.42.start/libblkid/src/superblocks/superblocks.c:799:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
    #  797|
    #  798|   	va_start(ap, fmt);
    #  799|-> 	rc = blkid_probe_vsprintf_value(pr, "UUID", fmt, ap);
    #  800|   	va_end(ap);
    #  801|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def296]
    util-linux-2.42.start/libblkid/src/topology/dm.c: scope_hint: In function 'probe_dm_tp'
    util-linux-2.42.start/libblkid/src/topology/dm.c:71:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[0]'
    #   69|
    #   70|   		/* Plumbing */
    #   71|-> 		close(dmpipe[0]);
    #   72|
    #   73|   		if (dmpipe[1] != STDOUT_FILENO)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def297]
    util-linux-2.42.start/libblkid/src/topology/dm.c:71:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
    #   69|
    #   70|   		/* Plumbing */
    #   71|-> 		close(dmpipe[0]);
    #   72|
    #   73|   		if (dmpipe[1] != STDOUT_FILENO)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def298]
    util-linux-2.42.start/libblkid/src/topology/dm.c:107:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
    #  105|
    #  106|   	if (dmpipe[1] != -1) {
    #  107|-> 		close(dmpipe[1]);
    #  108|   	}
    #  109|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
    util-linux-2.42.start/libblkid/src/topology/dm.c:107:17: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
    #  105|
    #  106|   	if (dmpipe[1] != -1) {
    #  107|-> 		close(dmpipe[1]);
    #  108|   	}
    #  109|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def300]
    util-linux-2.42.start/libblkid/src/topology/dm.c:114:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
    #  112|   		goto nothing;
    #  113|
    #  114|-> 	blkid_topology_set_minimum_io_size(pr, stripesize << 9);
    #  115|   	blkid_topology_set_optimal_io_size(pr, (stripes * stripesize) << 9);
    #  116|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def301]
    util-linux-2.42.start/libblkid/src/topology/dm.c:115:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
    #  113|
    #  114|   	blkid_topology_set_minimum_io_size(pr, stripesize << 9);
    #  115|-> 	blkid_topology_set_optimal_io_size(pr, (stripes * stripesize) << 9);
    #  116|
    #  117|   	fclose(stream);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def302]
    util-linux-2.42.start/libblkid/src/topology/dm.c:118:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[0]'
    #  116|
    #  117|   	fclose(stream);
    #  118|-> 	return 0;
    #  119|
    #  120|   nothing:

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def303]
    util-linux-2.42.start/libblkid/src/topology/dm.c:118:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
    #  116|
    #  117|   	fclose(stream);
    #  118|-> 	return 0;
    #  119|
    #  120|   nothing:

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def304]
    util-linux-2.42.start/libblkid/src/topology/dm.c:124:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[0]'
    #  122|   		fclose(stream);
    #  123|   	else if (dmpipe[0] != -1)
    #  124|-> 		close(dmpipe[0]);
    #  125|   	return 1;
    #  126|   }

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def305]
    util-linux-2.42.start/libblkid/src/topology/dm.c:124:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
    #  122|   		fclose(stream);
    #  123|   	else if (dmpipe[0] != -1)
    #  124|-> 		close(dmpipe[0]);
    #  125|   	return 1;
    #  126|   }

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def306]
    util-linux-2.42.start/libblkid/src/topology/lvm.c: scope_hint: In function 'probe_lvm_tp'
    util-linux-2.42.start/libblkid/src/topology/lvm.c:80:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[0]'
    #   78|
    #   79|   		/* Plumbing */
    #   80|-> 		close(lvpipe[0]);
    #   81|
    #   82|   		if (lvpipe[1] != STDOUT_FILENO)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def307]
    util-linux-2.42.start/libblkid/src/topology/lvm.c:80:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
    #   78|
    #   79|   		/* Plumbing */
    #   80|-> 		close(lvpipe[0]);
    #   81|
    #   82|   		if (lvpipe[1] != STDOUT_FILENO)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def308]
    util-linux-2.42.start/libblkid/src/topology/lvm.c:119:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
    #  117|   		goto nothing;
    #  118|
    #  119|-> 	blkid_topology_set_minimum_io_size(pr, stripesize << 10);
    #  120|   	blkid_topology_set_optimal_io_size(pr, (stripes * stripesize) << 10);
    #  121|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
    util-linux-2.42.start/libblkid/src/topology/lvm.c:119:9: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
    #  117|   		goto nothing;
    #  118|
    #  119|-> 	blkid_topology_set_minimum_io_size(pr, stripesize << 10);
    #  120|   	blkid_topology_set_optimal_io_size(pr, (stripes * stripesize) << 10);
    #  121|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def310]
    util-linux-2.42.start/libblkid/src/topology/lvm.c:120:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
    #  118|
    #  119|   	blkid_topology_set_minimum_io_size(pr, stripesize << 10);
    #  120|-> 	blkid_topology_set_optimal_io_size(pr, (stripes * stripesize) << 10);
    #  121|
    #  122|   	free(devname);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
    util-linux-2.42.start/libblkid/src/topology/lvm.c:120:9: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
    #  118|
    #  119|   	blkid_topology_set_minimum_io_size(pr, stripesize << 10);
    #  120|-> 	blkid_topology_set_optimal_io_size(pr, (stripes * stripesize) << 10);
    #  121|
    #  122|   	free(devname);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def312]
    util-linux-2.42.start/libblkid/src/topology/lvm.c:124:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
    #  122|   	free(devname);
    #  123|   	fclose(stream);
    #  124|-> 	close(lvpipe[1]);
    #  125|   	return 0;
    #  126|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def313]
    util-linux-2.42.start/libblkid/src/topology/lvm.c:125:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[0]'
    #  123|   	fclose(stream);
    #  124|   	close(lvpipe[1]);
    #  125|-> 	return 0;
    #  126|
    #  127|   nothing:

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def314]
    util-linux-2.42.start/libblkid/src/topology/lvm.c:125:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
    #  123|   	fclose(stream);
    #  124|   	close(lvpipe[1]);
    #  125|-> 	return 0;
    #  126|
    #  127|   nothing:

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def315]
    util-linux-2.42.start/libblkid/src/topology/lvm.c:132:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[0]'
    #  130|   		fclose(stream);
    #  131|   	else if (lvpipe[0] != -1)
    #  132|-> 		close(lvpipe[0]);
    #  133|   	if (lvpipe[1] != -1)
    #  134|   		close(lvpipe[1]);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def316]
    util-linux-2.42.start/libblkid/src/topology/lvm.c:132:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
    #  130|   		fclose(stream);
    #  131|   	else if (lvpipe[0] != -1)
    #  132|-> 		close(lvpipe[0]);
    #  133|   	if (lvpipe[1] != -1)
    #  134|   		close(lvpipe[1]);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def317]
    util-linux-2.42.start/libblkid/src/topology/lvm.c:134:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[0]'
    #  132|   		close(lvpipe[0]);
    #  133|   	if (lvpipe[1] != -1)
    #  134|-> 		close(lvpipe[1]);
    #  135|   	return 1;
    #  136|   }

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def318]
    util-linux-2.42.start/libblkid/src/topology/lvm.c:134:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
    #  132|   		close(lvpipe[0]);
    #  133|   	if (lvpipe[1] != -1)
    #  134|-> 		close(lvpipe[1]);
    #  135|   	return 1;
    #  136|   }

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def319]
    util-linux-2.42.start/libblkid/src/verify.c: scope_hint: In function 'blkid_verify'
    util-linux-2.42.start/libblkid/src/verify.c:137:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(*dev.bid_name, 526336)'
    #  135|   	}
    #  136|
    #  137|-> 	if (blkid_probe_set_device(cache->probe, fd, 0, 0)) {
    #  138|   		/* failed to read the device */
    #  139|   		close(fd);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
    util-linux-2.42.start/libfdisk/src/ask.c:151:14: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/ask.c:45:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/ask.c:115:16: note: in expansion of macro 'strdup_to_struct_member'
    util-linux-2.42.start/libfdisk/src/ask.c:115:16: note: in expansion of macro 'strdup_to_struct_member'
    util-linux-2.42.start/libfdisk/src/ask.c:115:16: note: in expansion of macro 'strdup_to_struct_member'
    util-linux-2.42.start/libfdisk/src/ask.c:732:16: note: in expansion of macro 'fdisk_is_ask'
    util-linux-2.42.start/libfdisk/src/ask.c:732:16: note: in expansion of macro 'fdisk_is_ask'
    util-linux-2.42.start/libfdisk/src/ask.c:732:16: note: in expansion of macro 'fdisk_is_ask'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/ask.c:144:9: note: in expansion of macro 'DBG'
    #  149|   				"?nothing?"));
    #  150|
    #  151|-> 	if (!fdisk_has_dialogs(cxt) &&
    #  152|   	    !(ask->type == FDISK_ASKTYPE_INFO ||
    #  153|   	      ask->type == FDISK_ASKTYPE_WARNX ||

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
    util-linux-2.42.start/libfdisk/src/ask.c:164:14: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/ask.c:45:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/ask.c:115:16: note: in expansion of macro 'strdup_to_struct_member'
    util-linux-2.42.start/libfdisk/src/ask.c:115:16: note: in expansion of macro 'strdup_to_struct_member'
    util-linux-2.42.start/libfdisk/src/ask.c:115:16: note: in expansion of macro 'strdup_to_struct_member'
    util-linux-2.42.start/libfdisk/src/ask.c:732:16: note: in expansion of macro 'fdisk_is_ask'
    util-linux-2.42.start/libfdisk/src/ask.c:732:16: note: in expansion of macro 'fdisk_is_ask'
    util-linux-2.42.start/libfdisk/src/ask.c:732:16: note: in expansion of macro 'fdisk_is_ask'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/ask.c:144:9: note: in expansion of macro 'DBG'
    #  162|   	}
    #  163|
    #  164|-> 	rc = cxt->ask_cb(cxt, ask, cxt->ask_data);
    #  165|
    #  166|   	DBG(ASK, ul_debugobj(ask, "do_ask done [rc=%d]", rc));

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def322]
    util-linux-2.42.start/libfdisk/src/bsd.c: scope_hint: In function 'bsd_get_bootstrap'
    util-linux-2.42.start/libfdisk/src/bsd.c:646:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(path, 0)'
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/fdiskP.h:64: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/bsd.c:20: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/bsd.c:647:33: note: in expansion of macro '_'
    #  644|   	}
    #  645|
    #  646|-> 	if (read_all(fd, ptr, size) != size) {
    #  647|   		fdisk_warn(cxt, _("cannot read %s"), path);
    #  648|   		close(fd);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
    util-linux-2.42.start/libfdisk/src/context.c: scope_hint: In function 'init_nested_from_parent'
    util-linux-2.42.start/libfdisk/src/context.c:107:9: warning[-Wanalyzer-malloc-leak]: leak of 'devname'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/context.c:831:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    #  105|   	cxt->readonly =		parent->readonly;
    #  106|   	cxt->script =		parent->script;
    #  107|-> 	fdisk_ref_script(cxt->script);
    #  108|   	cxt->sector_size =      parent->sector_size;
    #  109|   	cxt->total_sectors =    parent->total_sectors;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
    util-linux-2.42.start/libfdisk/src/context.c: scope_hint: In function 'fdisk_is_labeltype'
    util-linux-2.42.start/libfdisk/src/context.c:527:40: warning[-Wanalyzer-malloc-leak]: leak of 'add'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:23: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/context.c:997:21: note: in expansion of macro 'fdisk_is_label'
    #  525|   	assert(cxt);
    #  526|
    #  527|-> 	return cxt->label && (unsigned)fdisk_label_get_type(cxt->label) == id;
    #  528|   }
    #  529|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def325]
    util-linux-2.42.start/libfdisk/src/context.c: scope_hint: In function 'reset_context'
    util-linux-2.42.start/libfdisk/src/context.c:550:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
    util-linux-2.42.start/include/c.h:19: included_from: Included from here.
    #  548|   	/* reset drives' private data */
    #  549|   	for (i = 0; i < cxt->nlabels; i++)
    #  550|-> 		fdisk_deinit_label(cxt->labels[i]);
    #  551|
    #  552|   	if (cxt->parent) {

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def326]
    util-linux-2.42.start/libfdisk/src/context.c:561:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
    #  559|   		/* we close device only in primary context */
    #  560|   		if (cxt->dev_fd > -1 && cxt->is_priv)
    #  561|-> 			close(cxt->dev_fd);
    #  562|   		DBG(CXT, ul_debugobj(cxt, "  freeing firstsector"));
    #  563|   		free(cxt->firstsector);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def327]
    util-linux-2.42.start/libfdisk/src/context.c:584:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
    #  582|   	cxt->firstsector_bufsz = 0;
    #  583|
    #  584|-> 	fdisk_zeroize_device_properties(cxt);
    #  585|
    #  586|   	fdisk_unref_script(cxt->script);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def328]
    util-linux-2.42.start/libfdisk/src/context.c:586:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
    #  584|   	fdisk_zeroize_device_properties(cxt);
    #  585|
    #  586|-> 	fdisk_unref_script(cxt->script);
    #  587|   	cxt->script = NULL;
    #  588|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def329]
    util-linux-2.42.start/libfdisk/src/context.c:591:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
    #  589|   	cxt->label = NULL;
    #  590|
    #  591|-> 	fdisk_free_wipe_areas(cxt);
    #  592|   }
    #  593|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
    util-linux-2.42.start/libfdisk/src/context.c: scope_hint: In function 'fdisk_deassign_device'
    util-linux-2.42.start/libfdisk/src/context.c:785:17: warning[-Wanalyzer-malloc-leak]: leak of 'devname'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/context.c:831:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/context.c:782:9: note: in expansion of macro 'DBG'
    #  783|
    #  784|   	if (cxt->readonly && cxt->is_priv)
    #  785|-> 		close(cxt->dev_fd);
    #  786|   	else {
    #  787|   		if (fsync(cxt->dev_fd)) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
    util-linux-2.42.start/libfdisk/src/context.c:787:21: warning[-Wanalyzer-malloc-leak]: leak of 'devname'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/context.c:831:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/context.c:782:9: note: in expansion of macro 'DBG'
    #  785|   		close(cxt->dev_fd);
    #  786|   	else {
    #  787|-> 		if (fsync(cxt->dev_fd)) {
    #  788|   			fdisk_warn(cxt, _("%s: fsync device failed"),
    #  789|   					cxt->dev_path);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
    util-linux-2.42.start/libfdisk/src/context.c:788:25: warning[-Wanalyzer-malloc-leak]: leak of 'devname'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/context.c:831:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/context.c:782:9: note: in expansion of macro 'DBG'
    #  786|   	else {
    #  787|   		if (fsync(cxt->dev_fd)) {
    #  788|-> 			fdisk_warn(cxt, _("%s: fsync device failed"),
    #  789|   					cxt->dev_path);
    #  790|   			return -errno;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
    util-linux-2.42.start/libfdisk/src/context.c:792:37: warning[-Wanalyzer-malloc-leak]: leak of 'devname'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/context.c:831:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/context.c:782:9: note: in expansion of macro 'DBG'
    #  790|   			return -errno;
    #  791|   		}
    #  792|-> 		if (cxt->is_priv && close(cxt->dev_fd)) {
    #  793|   			fdisk_warn(cxt, _("%s: close device failed"),
    #  794|   					cxt->dev_path);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
    util-linux-2.42.start/libfdisk/src/context.c:793:25: warning[-Wanalyzer-malloc-leak]: leak of 'devname'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/context.c:831:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/context.c:782:9: note: in expansion of macro 'DBG'
    #  791|   		}
    #  792|   		if (cxt->is_priv && close(cxt->dev_fd)) {
    #  793|-> 			fdisk_warn(cxt, _("%s: close device failed"),
    #  794|   					cxt->dev_path);
    #  795|   			return -errno;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
    util-linux-2.42.start/libfdisk/src/context.c: scope_hint: In function 'fdisk_reread_changes'
    util-linux-2.42.start/libfdisk/src/context.c:946:16: warning[-Wanalyzer-malloc-leak]: leak of 'add'
    #  944|   	nparts = max(fdisk_table_get_nents(tb), fdisk_table_get_nents(org));
    #  945|
    #  946|-> 	while (fdisk_diff_tables(org, tb, &itr, &pa, &change) == 0) {
    #  947|   		if (change == FDISK_DIFF_UNCHANGED)
    #  948|   			continue;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
    util-linux-2.42.start/libfdisk/src/context.c:946:16: warning[-Wanalyzer-malloc-leak]: leak of 'rem'
    #  944|   	nparts = max(fdisk_table_get_nents(tb), fdisk_table_get_nents(org));
    #  945|
    #  946|-> 	while (fdisk_diff_tables(org, tb, &itr, &pa, &change) == 0) {
    #  947|   		if (change == FDISK_DIFF_UNCHANGED)
    #  948|   			continue;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
    util-linux-2.42.start/libfdisk/src/context.c:976:25: warning[-Wanalyzer-malloc-leak]: leak of 'rem'
    #  974|   		DBG(PART, ul_debugobj(pa, "#%zu calling BLKPG_DEL_PARTITION", pa->partno));
    #  975|   		if (partx_del_partition(cxt->dev_fd, pa->partno + 1) != 0) {
    #  976|-> 			fdisk_warn(cxt, _("Failed to remove partition %zu from system"), pa->partno + 1);
    #  977|   			err++;
    #  978|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
    util-linux-2.42.start/libfdisk/src/context.c:985:25: warning[-Wanalyzer-malloc-leak]: leak of 'upd'
    #  983|   		if (partx_resize_partition(cxt->dev_fd, pa->partno + 1,
    #  984|   					   pa->start * ssf, pa->size * ssf) != 0) {
    #  985|-> 			fdisk_warn(cxt, _("Failed to update system information about partition %zu"), pa->partno + 1);
    #  986|   			err++;
    #  987|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
    util-linux-2.42.start/libfdisk/src/context.c:997:49: warning[-Wanalyzer-malloc-leak]: leak of 'add'
    util-linux-2.42.start/libfdisk/src/context.c:997:21: note: in expansion of macro 'fdisk_is_label'
    util-linux-2.42.start/libfdisk/src/context.c:997:21: note: in expansion of macro 'fdisk_is_label'
    #  995|   		DBG(PART, ul_debugobj(pa, "#%zu calling BLKPG_ADD_PARTITION", pa->partno));
    #  996|
    #  997|-> 		if (fdisk_is_label(cxt, DOS) && fdisk_partition_is_container(pa))
    #  998|   			/* Let's follow the Linux kernel and reduce
    #  999|                            * DOS extended partition to 1 or 2 sectors.

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
    util-linux-2.42.start/libfdisk/src/context.c:1005:25: warning[-Wanalyzer-malloc-leak]: leak of 'add'
    util-linux-2.42.start/libfdisk/src/context.c:997:21: note: in expansion of macro 'fdisk_is_label'
    util-linux-2.42.start/libfdisk/src/context.c:997:21: note: in expansion of macro 'fdisk_is_label'
    # 1003|   		if (partx_add_partition(cxt->dev_fd, pa->partno + 1,
    # 1004|   					pa->start * ssf, sz) != 0) {
    # 1005|-> 			fdisk_warn(cxt, _("Failed to add partition %zu to system"), pa->partno + 1);
    # 1006|   			err++;
    # 1007|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
    util-linux-2.42.start/libfdisk/src/context.c:1010:17: warning[-Wanalyzer-malloc-leak]: leak of 'rem'
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/fdiskP.h:64: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/context.c:1010:33: note: in expansion of macro '_'
    # 1008|   	}
    # 1009|   	if (err)
    # 1010|-> 		fdisk_info(cxt,	_(
    # 1011|   			"The kernel still uses the old partitions. The new "
    # 1012|   			"table will be used at the next reboot. "));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
    util-linux-2.42.start/libfdisk/src/context.c:1010:17: warning[-Wanalyzer-malloc-leak]: leak of 'upd'
    util-linux-2.42.start/libfdisk/src/context.c:1010:33: note: in expansion of macro '_'
    # 1008|   	}
    # 1009|   	if (err)
    # 1010|-> 		fdisk_info(cxt,	_(
    # 1011|   			"The kernel still uses the old partitions. The new "
    # 1012|   			"table will be used at the next reboot. "));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
    util-linux-2.42.start/libfdisk/src/gpt.c:232:35: warning[-Wanalyzer-malloc-leak]: leak of 'gpt_get_header_id(*cxt_19(D)->label.pheader)'
    util-linux-2.42.start/libfdisk/src/gpt.c:232:25: note: in expansion of macro 'swab32'
    util-linux-2.42.start/libfdisk/src/gpt.c: scope_hint: In function 'gpt_entryarr_count_crc32'
    util-linux-2.42.start/libfdisk/src/gpt.c:2758:16: note: in expansion of macro 'fdisk_is_label'
    util-linux-2.42.start/libfdisk/src/gpt.c: scope_hint: In function 'gpt_entryarr_count_crc32'
    util-linux-2.42.start/libfdisk/src/gpt.c:232:25: note: in expansion of macro 'swab32'
    util-linux-2.42.start/libfdisk/src/gpt.c: scope_hint: In function 'gpt_entryarr_count_crc32'
    util-linux-2.42.start/libfdisk/src/gpt.c: scope_hint: In function 'gpt_entryarr_count_crc32'
    /usr/include/sys/types.h:176: included_from: Included from here.
    /usr/include/stdlib.h:518: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/gpt.c:11: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/gpt.c:1079:25: note: in expansion of macro 'cpu_to_le32'
    util-linux-2.42.start/libfdisk/src/gpt.c: scope_hint: In function 'gpt_entryarr_count_crc32'
    util-linux-2.42.start/libfdisk/src/gpt.c:386:30: note: in expansion of macro 'le32_to_cpu'
    util-linux-2.42.start/libfdisk/src/gpt.c: scope_hint: In function 'gpt_entryarr_count_crc32'
    util-linux-2.42.start/libfdisk/src/gpt.c: scope_hint: In function 'gpt_entryarr_count_crc32'
    util-linux-2.42.start/libfdisk/src/gpt.c:232:25: note: in expansion of macro 'swab32'
    #  230|   static void swap_efi_guid(struct gpt_guid *uid)
    #  231|   {
    #  232|-> 	uid->time_low = swab32(uid->time_low);
    #  233|   	uid->time_mid = swab16(uid->time_mid);
    #  234|   	uid->time_hi_and_version = swab16(uid->time_hi_and_version);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
    util-linux-2.42.start/libfdisk/src/gpt.c: scope_hint: In function 'encode_to_utf8'
    util-linux-2.42.start/libfdisk/src/gpt.c:1732:9: warning[-Wanalyzer-malloc-leak]: leak of 'dest'
    # 1730|   		return NULL;
    # 1731|
    # 1732|-> 	ul_encode_to_utf8(UL_ENCODE_UTF16LE, dest, len, src, count);
    # 1733|   	return (char *) dest;
    # 1734|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
    util-linux-2.42.start/libfdisk/src/label.c: scope_hint: In function 'fdisk_label_get_fields_ids'
    util-linux-2.42.start/libfdisk/src/label.c:137:22: warning[-Wanalyzer-malloc-leak]: leak of 'c'
    #  135|   		int id = lb->fields[i].id;
    #  136|
    #  137|-> 		if ((fdisk_is_details(cxt) &&
    #  138|   				(lb->fields[i].flags & FDISK_FIELDFL_EYECANDY))
    #  139|   		     || (!fdisk_is_details(cxt) &&

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
    util-linux-2.42.start/libfdisk/src/label.c:139:27: warning[-Wanalyzer-malloc-leak]: leak of 'c'
    #  137|   		if ((fdisk_is_details(cxt) &&
    #  138|   				(lb->fields[i].flags & FDISK_FIELDFL_EYECANDY))
    #  139|-> 		     || (!fdisk_is_details(cxt) &&
    #  140|   				(lb->fields[i].flags & FDISK_FIELDFL_DETAIL))
    #  141|   		     || (id == FDISK_FIELD_SECTORS &&

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
    util-linux-2.42.start/libfdisk/src/label.c:142:34: warning[-Wanalyzer-malloc-leak]: leak of 'c'
    #  140|   				(lb->fields[i].flags & FDISK_FIELDFL_DETAIL))
    #  141|   		     || (id == FDISK_FIELD_SECTORS &&
    #  142|-> 			         fdisk_use_cylinders(cxt))
    #  143|   		     || (id == FDISK_FIELD_CYLINDERS &&
    #  144|   			         !fdisk_use_cylinders(cxt)))

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
    util-linux-2.42.start/libfdisk/src/label.c:144:35: warning[-Wanalyzer-malloc-leak]: leak of 'c'
    #  142|   			         fdisk_use_cylinders(cxt))
    #  143|   		     || (id == FDISK_FIELD_CYLINDERS &&
    #  144|-> 			         !fdisk_use_cylinders(cxt)))
    #  145|   			continue;
    #  146|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
    util-linux-2.42.start/libfdisk/src/partition.c:32:24: warning[-Wanalyzer-malloc-leak]: leak of 'fdisk_new_partition()'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    util-linux-2.42.start/libfdisk/src/partition.c: scope_hint: In function '__copy_partition'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/partition.c:48:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/partition.c:48:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    #   30|   	FDISK_INIT_UNDEF(pa->boot);
    #   31|
    #   32|-> 	INIT_LIST_HEAD(&pa->parts);
    #   33|   }
    #   34|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
    util-linux-2.42.start/libfdisk/src/partition.c: scope_hint: In function 'fdisk_get_partition'
    util-linux-2.42.start/libfdisk/src/partition.c:1042:14: warning[-Wanalyzer-malloc-leak]: leak of 'pa'
    # 1040|
    # 1041|   	(*pa)->partno = partno;
    # 1042|-> 	rc = cxt->label->op->get_part(cxt, partno, *pa);
    # 1043|
    # 1044|   	if (rc) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
    util-linux-2.42.start/libfdisk/src/partition.c:1042:14: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:199:35: note: in definition of macro 'FDISK_IS_UNDEF'
    util-linux-2.42.start/libfdisk/src/partition.c: scope_hint: In function 'fdisk_get_partition'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:199:35: note: in definition of macro 'FDISK_IS_UNDEF'
    util-linux-2.42.start/libfdisk/src/partition.c: scope_hint: In function 'fdisk_get_partition'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/partition.c:1427:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/partition.c:1427:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/partition.c:48:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/partition.c:48:9: note: in expansion of macro 'DBG'
    # 1040|
    # 1041|   	(*pa)->partno = partno;
    # 1042|-> 	rc = cxt->label->op->get_part(cxt, partno, *pa);
    # 1043|
    # 1044|   	if (rc) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
    util-linux-2.42.start/libfdisk/src/table.c: scope_hint: In function 'fdisk_table_add_partition'
    util-linux-2.42.start/libfdisk/src/table.c:231:9: warning[-Wanalyzer-malloc-leak]: leak of 'parts'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:26: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/table.c:2: included_from: Included from here.
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/table.c:319:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/table.c:31:9: note: in expansion of macro 'DBG'
    #  229|   		return -EBUSY;
    #  230|
    #  231|-> 	fdisk_ref_partition(pa);
    #  232|   	list_add_tail(&pa->parts, &tb->parts);
    #  233|   	tb->nents++;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
    util-linux-2.42.start/libfdisk/src/table.c: scope_hint: In function 'fdisk_get_partitions'
    util-linux-2.42.start/libfdisk/src/table.c:327:21: warning[-Wanalyzer-malloc-leak]: leak of 'parts'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/table.c:319:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/table.c:31:9: note: in expansion of macro 'DBG'
    #  325|   		struct fdisk_partition *pa = NULL;
    #  326|
    #  327|-> 		if (fdisk_get_partition(cxt, i, &pa) != 0)
    #  328|   			continue;
    #  329|   		if (fdisk_partition_is_used(pa))

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def354]
    util-linux-2.42.start/libfdisk/src/table.c:329:21: warning[-Wanalyzer-malloc-leak]: leak of 'parts'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/table.c:319:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libfdisk/src/table.c:31:9: note: in expansion of macro 'DBG'
    #  327|   		if (fdisk_get_partition(cxt, i, &pa) != 0)
    #  328|   			continue;
    #  329|-> 		if (fdisk_partition_is_used(pa))
    #  330|   			fdisk_table_add_partition(*tb, pa);
    #  331|   		fdisk_unref_partition(pa);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def355]
    util-linux-2.42.start/liblastlog2/src/lastlog2.c: scope_hint: In function 'll2_import_lastlog'
    util-linux-2.42.start/liblastlog2/src/lastlog2.c:589:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(lastlog_file, "r")'
    #  587|   	}
    #  588|
    #  589|-> 	setpwent();
    #  590|   	while ((pw = getpwent()) != NULL ) {
    #  591|   		off_t offset;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
    util-linux-2.42.start/liblastlog2/src/lastlog2.c:589:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(lastlog_file, "r")'
    #  587|   	}
    #  588|
    #  589|-> 	setpwent();
    #  590|   	while ((pw = getpwent()) != NULL ) {
    #  591|   		off_t offset;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def357]
    util-linux-2.42.start/liblastlog2/src/lastlog2.c:590:22: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(lastlog_file, "r")'
    #  588|
    #  589|   	setpwent();
    #  590|-> 	while ((pw = getpwent()) != NULL ) {
    #  591|   		off_t offset;
    #  592|   		struct lastlog ll;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
    util-linux-2.42.start/liblastlog2/src/lastlog2.c:590:22: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(lastlog_file, "r")'
    #  588|
    #  589|   	setpwent();
    #  590|-> 	while ((pw = getpwent()) != NULL ) {
    #  591|   		off_t offset;
    #  592|   		struct lastlog ll;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def359]
    util-linux-2.42.start/liblastlog2/src/lastlog2.c:594:36: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(lastlog_file, "r")'
    #  592|   		struct lastlog ll;
    #  593|
    #  594|-> 		offset = (off_t) pw->pw_uid * sizeof (ll);
    #  595|
    #  596|   		if ((offset + (off_t)sizeof(ll)) <= statll.st_size) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
    util-linux-2.42.start/liblastlog2/src/lastlog2.c:594:36: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(lastlog_file, "r")'
    #  592|   		struct lastlog ll;
    #  593|
    #  594|-> 		offset = (off_t) pw->pw_uid * sizeof (ll);
    #  595|
    #  596|   		if ((offset + (off_t)sizeof(ll)) <= statll.st_size) {

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def361]
    util-linux-2.42.start/liblastlog2/src/lastlog2.c:625:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(lastlog_file, "r")'
    #  623|   	}
    #  624|   out_import_lastlog:
    #  625|-> 	endpwent();
    #  626|   	sqlite3_close(db);
    #  627|   done:

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
    util-linux-2.42.start/liblastlog2/src/lastlog2.c:625:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(lastlog_file, "r")'
    #  623|   	}
    #  624|   out_import_lastlog:
    #  625|-> 	endpwent();
    #  626|   	sqlite3_close(db);
    #  627|   done:

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def363]
    util-linux-2.42.start/liblastlog2/src/lastlog2.c:626:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(lastlog_file, "r")'
    #  624|   out_import_lastlog:
    #  625|   	endpwent();
    #  626|-> 	sqlite3_close(db);
    #  627|   done:
    #  628|   	fclose(ll_fp);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
    util-linux-2.42.start/liblastlog2/src/lastlog2.c:626:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(lastlog_file, "r")'
    #  624|   out_import_lastlog:
    #  625|   	endpwent();
    #  626|-> 	sqlite3_close(db);
    #  627|   done:
    #  628|   	fclose(ll_fp);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def365]
    util-linux-2.42.start/libmount/python/tab.c: scope_hint: In function 'Table_write_file'
    util-linux-2.42.start/libmount/python/tab.c:167:14: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(path, "w")'
    #  165|   	if (!(f = fopen(path, "w")))
    #  166|   		return UL_RaiseExc(errno);
    #  167|-> 	rc = mnt_table_write_file(self->tab, f);
    #  168|   	fclose(f);
    #  169|   	return rc ? UL_RaiseExc(-rc) : UL_IncRef(self);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
    util-linux-2.42.start/libmount/python/tab.c:167:14: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(path, "w")'
    #  165|   	if (!(f = fopen(path, "w")))
    #  166|   		return UL_RaiseExc(errno);
    #  167|-> 	rc = mnt_table_write_file(self->tab, f);
    #  168|   	fclose(f);
    #  169|   	return rc ? UL_RaiseExc(-rc) : UL_IncRef(self);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
    util-linux-2.42.start/libmount/src/cache.c: scope_hint: In function 'read_from_udev'
    util-linux-2.42.start/libmount/src/cache.c:472:9: warning[-Wanalyzer-malloc-leak]: leak of 'cacheval'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/cache.c:496:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/cache.c:445:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/cache.c:471:9: note: in expansion of macro 'DBG'
    #  470|
    #  471|   	DBG(CACHE, ul_debugobj(cache, "\tread %zd tags [rc=%d]", ntags, rc));
    #  472|-> 	sd_device_unref(sd);
    #  473|   	free(cacheval);
    #  474|   	free(tagval);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
    util-linux-2.42.start/libmount/src/cache.c: scope_hint: In function 'fstype_from_blkid'
    util-linux-2.42.start/libmount/src/cache.c:595:9: warning[-Wanalyzer-malloc-leak]: leak of 'type'
    #  593|   		*ambi = rc == -2 ? TRUE : FALSE;
    #  594|
    #  595|-> 	blkid_free_probe(pr);
    #  596|   	return type;
    #  597|   }

    Error: GCC_ANALYZER_WARNING (CWE-404): [#def369]
    util-linux-2.42.start/libmount/src/context.c: scope_hint: In function 'mnt_context_sprintf_mesg'
    util-linux-2.42.start/libmount/src/context.c:2819:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
    # 2817|
    # 2818|   	va_start(ap, msg);
    # 2819|-> 	rc = ul_strv_extendv(&cxt->mesgs, msg, ap);
    # 2820|   	va_end(ap);
    # 2821|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
    util-linux-2.42.start/libmount/src/context_mount.c: scope_hint: In function 'do_mount'
    util-linux-2.42.start/libmount/src/context_mount.c:541:17: warning[-Wanalyzer-malloc-leak]: leak of 'org_type'
    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/context_mount.c:21: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:32: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:862:9: note: in expansion of macro 'DBG'
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/sys/wait.h:25: included_from: Included from here.
    util-linux-2.42.start/libmount/src/context_mount.c:18: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:603:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:615:17: note: in expansion of macro 'DBG'
    #  539|   			}
    #  540|   		}
    #  541|-> 		mnt_fs_set_fstype(cxt->fs, try_type);
    #  542|   	}
    #  543|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
    util-linux-2.42.start/libmount/src/context_mount.c:549:22: warning[-Wanalyzer-malloc-leak]: leak of 'org_type'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:862:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:603:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:615:17: note: in expansion of macro 'DBG'
    #  547|   	 */
    #  548|   	if (!rc)
    #  549|-> 		rc = mnt_context_call_hooks(cxt, MNT_STAGE_MOUNT);
    #  550|
    #  551|   	if (rc == 0 && mnt_context_is_fake(cxt)) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
    util-linux-2.42.start/libmount/src/context_mount.c:551:24: warning[-Wanalyzer-malloc-leak]: leak of 'org_type'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:862:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:603:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:615:17: note: in expansion of macro 'DBG'
    #  549|   		rc = mnt_context_call_hooks(cxt, MNT_STAGE_MOUNT);
    #  550|
    #  551|-> 	if (rc == 0 && mnt_context_is_fake(cxt)) {
    #  552|   		DBG(CXT, ul_debugobj(cxt, "FAKE (-f) set status=0"));
    #  553|   		cxt->syscall_status = 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
    util-linux-2.42.start/libmount/src/context_mount.c:557:17: warning[-Wanalyzer-malloc-leak]: leak of 'org_type'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:862:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:603:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:615:17: note: in expansion of macro 'DBG'
    #  555|
    #  556|   	if (org_type && rc != 0) {
    #  557|-> 		__mnt_fs_set_fstype_ptr(cxt->fs, org_type);
    #  558|   		org_type  = NULL;
    #  559|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
    util-linux-2.42.start/libmount/src/context_mount.c:562:40: warning[-Wanalyzer-malloc-leak]: leak of 'org_type'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:862:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:603:9: note: in expansion of macro 'DBG'
    #  560|
    #  561|   	if (rc == 0 && try_type && cxt->update) {
    #  562|-> 		struct libmnt_fs *fs = mnt_update_get_fs(cxt->update);
    #  563|   		if (fs)
    #  564|   			rc = mnt_fs_set_fstype(fs, try_type);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
    util-linux-2.42.start/libmount/src/context_mount.c:564:30: warning[-Wanalyzer-malloc-leak]: leak of 'org_type'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:862:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:603:9: note: in expansion of macro 'DBG'
    #  562|   		struct libmnt_fs *fs = mnt_update_get_fs(cxt->update);
    #  563|   		if (fs)
    #  564|-> 			rc = mnt_fs_set_fstype(fs, try_type);
    #  565|   	}
    #  566|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
    util-linux-2.42.start/libmount/src/context_mount.c: scope_hint: In function 'do_mount_by_types'
    util-linux-2.42.start/libmount/src/context_mount.c:619:30: warning[-Wanalyzer-malloc-leak]: leak of 'p'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:862:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:603:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:615:17: note: in expansion of macro 'DBG'
    #  617|   		/* Let's support things like "udf,iso9660,auto" */
    #  618|   		if (strcmp(p, "auto") == 0) {
    #  619|-> 			rc = mnt_context_guess_srcpath_fstype(cxt, &autotype);
    #  620|   			if (rc) {
    #  621|   				DBG(CXT, ul_debugobj(cxt, "failed to guess FS type [rc=%d]", rc));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
    util-linux-2.42.start/libmount/src/context_mount.c: scope_hint: In function 'do_mount'
    util-linux-2.42.start/libmount/src/context_mount.c:626:27: warning[-Wanalyzer-malloc-leak]: leak of 'p'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:862:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/context_mount.c:603:9: note: in expansion of macro 'DBG'
    #  624|   				return rc;
    #  625|   			}
    #  626|-> 			p = autotype;
    #  627|   			DBG(CXT, ul_debugobj(cxt, "   --> '%s'", p));
    #  628|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
    util-linux-2.42.start/libmount/src/context_mount.c: scope_hint: In function 'is_shared_tree'
    util-linux-2.42.start/libmount/src/context_mount.c:1435:14: warning[-Wanalyzer-malloc-leak]: leak of 'mnt'
    # 1433|   	if (p > mnt)
    # 1434|   		*p = '\0';
    # 1435|-> 	fs = mnt_table_find_mountpoint(tb, mnt, MNT_ITER_BACKWARD);
    # 1436|
    # 1437|   	rc = fs && mnt_fs_is_kernel(fs)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
    util-linux-2.42.start/libmount/src/context_mount.c:1437:20: warning[-Wanalyzer-malloc-leak]: leak of 'mnt'
    # 1435|   	fs = mnt_table_find_mountpoint(tb, mnt, MNT_ITER_BACKWARD);
    # 1436|
    # 1437|-> 	rc = fs && mnt_fs_is_kernel(fs)
    # 1438|   		&& mnt_fs_get_propagation(fs, &mflags) == 0
    # 1439|   		&& (mflags & MS_SHARED);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
    util-linux-2.42.start/libmount/src/context_mount.c:1438:20: warning[-Wanalyzer-malloc-leak]: leak of 'mnt'
    # 1436|
    # 1437|   	rc = fs && mnt_fs_is_kernel(fs)
    # 1438|-> 		&& mnt_fs_get_propagation(fs, &mflags) == 0
    # 1439|   		&& (mflags & MS_SHARED);
    # 1440|   done:

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
    util-linux-2.42.start/libmount/src/mountP.h:31: included_from: Included from here.
    util-linux-2.42.start/libmount/src/fs.c:23: included_from: Included from here.
    util-linux-2.42.start/libmount/src/fs.c: scope_hint: In function 'sync_opts_from_optlist'
    util-linux-2.42.start/libmount/src/fs.c:42:24: warning[-Wanalyzer-malloc-leak]: leak of 'mnt_new_fs()'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    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/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    #   40|
    #   41|   	fs->refcount = 1;
    #   42|-> 	INIT_LIST_HEAD(&fs->ents);
    #   43|   	DBG(FS, ul_debugobj(fs, "alloc"));
    #   44|   	return fs;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
    util-linux-2.42.start/libmount/src/fs.c:165:1: warning[-Wanalyzer-malloc-leak]: leak of '*m.mnt_dir'
    util-linux-2.42.start/libmount/src/fs.c:447:9: note: in expansion of macro 'mnt_fs_try_statmount'
    util-linux-2.42.start/libmount/src/fs.c:628:9: note: in expansion of macro 'mnt_fs_try_statmount'
    #  163|   	memcpy(*dest, src, sz);
    #  164|   	return 0;
    #  165|-> }
    #  166|
    #  167|   /* This function does NOT overwrite (replace) the string in @new, the string in

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
    util-linux-2.42.start/libmount/src/fs.c: scope_hint: In function 'update_str'
    util-linux-2.42.start/libmount/src/fs.c:165:1: warning[-Wanalyzer-malloc-leak]: leak of '*m.mnt_fsname'
    util-linux-2.42.start/libmount/src/fs.c:447:9: note: in expansion of macro 'mnt_fs_try_statmount'
    #  163|   	memcpy(*dest, src, sz);
    #  164|   	return 0;
    #  165|-> }
    #  166|
    #  167|   /* This function does NOT overwrite (replace) the string in @new, the string in

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def384]
    util-linux-2.42.start/libmount/src/fs.c:165:1: warning[-Wanalyzer-malloc-leak]: leak of '*m.mnt_type'
    util-linux-2.42.start/libmount/src/fs.c:447:9: note: in expansion of macro 'mnt_fs_try_statmount'
    util-linux-2.42.start/libmount/src/fs.c:628:9: note: in expansion of macro 'mnt_fs_try_statmount'
    util-linux-2.42.start/libmount/src/fs.c:823:9: note: in expansion of macro 'mnt_fs_try_statmount'
    #  163|   	memcpy(*dest, src, sz);
    #  164|   	return 0;
    #  165|-> }
    #  166|
    #  167|   /* This function does NOT overwrite (replace) the string in @new, the string in

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def385]
    util-linux-2.42.start/libmount/src/fs.c: scope_hint: In function 'mnt_copy_mtab_fs'
    util-linux-2.42.start/libmount/src/fs.c:347:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
    util-linux-2.42.start/libmount/src/fs.c:338:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:338:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:338:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:340:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:340:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:340:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:342:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:342:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:342:13: note: in expansion of macro 'strdup_between_structs'
    #  345|   	if (fs->vfs_optstr) {
    #  346|   		char *p = NULL;
    #  347|-> 		mnt_optstr_get_options(fs->vfs_optstr, &p,
    #  348|   				mnt_get_builtin_optmap(MNT_LINUX_MAP),
    #  349|   				MNT_NOMTAB);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
    util-linux-2.42.start/libmount/src/fs.c:355:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
    util-linux-2.42.start/libmount/src/fs.c:338:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:338:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:338:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:340:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:340:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:340:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:342:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:342:13: note: in expansion of macro 'strdup_between_structs'
    util-linux-2.42.start/libmount/src/fs.c:342:13: note: in expansion of macro 'strdup_between_structs'
    #  353|   	if (fs->user_optstr) {
    #  354|   		char *p = NULL;
    #  355|-> 		mnt_optstr_get_options(fs->user_optstr, &p,
    #  356|   				mnt_get_builtin_optmap(MNT_USERSPACE_MAP),
    #  357|   				MNT_NOMTAB);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
    util-linux-2.42.start/libmount/src/fs.c: scope_hint: In function '__mnt_fs_set_source_ptr'
    util-linux-2.42.start/libmount/src/fs.c:461:23: warning[-Wanalyzer-malloc-leak]: leak of 'p'
    #  459|   	assert(fs);
    #  460|
    #  461|-> 	if (source && blkid_parse_tag_string(source, &t, &v) == 0 &&
    #  462|   	    !mnt_valid_tagname(t)) {
    #  463|   		/* parsable but unknown tag -- ignore */

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
    util-linux-2.42.start/libmount/src/fs.c:462:14: warning[-Wanalyzer-malloc-leak]: leak of 'p'
    #  460|
    #  461|   	if (source && blkid_parse_tag_string(source, &t, &v) == 0 &&
    #  462|-> 	    !mnt_valid_tagname(t)) {
    #  463|   		/* parsable but unknown tag -- ignore */
    #  464|   		free(t);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
    util-linux-2.42.start/libmount/src/fs.c: scope_hint: In function 'mnt_fs_to_mntent'
    util-linux-2.42.start/libmount/src/fs.c:2018:17: warning[-Wanalyzer-malloc-leak]: leak of 'm'
    util-linux-2.42.start/libmount/src/fs.c:447:9: note: in expansion of macro 'mnt_fs_try_statmount'
    # 2016|
    # 2017|   	if ((rc = update_str(&m->mnt_fsname, mnt_fs_get_source(fs))))
    # 2018|-> 		goto err;
    # 2019|   	if ((rc = update_str(&m->mnt_dir, mnt_fs_get_target(fs))))
    # 2020|   		goto err;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
    util-linux-2.42.start/libmount/src/mountP.h:31: included_from: Included from here.
    util-linux-2.42.start/libmount/src/hook_idmap.c:28: included_from: Included from here.
    util-linux-2.42.start/libmount/src/hook_idmap.c: scope_hint: In function 'open_userns'
    util-linux-2.42.start/libmount/src/hook_idmap.c:62:24: warning[-Wanalyzer-malloc-leak]: leak of 'new_hook_data()'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    #   60|   		return NULL;
    #   61|
    #   62|-> 	INIT_LIST_HEAD(&hd->id_map);
    #   63|   	hd->userns_fd = -1;
    #   64|   	return hd;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def391]
    util-linux-2.42.start/libmount/src/hook_idmap.c: scope_hint: In function 'wait_for_pid'
    util-linux-2.42.start/libmount/src/hook_idmap.c:182:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_userns'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    util-linux-2.42.start/libmount/src/hook_idmap.c:139:17: note: in expansion of macro 'list_for_each'
    util-linux-2.42.start/libmount/src/hook_idmap.c:139:17: note: in expansion of macro 'list_for_each'
    util-linux-2.42.start/libmount/src/hook_idmap.c:139:17: note: in expansion of macro 'list_for_each'
    #  180|
    #  181|   	do {
    #  182|-> 		rc = waitpid(pid, &status, 0);
    #  183|   	} while (rc < 0 && errno == EINTR);
    #  184|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def392]
    util-linux-2.42.start/libmount/src/hook_idmap.c: scope_hint: In function 'write_all'
    util-linux-2.42.start/libmount/src/hook_idmap.c:249:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&path, 524544)'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    util-linux-2.42.start/libmount/src/hook_idmap.c:139:17: note: in expansion of macro 'list_for_each'
    util-linux-2.42.start/libmount/src/hook_idmap.c:139:17: note: in expansion of macro 'list_for_each'
    util-linux-2.42.start/libmount/src/hook_idmap.c:139:17: note: in expansion of macro 'list_for_each'
    #  247|
    #  248|   	/* Let child know we've persisted its namespace. */
    #  249|-> 	(void)write_all(sock_fds[1], &c, 1);
    #  250|
    #  251|   err_wait:

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def393]
    util-linux-2.42.start/libmount/src/hook_idmap.c: scope_hint: In function 'get_userns_fd_from_idmap'
    util-linux-2.42.start/libmount/src/hook_idmap.c:256:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_userns'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    util-linux-2.42.start/libmount/src/hook_idmap.c:139:17: note: in expansion of macro 'list_for_each'
    util-linux-2.42.start/libmount/src/hook_idmap.c:139:17: note: in expansion of macro 'list_for_each'
    util-linux-2.42.start/libmount/src/hook_idmap.c:139:17: note: in expansion of macro 'list_for_each'
    #  254|   err_close_sock:
    #  255|   	if (sock_fds[0] > 0)
    #  256|-> 		close(sock_fds[0]);
    #  257|   	close(sock_fds[1]);
    #  258|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
    util-linux-2.42.start/libmount/src/hook_idmap.c: scope_hint: In function 'hook_prepare_options'
    util-linux-2.42.start/libmount/src/hook_idmap.c:465:25: warning[-Wanalyzer-malloc-leak]: leak of 'idmap'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    #  463|   			goto err;
    #  464|
    #  465|-> 		idmap = calloc(1, sizeof(*idmap));
    #  466|   		if (!idmap)
    #  467|   			goto err;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
    util-linux-2.42.start/libmount/src/hook_loopdev.c: scope_hint: In function 'is_mounted_same_loopfile'
    util-linux-2.42.start/libmount/src/hook_loopdev.c:115:30: warning[-Wanalyzer-malloc-leak]: leak of 'val'
    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/hook_loopdev.c:17: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:32: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/hook_loopdev.c:82:9: note: in expansion of macro 'DBG'
    #  113|
    #  114|   			val = strndup(val, len);
    #  115|-> 			rc = loopdev_is_used((char *) val, bf, offset, 0, LOOPDEV_FL_OFFSET);
    #  116|   			free(val);
    #  117|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
    util-linux-2.42.start/libmount/src/hook_mount.c: scope_hint: In function 'new_hookset_data'
    util-linux-2.42.start/libmount/src/hook_mount.c:111:13: warning[-Wanalyzer-malloc-leak]: leak of 'api'
    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/mountP.h:32: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/hook_mount.c:601:9: note: in expansion of macro 'DBG'
    #  109|   	api->fd_fs = api->fd_tree = -1;
    #  110|
    #  111|-> 	if (mnt_context_set_hookset_data(cxt, hs, api) != 0) {
    #  112|   		/* probably ENOMEM problem */
    #  113|   		free(api);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
    util-linux-2.42.start/libmount/src/hook_mount_legacy.c: scope_hint: In function 'prepare_propagation'
    util-linux-2.42.start/libmount/src/hook_mount_legacy.c:122:34: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(1, 8)'
    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/hook_mount_legacy.c:18: included_from: Included from here.
    util-linux-2.42.start/libmount/src/hook_mount_legacy.c: scope_hint: In function 'prepare_propagation'
    #  120|   			return -ENOMEM;
    #  121|
    #  122|-> 		data->flags = ent->id;
    #  123|
    #  124|   		DBG(HOOK, ul_debugobj(hs, " adding mount(2) call for %s", ent->name));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
    util-linux-2.42.start/libmount/src/hook_mount_legacy.c: scope_hint: In function 'prepare_bindremount'
    util-linux-2.42.start/libmount/src/hook_mount_legacy.c:185:9: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(1, 8)'
    util-linux-2.42.start/libmount/src/mountP.h:32: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/hook_mount_legacy.c:179:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/hook_mount_legacy.c: scope_hint: In function 'prepare_bindremount'
    #  183|   		return -ENOMEM;
    #  184|
    #  185|-> 	mnt_context_get_mflags(cxt, &data->flags);
    #  186|
    #  187|   	assert(data->flags & MS_BIND);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
    util-linux-2.42.start/libmount/src/hook_owner.c: scope_hint: In function 'hook_prepare_options'
    util-linux-2.42.start/libmount/src/hook_owner.c:117:21: warning[-Wanalyzer-malloc-leak]: leak of 'new_hook_data()'
    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/hook_owner.c:19: included_from: Included from here.
    #  115|   				goto fail;
    #  116|   		}
    #  117|-> 		if (mnt_parse_uid(value, strlen(value), &hd->owner))
    #  118|   			goto fail;
    #  119|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
    util-linux-2.42.start/libmount/src/hook_owner.c:131:21: warning[-Wanalyzer-malloc-leak]: leak of 'hd'
    #  129|   				goto fail;
    #  130|   		}
    #  131|-> 		if (mnt_parse_gid(value, strlen(value), &hd->group))
    #  132|   			goto fail;
    #  133|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
    util-linux-2.42.start/libmount/src/hook_owner.c:145:21: warning[-Wanalyzer-malloc-leak]: leak of 'hd'
    #  143|   				goto fail;
    #  144|   		}
    #  145|-> 		if (mnt_parse_mode(value, strlen(value), &hd->mode))
    #  146|   			goto fail;
    #  147|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
    util-linux-2.42.start/libmount/src/hook_subdir.c: scope_hint: In function 'new_hookset_data'
    util-linux-2.42.start/libmount/src/hook_subdir.c:79:21: warning[-Wanalyzer-malloc-leak]: leak of 'hsd'
    #   77|   		hsd->new_ns_fd = hsd->old_ns_fd = -1;
    #   78|
    #   79|-> 		if (mnt_context_set_hookset_data(cxt, hs, hsd) != 0) {
    #   80|   			/* probably ENOMEM problem */
    #   81|   			free(hsd);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
    util-linux-2.42.start/libmount/src/hook_subdir.c:79:21: warning[-Wanalyzer-malloc-leak]: leak of 'subdir'
    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/hook_subdir.c:38: included_from: Included from here.
    #   77|   		hsd->new_ns_fd = hsd->old_ns_fd = -1;
    #   78|
    #   79|-> 		if (mnt_context_set_hookset_data(cxt, hs, hsd) != 0) {
    #   80|   			/* probably ENOMEM problem */
    #   81|   			free(hsd);

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def404]
    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-401): [#def405]
    util-linux-2.42.start/libmount/src/fs.c: scope_hint: In function 'mnt_fs_get_source'
    util-linux-2.42.start/libmount/src/mountP.h:315:33: warning[-Wanalyzer-malloc-leak]: leak of 'm'
    util-linux-2.42.start/libmount/src/fs.c:447:9: note: in expansion of macro 'mnt_fs_try_statmount'
    util-linux-2.42.start/libmount/src/fs.c:447:9: note: in expansion of macro 'mnt_fs_try_statmount'
    util-linux-2.42.start/libmount/src/fs.c:447:9: note: in expansion of macro 'mnt_fs_try_statmount'
    util-linux-2.42.start/libmount/src/fs.c:447:9: note: in expansion of macro 'mnt_fs_try_statmount'
    util-linux-2.42.start/libmount/src/fs.c:447:9: note: in expansion of macro 'mnt_fs_try_statmount'
    util-linux-2.42.start/libmount/src/fs.c:447:9: note: in expansion of macro 'mnt_fs_try_statmount'
    #  313|   			    && !(FS)->stmnt->disabled				\
    #  314|   			    && ((FLAGS) & ~((FS)->stmnt_done)))			\
    #  315|-> 				mnt_fs_fetch_statmount((FS), (FLAGS)); })
    #  316|   #endif
    #  317|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
    util-linux-2.42.start/libmount/src/optlist.c:17: included_from: Included from here.
    util-linux-2.42.start/libmount/src/optlist.c: scope_hint: In function 'mnt_copy_optlist'
    util-linux-2.42.start/libmount/src/optlist.c:85:24: warning[-Wanalyzer-malloc-leak]: leak of 'mnt_new_optlist()'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    #   83|
    #   84|   	ls->refcount = 1;
    #   85|-> 	INIT_LIST_HEAD(&ls->opts);
    #   86|
    #   87|   	ls->linux_map = mnt_get_builtin_optmap(MNT_LINUX_MAP);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
    util-linux-2.42.start/libmount/src/optlist.c: scope_hint: In function 'mnt_new_optlist'
    util-linux-2.42.start/libmount/src/optlist.c:87:25: warning[-Wanalyzer-malloc-leak]: leak of 'ls'
    #   85|   	INIT_LIST_HEAD(&ls->opts);
    #   86|
    #   87|-> 	ls->linux_map = mnt_get_builtin_optmap(MNT_LINUX_MAP);
    #   88|
    #   89|   	DBG(OPTLIST, ul_debugobj(ls, "alloc"));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
    util-linux-2.42.start/libmount/src/optlist.c: scope_hint: In function 'mnt_copy_optlist'
    util-linux-2.42.start/libmount/src/optlist.c:428:24: warning[-Wanalyzer-malloc-leak]: leak of 'optlist_new_opt(mnt_new_optlist(), *opt.name,  <unknown>, *opt.value,  <unknown>, *opt.map, *opt.ent, 0)'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    util-linux-2.42.start/include/strutils.h:19: included_from: Included from here.
    util-linux-2.42.start/libmount/src/optlist.c:16: included_from: Included from here.
    util-linux-2.42.start/include/list.h:176:41: note: in expansion of macro 'container_of'
    util-linux-2.42.start/libmount/src/mountP.h:195:17: note: in expansion of macro 'list_entry'
    util-linux-2.42.start/libmount/src/optlist.c:240:32: note: in expansion of macro 'MNT_ITER_GET_ENTRY'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    util-linux-2.42.start/libmount/src/mountP.h:32: included_from: Included from here.
    util-linux-2.42.start/libmount/src/optlist.c:18: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/optlist.c:490:17: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/optlist.c:490:17: note: in expansion of macro 'DBG'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    #  426|   		return NULL;
    #  427|
    #  428|-> 	INIT_LIST_HEAD(&opt->opts);
    #  429|   	opt->map = map;
    #  430|   	opt->ent = ent;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
    util-linux-2.42.start/libmount/src/optstr.c: scope_hint: In function 'mnt_optstr_locate_option'
    util-linux-2.42.start/libmount/src/optstr.c:69:22: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    util-linux-2.42.start/libmount/src/optstr.c:23: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/strutils.h:19: included_from: Included from here.
    #   67|
    #   68|   	do {
    #   69|-> 		rc = ul_optstr_next(&optstr, &n, &nsz,
    #   70|   					ol ? &ol->value : NULL,
    #   71|   					ol ? &ol->valsz : NULL);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
    util-linux-2.42.start/libmount/src/tab.c: scope_hint: In function 'mnt_table_next_fs'
    util-linux-2.42.start/libmount/src/tab.c:859:13: warning[-Wanalyzer-malloc-leak]: leak of 'mnt'
    util-linux-2.42.start/libmount/src/mountP.h:32: included_from: Included from here.
    util-linux-2.42.start/libmount/src/tab.c:52: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab.c:1154:9: note: in expansion of macro 'DBG'
    #  857|   		*fs = NULL;
    #  858|   #ifdef HAVE_STATMOUNT_API
    #  859|-> 	if (mnt_table_want_listmount(tb) &&
    #  860|   	    (list_empty(&tb->ents) || itr->p == itr->head)) {
    #  861|   		struct list_head *prev = NULL;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
    util-linux-2.42.start/libmount/src/tab.c:865:23: warning[-Wanalyzer-malloc-leak]: leak of 'mnt'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab.c:1154:9: note: in expansion of macro 'DBG'
    #  863|   		if (itr->p)
    #  864|   			prev = IS_ITER_FORWARD(itr) ? itr->p->prev : itr->p->next;
    #  865|-> 		rc =  mnt_table_next_lsmnt(tb, itr->direction);
    #  866|   		if (rc)
    #  867|   			return rc;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
    util-linux-2.42.start/libmount/src/tab.c: scope_hint: In function 'mnt_table_find_target'
    util-linux-2.42.start/libmount/src/tab.c:1157:9: warning[-Wanalyzer-malloc-leak]: leak of 'mnt'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab.c:1154:9: note: in expansion of macro 'DBG'
    # 1155|
    # 1156|   	/* native @target */
    # 1157|-> 	mnt_reset_iter(&itr, direction);
    # 1158|   	while(mnt_table_next_fs(tb, &itr, &fs) == 0) {
    # 1159|   		if (mnt_fs_streq_target(fs, path))

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def413]
    util-linux-2.42.start/libmount/src/tab.c:1159:21: warning[-Wanalyzer-malloc-leak]: leak of 'mnt'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab.c:1154:9: note: in expansion of macro 'DBG'
    # 1157|   	mnt_reset_iter(&itr, direction);
    # 1158|   	while(mnt_table_next_fs(tb, &itr, &fs) == 0) {
    # 1159|-> 		if (mnt_fs_streq_target(fs, path))
    # 1160|   			return fs;
    # 1161|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
    util-linux-2.42.start/libmount/src/tab.c:1164:48: warning[-Wanalyzer-malloc-leak]: leak of 'mnt'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab.c:1154:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/tab.c: scope_hint: In function 'mnt_table_find_target'
    # 1162|
    # 1163|   	/* try absolute path */
    # 1164|-> 	if (ul_is_relative_path(path) && (cn = ul_absolute_path(path))) {
    # 1165|   		DBG(TAB, ul_debugobj(tb, "lookup absolute TARGET: '%s'", cn));
    # 1166|   		mnt_reset_iter(&itr, direction);

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def415]
    util-linux-2.42.start/libmount/src/tab.c:1196:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'fs'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab.c:1154:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab.c:1179:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:189:28: note: in expansion of macro 'IS_ITER_FORWARD'
    util-linux-2.42.start/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-401): [#def416]
    util-linux-2.42.start/libmount/src/tab_diff.c: scope_hint: In function 'tabdiff_add_entry'
    util-linux-2.42.start/libmount/src/tab_diff.c:175:9: warning[-Wanalyzer-malloc-leak]: leak of 'de'
    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/tab_diff.c:18: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:32: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_diff.c:161:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:31: included_from: Included from here.
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    #  173|   	INIT_LIST_HEAD(&de->changes);
    #  174|
    #  175|-> 	mnt_ref_fs(new);
    #  176|   	mnt_ref_fs(old);
    #  177|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def417]
    util-linux-2.42.start/libmount/src/tab_diff.c:176:9: warning[-Wanalyzer-malloc-leak]: leak of 'de'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_diff.c:161:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    #  174|
    #  175|   	mnt_ref_fs(new);
    #  176|-> 	mnt_ref_fs(old);
    #  177|
    #  178|   	mnt_unref_fs(de->new_fs);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def418]
    util-linux-2.42.start/libmount/src/tab_diff.c:178:9: warning[-Wanalyzer-malloc-leak]: leak of 'de'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_diff.c:161:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    #  176|   	mnt_ref_fs(old);
    #  177|
    #  178|-> 	mnt_unref_fs(de->new_fs);
    #  179|   	mnt_unref_fs(de->old_fs);
    #  180|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def419]
    util-linux-2.42.start/libmount/src/tab_diff.c:179:9: warning[-Wanalyzer-malloc-leak]: leak of 'de'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_diff.c:161:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
    #  177|
    #  178|   	mnt_unref_fs(de->new_fs);
    #  179|-> 	mnt_unref_fs(de->old_fs);
    #  180|
    #  181|   	de->old_fs = old;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def420]
    util-linux-2.42.start/libmount/src/tab_update.c: scope_hint: In function 'fprintf_utab_fs'
    util-linux-2.42.start/libmount/src/tab_update.c:449:13: warning[-Wanalyzer-malloc-leak]: leak of 'f'
    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/tab_update.c:28: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:32: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:809:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:513:9: note: in expansion of macro 'DBG'
    #  447|   		return -EINVAL;
    #  448|
    #  449|-> 	if (mnt_fs_get_id(fs) > 0)
    #  450|   		rc = fprintf(f, "ID=%d ", mnt_fs_get_id(fs));
    #  451|   	if (mnt_fs_get_uniq_id(fs) > 0)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
    util-linux-2.42.start/libmount/src/tab_update.c:450:22: warning[-Wanalyzer-malloc-leak]: leak of 'f'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:809:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:513:9: note: in expansion of macro 'DBG'
    #  448|
    #  449|   	if (mnt_fs_get_id(fs) > 0)
    #  450|-> 		rc = fprintf(f, "ID=%d ", mnt_fs_get_id(fs));
    #  451|   	if (mnt_fs_get_uniq_id(fs) > 0)
    #  452|   		rc = fprintf(f, "UNIQID=%" PRIu64, mnt_fs_get_uniq_id(fs));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
    util-linux-2.42.start/libmount/src/tab_update.c:451:13: warning[-Wanalyzer-malloc-leak]: leak of 'f'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:809:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:513:9: note: in expansion of macro 'DBG'
    #  449|   	if (mnt_fs_get_id(fs) > 0)
    #  450|   		rc = fprintf(f, "ID=%d ", mnt_fs_get_id(fs));
    #  451|-> 	if (mnt_fs_get_uniq_id(fs) > 0)
    #  452|   		rc = fprintf(f, "UNIQID=%" PRIu64, mnt_fs_get_uniq_id(fs));
    #  453|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
    util-linux-2.42.start/libmount/src/tab_update.c:452:22: warning[-Wanalyzer-malloc-leak]: leak of 'f'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:809:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:513:9: note: in expansion of macro 'DBG'
    #  450|   		rc = fprintf(f, "ID=%d ", mnt_fs_get_id(fs));
    #  451|   	if (mnt_fs_get_uniq_id(fs) > 0)
    #  452|-> 		rc = fprintf(f, "UNIQID=%" PRIu64, mnt_fs_get_uniq_id(fs));
    #  453|
    #  454|   	if (rc >= 0) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
    util-linux-2.42.start/libmount/src/tab_update.c:455:21: warning[-Wanalyzer-malloc-leak]: leak of 'f'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:809:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:513:9: note: in expansion of macro 'DBG'
    #  453|
    #  454|   	if (rc >= 0) {
    #  455|-> 		p = mangle(mnt_fs_get_source(fs));
    #  456|   		if (p) {
    #  457|   			rc = fprintf(f, "SRC=%s ", p);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def425]
    util-linux-2.42.start/libmount/src/tab_update.c:462:21: warning[-Wanalyzer-malloc-leak]: leak of 'f'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:809:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:513:9: note: in expansion of macro 'DBG'
    #  460|   	}
    #  461|   	if (rc >= 0) {
    #  462|-> 		p = mangle(mnt_fs_get_target(fs));
    #  463|   		if (p) {
    #  464|   			rc = fprintf(f, "TARGET=%s ", p);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def426]
    util-linux-2.42.start/libmount/src/tab_update.c: scope_hint: In function 'update_table'
    util-linux-2.42.start/libmount/src/tab_update.c:525:17: warning[-Wanalyzer-malloc-leak]: leak of 'f'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:809:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:513:9: note: in expansion of macro 'DBG'
    #  523|   		struct libmnt_fs *fs;
    #  524|
    #  525|-> 		mnt_reset_iter(&itr, MNT_ITER_FORWARD);
    #  526|
    #  527|   		if (tb->comms && mnt_table_get_intro_comment(tb))

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def427]
    util-linux-2.42.start/libmount/src/tab_update.c:527:34: warning[-Wanalyzer-malloc-leak]: leak of 'f'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:809:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:513:9: note: in expansion of macro 'DBG'
    #  525|   		mnt_reset_iter(&itr, MNT_ITER_FORWARD);
    #  526|
    #  527|-> 		if (tb->comms && mnt_table_get_intro_comment(tb))
    #  528|   			fputs(mnt_table_get_intro_comment(tb), f);
    #  529|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
    util-linux-2.42.start/libmount/src/tab_update.c:528:31: warning[-Wanalyzer-malloc-leak]: leak of 'f'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:809:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:513:9: note: in expansion of macro 'DBG'
    #  526|
    #  527|   		if (tb->comms && mnt_table_get_intro_comment(tb))
    #  528|-> 			fputs(mnt_table_get_intro_comment(tb), f);
    #  529|
    #  530|   		while(mnt_table_next_fs(tb, &itr, &fs) == 0) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
    util-linux-2.42.start/libmount/src/tab_update.c:530:23: warning[-Wanalyzer-malloc-leak]: leak of 'f'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:809:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:513:9: note: in expansion of macro 'DBG'
    #  528|   			fputs(mnt_table_get_intro_comment(tb), f);
    #  529|
    #  530|-> 		while(mnt_table_next_fs(tb, &itr, &fs) == 0) {
    #  531|   			rc = fprintf_utab_fs(f, fs);
    #  532|   			if (rc) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
    util-linux-2.42.start/libmount/src/tab_update.c:538:34: warning[-Wanalyzer-malloc-leak]: leak of 'f'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:809:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:513:9: note: in expansion of macro 'DBG'
    #  536|   			}
    #  537|   		}
    #  538|-> 		if (tb->comms && mnt_table_get_trailing_comment(tb))
    #  539|   			fputs(mnt_table_get_trailing_comment(tb), f);
    #  540|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
    util-linux-2.42.start/libmount/src/tab_update.c:539:31: warning[-Wanalyzer-malloc-leak]: leak of 'f'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:809:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:513:9: note: in expansion of macro 'DBG'
    #  537|   		}
    #  538|   		if (tb->comms && mnt_table_get_trailing_comment(tb))
    #  539|-> 			fputs(mnt_table_get_trailing_comment(tb), f);
    #  540|
    #  541|   		if (fflush(f) != 0) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
    util-linux-2.42.start/libmount/src/tab_update.c:541:21: warning[-Wanalyzer-malloc-leak]: leak of 'f'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:809:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/tab_update.c:513:9: note: in expansion of macro 'DBG'
    #  539|   			fputs(mnt_table_get_trailing_comment(tb), f);
    #  540|
    #  541|-> 		if (fflush(f) != 0) {
    #  542|   			rc = -errno;
    #  543|   			DBG(UPDATE, ul_debugobj(upd, "%s: fflush failed: %m", uq));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
    util-linux-2.42.start/libmount/src/utils.c: scope_hint: In function 'mnt_parse_offset'
    util-linux-2.42.start/libmount/src/utils.c:88:13: warning[-Wanalyzer-malloc-leak]: leak of 'p'
    #   86|   		return -errno;
    #   87|
    #   88|-> 	if (strtosize(p, res))
    #   89|   		rc = -EINVAL;
    #   90|   	free(p);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
    util-linux-2.42.start/libmount/src/utils.c: scope_hint: In function 'mnt_chdir_to_parent'
    util-linux-2.42.start/libmount/src/utils.c:190:24: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    util-linux-2.42.start/libmount/src/mountP.h:32: included_from: Included from here.
    util-linux-2.42.start/libmount/src/utils.c:26: included_from: Included from here.
    util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libmount/src/utils.c:183:9: note: in expansion of macro 'DBG'
    #  188|
    #  189|   	if (*(buf + 1) != '\0') {
    #  190|-> 		last = stripoff_last_component(buf);
    #  191|   		if (!last)
    #  192|   			goto err;

    Error: GCC_ANALYZER_WARNING (CWE-416): [#def435]
    util-linux-2.42.start/libmount/src/utils.c: scope_hint: In function 'mnt_free_filesystems.part.0'
    util-linux-2.42.start/libmount/src/utils.c:576:31: warning[-Wanalyzer-use-after-free]: use after 'reallocarray' of 'p'
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/strutils.h:19: included_from: Included from here.
    util-linux-2.42.start/libmount/src/utils.c:24: included_from: Included from here.
    #  574|   	if (!filesystems)
    #  575|   		return;
    #  576|-> 	for (p = filesystems; *p; p++)
    #  577|   		free(*p);
    #  578|   	free(filesystems);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
    util-linux-2.42.start/libmount/src/utils.c: scope_hint: In function 'mnt_get_username'
    util-linux-2.42.start/libmount/src/utils.c:695:14: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    #  693|   		return NULL;
    #  694|
    #  695|-> 	if (!getpwuid_r(uid, &pwd, buf, UL_GETPW_BUFSIZ, &res) && res)
    #  696|   		username = strdup(pwd.pw_name);
    #  697|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
    util-linux-2.42.start/libmount/src/utils.c: scope_hint: In function 'mnt_get_uid'
    util-linux-2.42.start/libmount/src/utils.c:716:14: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    #  714|   		return -ENOMEM;
    #  715|
    #  716|-> 	if (!getpwnam_r(username, &pwd, buf, UL_GETPW_BUFSIZ, &pw) && pw) {
    #  717|   		*uid = pw->pw_uid;
    #  718|   		rc = 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
    util-linux-2.42.start/libmount/src/utils.c:716:14: warning[-Wanalyzer-malloc-leak]: leak of 'user_tofree'
    #  714|   		return -ENOMEM;
    #  715|
    #  716|-> 	if (!getpwnam_r(username, &pwd, buf, UL_GETPW_BUFSIZ, &pw) && pw) {
    #  717|   		*uid = pw->pw_uid;
    #  718|   		rc = 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
    util-linux-2.42.start/libmount/src/utils.c: scope_hint: In function 'mnt_get_gid'
    util-linux-2.42.start/libmount/src/utils.c:745:14: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    #  743|   		return -ENOMEM;
    #  744|
    #  745|-> 	if (!getgrnam_r(groupname, &grp, buf, UL_GETPW_BUFSIZ, &gr) && gr) {
    #  746|   		*gid = gr->gr_gid;
    #  747|   		rc = 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
    util-linux-2.42.start/libmount/src/utils.c:745:14: warning[-Wanalyzer-malloc-leak]: leak of 'group_tofree'
    #  743|   		return -ENOMEM;
    #  744|
    #  745|-> 	if (!getgrnam_r(groupname, &grp, buf, UL_GETPW_BUFSIZ, &gr) && gr) {
    #  746|   		*gid = gr->gr_gid;
    #  747|   		rc = 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
    util-linux-2.42.start/libmount/src/utils.c: scope_hint: In function 'parse_uid_numeric'
    util-linux-2.42.start/libmount/src/utils.c:768:14: warning[-Wanalyzer-malloc-leak]: leak of 'user_tofree'
    #  766|   	assert(uid);
    #  767|
    #  768|-> 	rc = ul_strtou64(value, &num, 10);
    #  769|   	if (rc != 0)
    #  770|   		goto fail;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
    util-linux-2.42.start/libmount/src/utils.c: scope_hint: In function 'parse_gid_numeric'
    util-linux-2.42.start/libmount/src/utils.c:816:14: warning[-Wanalyzer-malloc-leak]: leak of 'group_tofree'
    #  814|   	assert(gid);
    #  815|
    #  816|-> 	rc = ul_strtou64(value, &num, 10);
    #  817|   	if (rc != 0)
    #  818|   		goto fail;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
    util-linux-2.42.start/libmount/src/utils.c: scope_hint: In function 'mnt_has_regular_utab'
    util-linux-2.42.start/libmount/src/utils.c:1020:17: warning[-Wanalyzer-malloc-leak]: leak of 'dirname'
    # 1018|   			goto done;
    # 1019|
    # 1020|-> 		stripoff_last_component(dirname);	/* remove filename */
    # 1021|
    # 1022|   		rc = mkdir(dirname, S_IWUSR|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
    util-linux-2.42.start/libmount/src/utils.c: scope_hint: In function 'mnt_get_mountpoint'
    util-linux-2.42.start/libmount/src/utils.c:1160:27: warning[-Wanalyzer-malloc-leak]: leak of 'mnt'
    util-linux-2.42.start/include/strutils.h:15: included_from: Included from here.
    # 1158|
    # 1159|   	do {
    # 1160|-> 		char *p = stripoff_last_component(mnt);
    # 1161|
    # 1162|   		if (!p)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
    util-linux-2.42.start/libsmartcols/src/column.c:108:13: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/column.c:43:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/column.c:102:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libsmartcols/src/column.c:535:16: note: in expansion of macro 'strdup_to_struct_member'
    util-linux-2.42.start/libsmartcols/src/column.c:535:16: note: in expansion of macro 'strdup_to_struct_member'
    #  106|   	if (scols_column_set_uri(ret, cl->uri))
    #  107|   		goto err;
    #  108|-> 	if (scols_cell_copy_content(&ret->header, &cl->header))
    #  109|   		goto err;
    #  110|   	if (scols_column_refer_annotation(ret, cl->annotation))

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
    util-linux-2.42.start/libsmartcols/src/column.c: scope_hint: In function 'scols_column_set_name'
    util-linux-2.42.start/libsmartcols/src/column.c:308:16: warning[-Wanalyzer-malloc-leak]: leak of 'x'
    #  306|   	cl->shellvar = NULL;
    #  307|
    #  308|-> 	return scols_cell_set_data(hr, name);
    #  309|   }
    #  310|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
    util-linux-2.42.start/libsmartcols/src/column.c: scope_hint: In function 'scols_column_set_headercolor'
    util-linux-2.42.start/libsmartcols/src/column.c:373:16: warning[-Wanalyzer-malloc-leak]: leak of 'x'
    #  371|   		return -EINVAL;
    #  372|
    #  373|-> 	return scols_cell_set_color(hdr, color);
    #  374|   }
    #  375|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
    util-linux-2.42.start/libsmartcols/src/column.c: scope_hint: In function 'scols_column_set_color'
    util-linux-2.42.start/libsmartcols/src/column.c:487:23: warning[-Wanalyzer-malloc-leak]: leak of 'x'
    #  485|   int scols_column_set_color(struct libscols_column *cl, const char *color)
    #  486|   {
    #  487|-> 	if (color && !color_is_sequence(color)) {
    #  488|   		char *seq = color_get_sequence(color);
    #  489|   		if (!seq)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
    util-linux-2.42.start/libsmartcols/src/column.c: scope_hint: In function 'scols_column_set_color.part.0'
    util-linux-2.42.start/libsmartcols/src/column.c:488:29: warning[-Wanalyzer-malloc-leak]: leak of 'x'
    #  486|   {
    #  487|   	if (color && !color_is_sequence(color)) {
    #  488|-> 		char *seq = color_get_sequence(color);
    #  489|   		if (!seq)
    #  490|   			return -EINVAL;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:444:15: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1291:9: note: in expansion of macro 'YYSTACK_RELOCATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1358:17: note: in expansion of macro 'YYTRANSLATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:98:40: note: in definition of macro 'YY_CAST'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:382:25: note: in expansion of macro 'YYMALLOC'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1288:20: note: in expansion of macro 'YYSTACK_ALLOC'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:441:9: note: in expansion of macro 'YYCOPY'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1291:9: note: in expansion of macro 'YYSTACK_RELOCATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1291:9: note: in expansion of macro 'YYSTACK_RELOCATE'
    #  442|           Stack = &yyptr->Stack_alloc;                                    \
    #  443|           yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
    #  444|->         yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
    #  445|         }                                                                 \
    #  446|       while (0)

    Error: GCC_ANALYZER_WARNING (CWE-457): [#def451]
    util-linux-2.42.start/libsmartcols/src/filter-parser.c: scope_hint: In function 'yyparse'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:456:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyss'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:441:9: note: in expansion of macro 'YYCOPY'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1291:9: note: in expansion of macro 'YYSTACK_RELOCATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:441:9: note: in expansion of macro 'YYCOPY'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1291:9: note: in expansion of macro 'YYSTACK_RELOCATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:441:9: note: in expansion of macro 'YYCOPY'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1291:9: note: in expansion of macro 'YYSTACK_RELOCATE'
    #  454|   #  if defined __GNUC__ && 1 < __GNUC__
    #  455|   #   define YYCOPY(Dst, Src, Count) \
    #  456|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
    #  457|   #  else
    #  458|   #   define YYCOPY(Dst, Src, Count)              \

    Error: GCC_ANALYZER_WARNING (CWE-457): [#def452]
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:81:76: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyvsp[1152921504606846975].param'
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1358:17: note: in expansion of macro 'YYTRANSLATE'
    #   79|   expr:
    #   80|   	param			{ $$ = $1; }
    #   81|-> 	| '(' expr ')'		{ $$ = $2; }
    #   82|   	| expr T_AND expr	{ $$ = filter_new_expr(fltr, F_EXPR_AND, $1, $3); }
    #   83|   	| expr T_OR expr	{ $$ = filter_new_expr(fltr, F_EXPR_OR, $1, $3); }

    Error: GCC_ANALYZER_WARNING (CWE-127): [#def453]
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:82:64: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1358:17: note: in expansion of macro 'YYTRANSLATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:82:64: note: valid subscripts for 'yyvsa' are '[0]' to '[199]'
    #   80|   	param			{ $$ = $1; }
    #   81|   	| '(' expr ')'		{ $$ = $2; }
    #   82|-> 	| expr T_AND expr	{ $$ = filter_new_expr(fltr, F_EXPR_AND, $1, $3); }
    #   83|   	| expr T_OR expr	{ $$ = filter_new_expr(fltr, F_EXPR_OR, $1, $3); }
    #   84|   	| T_NEG expr		{ $$ = filter_new_expr(fltr, F_EXPR_NEG, NULL, $2); }

    Error: GCC_ANALYZER_WARNING (CWE-127): [#def454]
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:83:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1358:17: note: in expansion of macro 'YYTRANSLATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:83:65: note: valid subscripts for 'yyvsa' are '[0]' to '[199]'
    #   81|   	| '(' expr ')'		{ $$ = $2; }
    #   82|   	| expr T_AND expr	{ $$ = filter_new_expr(fltr, F_EXPR_AND, $1, $3); }
    #   83|-> 	| expr T_OR expr	{ $$ = filter_new_expr(fltr, F_EXPR_OR, $1, $3); }
    #   84|   	| T_NEG expr		{ $$ = filter_new_expr(fltr, F_EXPR_NEG, NULL, $2); }
    #   85|   	| expr T_EQ expr	{ $$ = filter_new_expr(fltr, F_EXPR_EQ, $1, $3); }

    Error: GCC_ANALYZER_WARNING (CWE-127): [#def455]
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:85:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1358:17: note: in expansion of macro 'YYTRANSLATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:85:65: note: valid subscripts for 'yyvsa' are '[0]' to '[199]'
    #   83|   	| expr T_OR expr	{ $$ = filter_new_expr(fltr, F_EXPR_OR, $1, $3); }
    #   84|   	| T_NEG expr		{ $$ = filter_new_expr(fltr, F_EXPR_NEG, NULL, $2); }
    #   85|-> 	| expr T_EQ expr	{ $$ = filter_new_expr(fltr, F_EXPR_EQ, $1, $3); }
    #   86|   	| expr T_NE expr	{ $$ = filter_new_expr(fltr, F_EXPR_NE, $1, $3); }
    #   87|   	| expr T_LE expr	{ $$ = filter_new_expr(fltr, F_EXPR_LE, $1, $3); }

    Error: GCC_ANALYZER_WARNING (CWE-127): [#def456]
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:86:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1358:17: note: in expansion of macro 'YYTRANSLATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:86:65: note: valid subscripts for 'yyvsa' are '[0]' to '[199]'
    #   84|   	| T_NEG expr		{ $$ = filter_new_expr(fltr, F_EXPR_NEG, NULL, $2); }
    #   85|   	| expr T_EQ expr	{ $$ = filter_new_expr(fltr, F_EXPR_EQ, $1, $3); }
    #   86|-> 	| expr T_NE expr	{ $$ = filter_new_expr(fltr, F_EXPR_NE, $1, $3); }
    #   87|   	| expr T_LE expr	{ $$ = filter_new_expr(fltr, F_EXPR_LE, $1, $3); }
    #   88|   	| expr T_LT expr	{ $$ = filter_new_expr(fltr, F_EXPR_LT, $1, $3); }

    Error: GCC_ANALYZER_WARNING (CWE-127): [#def457]
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:87:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1358:17: note: in expansion of macro 'YYTRANSLATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:87:65: note: valid subscripts for 'yyvsa' are '[0]' to '[199]'
    #   85|   	| expr T_EQ expr	{ $$ = filter_new_expr(fltr, F_EXPR_EQ, $1, $3); }
    #   86|   	| expr T_NE expr	{ $$ = filter_new_expr(fltr, F_EXPR_NE, $1, $3); }
    #   87|-> 	| expr T_LE expr	{ $$ = filter_new_expr(fltr, F_EXPR_LE, $1, $3); }
    #   88|   	| expr T_LT expr	{ $$ = filter_new_expr(fltr, F_EXPR_LT, $1, $3); }
    #   89|   	| expr T_GE expr	{ $$ = filter_new_expr(fltr, F_EXPR_GE, $1, $3); }

    Error: GCC_ANALYZER_WARNING (CWE-127): [#def458]
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:88:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1358:17: note: in expansion of macro 'YYTRANSLATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:88:65: note: valid subscripts for 'yyvsa' are '[0]' to '[199]'
    #   86|   	| expr T_NE expr	{ $$ = filter_new_expr(fltr, F_EXPR_NE, $1, $3); }
    #   87|   	| expr T_LE expr	{ $$ = filter_new_expr(fltr, F_EXPR_LE, $1, $3); }
    #   88|-> 	| expr T_LT expr	{ $$ = filter_new_expr(fltr, F_EXPR_LT, $1, $3); }
    #   89|   	| expr T_GE expr	{ $$ = filter_new_expr(fltr, F_EXPR_GE, $1, $3); }
    #   90|   	| expr T_GT expr	{ $$ = filter_new_expr(fltr, F_EXPR_GT, $1, $3); }

    Error: GCC_ANALYZER_WARNING (CWE-127): [#def459]
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:89:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1358:17: note: in expansion of macro 'YYTRANSLATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:89:65: note: valid subscripts for 'yyvsa' are '[0]' to '[199]'
    #   87|   	| expr T_LE expr	{ $$ = filter_new_expr(fltr, F_EXPR_LE, $1, $3); }
    #   88|   	| expr T_LT expr	{ $$ = filter_new_expr(fltr, F_EXPR_LT, $1, $3); }
    #   89|-> 	| expr T_GE expr	{ $$ = filter_new_expr(fltr, F_EXPR_GE, $1, $3); }
    #   90|   	| expr T_GT expr	{ $$ = filter_new_expr(fltr, F_EXPR_GT, $1, $3); }
    #   91|

    Error: GCC_ANALYZER_WARNING (CWE-127): [#def460]
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:90:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1358:17: note: in expansion of macro 'YYTRANSLATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:90:65: note: valid subscripts for 'yyvsa' are '[0]' to '[199]'
    #   88|   	| expr T_LT expr	{ $$ = filter_new_expr(fltr, F_EXPR_LT, $1, $3); }
    #   89|   	| expr T_GE expr	{ $$ = filter_new_expr(fltr, F_EXPR_GE, $1, $3); }
    #   90|-> 	| expr T_GT expr	{ $$ = filter_new_expr(fltr, F_EXPR_GT, $1, $3); }
    #   91|
    #   92|   	| expr T_REG expr	{

    Error: GCC_ANALYZER_WARNING (CWE-127): [#def461]
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:95:33: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1358:17: note: in expansion of macro 'YYTRANSLATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:95:33: note: valid subscripts for 'yyvsa' are '[0]' to '[199]'
    #   93|   		if (filter_compile_param(fltr, (struct filter_param *) $3) != 0)
    #   94|   			YYERROR;
    #   95|-> 		$$ = filter_new_expr(fltr, F_EXPR_REG, $1, $3);
    #   96|   	}
    #   97|

    Error: GCC_ANALYZER_WARNING (CWE-127): [#def462]
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:101:33: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
    util-linux-2.42.start/libsmartcols/src/filter-parser.c:1358:17: note: in expansion of macro 'YYTRANSLATE'
    util-linux-2.42.start/libsmartcols/src/filter-parser.y:101:33: note: valid subscripts for 'yyvsa' are '[0]' to '[199]'
    #   99|   		if (filter_compile_param(fltr, (struct filter_param *) $3) != 0)
    #  100|   			YYERROR;
    #  101|-> 		$$ = filter_new_expr(fltr, F_EXPR_NREG, $1, $3);
    #  102|   	}
    #  103|   ;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
    util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_create_buffer'
    util-linux-2.42.start/libsmartcols/src/filter-scanner.c:1483:70: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(64)'
    util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_create_buffer'
    # 1481|   	/* yy_ch_buf has to be 2 characters longer than the size given because
    # 1482|   	 * we need to put in 2 end-of-buffer characters.
    # 1483|-> 	 */
    # 1484|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
    # 1485|   	if ( ! b->yy_ch_buf )

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
    util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_create_buffer'
    util-linux-2.42.start/libsmartcols/src/filter-scanner.c:1483:70: warning[-Wanalyzer-malloc-leak]: leak of 'yyalloc(64, yyscanner)'
    # 1481|   	/* yy_ch_buf has to be 2 characters longer than the size given because
    # 1482|   	 * we need to put in 2 end-of-buffer characters.
    # 1483|-> 	 */
    # 1484|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
    # 1485|   	if ( ! b->yy_ch_buf )

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def465]
    util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_init_buffer'
    util-linux-2.42.start/libsmartcols/src/filter-scanner.c:1526:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'b'
    # 1524|
    # 1525|   	yy_flush_buffer( b , yyscanner);
    # 1526|->
    # 1527|   	b->yy_input_file = file;
    # 1528|   	b->yy_fill_buffer = 1;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def466]
    util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_scan_buffer'
    util-linux-2.42.start/libsmartcols/src/filter-scanner.c:1744:38: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(n)'
    util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_scan_buffer'
    # 1742|   	for ( i = 0; i < _yybytes_len; ++i )
    # 1743|   		buf[i] = yybytes[i];
    # 1744|->
    # 1745|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
    # 1746|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def467]
    util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_scan_buffer'
    util-linux-2.42.start/libsmartcols/src/filter-scanner.c:1744:38: warning[-Wanalyzer-malloc-leak]: leak of 'yyalloc(n,  yyscanner)'
    # 1742|   	for ( i = 0; i < _yybytes_len; ++i )
    # 1743|   		buf[i] = yybytes[i];
    # 1744|->
    # 1745|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
    # 1746|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
    util-linux-2.42.start/libsmartcols/src/filter.c:198:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/filter.c:45:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libsmartcols/src/filter.c: scope_hint: In function 'scols_filter_parse_string.part.0'
    util-linux-2.42.start/libsmartcols/src/filter.c: scope_hint: In function 'scols_filter_parse_string.part.0'
    #  196|   		return -errno;
    #  197|
    #  198|-> 	yylex_init(&sc);
    #  199|   	yylex_init_extra(fltr, &sc);
    #  200|   	yyset_in(fltr->src, sc);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
    util-linux-2.42.start/libsmartcols/src/filter.c: scope_hint: In function 'scols_filter_parse_string.part.0'
    util-linux-2.42.start/libsmartcols/src/filter.c:198:9: warning[-Wanalyzer-malloc-leak]: leak of 'fltr'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:19: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/filter.c:23: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/filter.c:45:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libsmartcols/src/filter.c: scope_hint: In function 'scols_filter_parse_string.part.0'
    util-linux-2.42.start/libsmartcols/src/filter.c: scope_hint: In function 'scols_filter_parse_string.part.0'
    #  196|   		return -errno;
    #  197|
    #  198|-> 	yylex_init(&sc);
    #  199|   	yylex_init_extra(fltr, &sc);
    #  200|   	yyset_in(fltr->src, sc);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
    util-linux-2.42.start/libsmartcols/src/filter.c:199:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/filter.c:45:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libsmartcols/src/filter.c: scope_hint: In function 'scols_filter_parse_string.part.0'
    util-linux-2.42.start/libsmartcols/src/filter.c: scope_hint: In function 'scols_filter_parse_string.part.0'
    #  197|
    #  198|   	yylex_init(&sc);
    #  199|-> 	yylex_init_extra(fltr, &sc);
    #  200|   	yyset_in(fltr->src, sc);
    #  201|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
    util-linux-2.42.start/libsmartcols/src/filter.c:199:9: warning[-Wanalyzer-malloc-leak]: leak of 'fltr'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/filter.c:45:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libsmartcols/src/filter.c: scope_hint: In function 'scols_filter_parse_string.part.0'
    util-linux-2.42.start/libsmartcols/src/filter.c: scope_hint: In function 'scols_filter_parse_string.part.0'
    #  197|
    #  198|   	yylex_init(&sc);
    #  199|-> 	yylex_init_extra(fltr, &sc);
    #  200|   	yyset_in(fltr->src, sc);
    #  201|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
    util-linux-2.42.start/libsmartcols/src/line.c:673:21: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/line.c:45:9: note: in expansion of macro 'DBG'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:16: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/line.c:375:16: note: in expansion of macro 'strdup_to_struct_member'
    util-linux-2.42.start/libsmartcols/src/line.c:375:16: note: in expansion of macro 'strdup_to_struct_member'
    util-linux-2.42.start/libsmartcols/src/line.c:375:16: note: in expansion of macro 'strdup_to_struct_member'
    #  671|
    #  672|   	for (i = 0; i < ret->ncells; ++i) {
    #  673|-> 		if (scols_cell_copy_content(&ret->cells[i], &ln->cells[i]))
    #  674|   			goto err;
    #  675|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
    util-linux-2.42.start/libsmartcols/src/print-api.c: scope_hint: In function 'scols_table_print_range_to_string'
    util-linux-2.42.start/libsmartcols/src/print-api.c:82:22: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:19: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/print-api.c:1: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/print-api.c:75:9: note: in expansion of macro 'DBG'
    #   80|   		return -ENOMEM;
    #   81|
    #   82|-> 	old_stream = scols_table_get_stream(tb);
    #   83|   	scols_table_set_stream(tb, stream);
    #   84|   	rc = scols_table_print_range(tb, start, end);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
    util-linux-2.42.start/libsmartcols/src/print-api.c:83:9: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/print-api.c:75:9: note: in expansion of macro 'DBG'
    #   81|
    #   82|   	old_stream = scols_table_get_stream(tb);
    #   83|-> 	scols_table_set_stream(tb, stream);
    #   84|   	rc = scols_table_print_range(tb, start, end);
    #   85|   	fclose(stream);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
    util-linux-2.42.start/libsmartcols/src/print-api.c: scope_hint: In function 'scols_print_table_to_string'
    util-linux-2.42.start/libsmartcols/src/print-api.c:205:22: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/print-api.c:198:9: note: in expansion of macro 'DBG'
    #  203|   		return -ENOMEM;
    #  204|
    #  205|-> 	old_stream = scols_table_get_stream(tb);
    #  206|   	scols_table_set_stream(tb, stream);
    #  207|   	rc = do_print_table(tb, NULL);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
    util-linux-2.42.start/libsmartcols/src/print-api.c:206:9: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/print-api.c:198:9: note: in expansion of macro 'DBG'
    #  204|
    #  205|   	old_stream = scols_table_get_stream(tb);
    #  206|-> 	scols_table_set_stream(tb, stream);
    #  207|   	rc = do_print_table(tb, NULL);
    #  208|   	fclose(stream);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
    util-linux-2.42.start/libsmartcols/src/print.c: scope_hint: In function '__scols_print_title'
    util-linux-2.42.start/libsmartcols/src/print.c:978:22: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:14: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/print.c:26: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:19: included_from: Included from here.
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/print.c:956:9: note: in expansion of macro 'DBG'
    #  976|   		}
    #  977|
    #  978|-> 		if (!mbs_safe_encode_to_buffer(tb->title.data, &len, buf, bufsz, NULL) ||
    #  979|   		    !len || len == (size_t) -1) {
    #  980|   			rc = -EINVAL;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def478]
    util-linux-2.42.start/libsmartcols/src/print.c:995:17: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/print.c:956:9: note: in expansion of macro 'DBG'
    #  993|   	}
    #  994|
    #  995|-> 	switch (scols_cell_get_alignment(&tb->title)) {
    #  996|   	case SCOLS_CELL_FL_RIGHT:
    #  997|   		align = MBS_ALIGN_RIGHT;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
    util-linux-2.42.start/libsmartcols/src/print.c:995:17: warning[-Wanalyzer-malloc-leak]: leak of 'title'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/print.c:956:9: note: in expansion of macro 'DBG'
    #  993|   	}
    #  994|
    #  995|-> 	switch (scols_cell_get_alignment(&tb->title)) {
    #  996|   	case SCOLS_CELL_FL_RIGHT:
    #  997|   		align = MBS_ALIGN_RIGHT;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
    util-linux-2.42.start/libsmartcols/src/print.c:1010:25: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/print.c:956:9: note: in expansion of macro 'DBG'
    # 1008|   		 */
    # 1009|   		if (len < width
    # 1010|-> 		    && !scols_table_is_maxout(tb)
    # 1011|   		    && isblank(*titlepadding_symbol(tb)))
    # 1012|   			width = len;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
    util-linux-2.42.start/libsmartcols/src/print.c:1010:25: warning[-Wanalyzer-malloc-leak]: leak of 'title'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/print.c:956:9: note: in expansion of macro 'DBG'
    # 1008|   		 */
    # 1009|   		if (len < width
    # 1010|-> 		    && !scols_table_is_maxout(tb)
    # 1011|   		    && isblank(*titlepadding_symbol(tb)))
    # 1012|   			width = len;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def482]
    util-linux-2.42.start/libsmartcols/src/print.c:1018:14: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/print.c:956:9: note: in expansion of macro 'DBG'
    # 1016|
    # 1017|   	/* copy from buf to title and align to width with title_padding */
    # 1018|-> 	rc = mbsalign_with_padding(buf, title, titlesz,
    # 1019|   			&width, align,
    # 1020|   			0, (int) *titlepadding_symbol(tb));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def483]
    util-linux-2.42.start/libsmartcols/src/print.c:1018:14: warning[-Wanalyzer-malloc-leak]: leak of 'title'
    util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
    util-linux-2.42.start/libsmartcols/src/print.c:956:9: note: in expansion of macro 'DBG'
    # 1016|
    # 1017|   	/* copy from buf to title and align to width with title_padding */
    # 1018|-> 	rc = mbsalign_with_padding(buf, title, titlesz,
    # 1019|   			&width, align,
    # 1020|   			0, (int) *titlepadding_symbol(tb));

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def484]
    util-linux-2.42.start/libuuid/src/gen_uuid.c: scope_hint: In function 'get_uuid_via_daemon'
    util-linux-2.42.start/libuuid/src/gen_uuid.c:493:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor 's'
    util-linux-2.42.start/libuuid/src/gen_uuid.c:93: included_from: Included from here.
    util-linux-2.42.start/include/all-io.h:20: included_from: Included from here.
    util-linux-2.42.start/libuuid/src/gen_uuid.c:89: included_from: Included from here.
    util-linux-2.42.start/include/c.h:208:32: note: in definition of macro 'min'
    #  491|   	xstrncpy(srv_addr.sun_path, UUIDD_SOCKET_PATH, sizeof(srv_addr.sun_path));
    #  492|
    #  493|-> 	if (connect(s, (const struct sockaddr *) &srv_addr,
    #  494|   		    sizeof(struct sockaddr_un)) < 0)
    #  495|   		goto fail;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def485]
    util-linux-2.42.start/login-utils/islocal.c: scope_hint: In function ‘is_local_in_file’
    util-linux-2.42.start/login-utils/islocal.c:42:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
    #   40|   	match = 0u;
    #   41|   	skip = 0;
    #   42|-> 	while ((chin = fgetc(f)) != EOF) {
    #   43|   		if (skip) {
    #   44|   			/* Looking for the start of the next line. */

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def486]
    util-linux-2.42.start/login-utils/islocal.c:42:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
    #   40|   	match = 0u;
    #   41|   	skip = 0;
    #   42|-> 	while ((chin = fgetc(f)) != EOF) {
    #   43|   		if (skip) {
    #   44|   			/* Looking for the start of the next line. */

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def487]
    util-linux-2.42.start/login-utils/islocal.c:52:46: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
    #   50|   		} else {
    #   51|   			if (':' == chin) {
    #   52|-> 				if (0 == user[match]) {
    #   53|   					/* Success. */
    #   54|   					local = 1;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
    util-linux-2.42.start/login-utils/islocal.c:52:46: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
    #   50|   		} else {
    #   51|   			if (':' == chin) {
    #   52|-> 				if (0 == user[match]) {
    #   53|   					/* Success. */
    #   54|   					local = 1;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def489]
    util-linux-2.42.start/login-utils/last.c: scope_hint: In function ‘process_wtmp_file’
    util-linux-2.42.start/login-utils/last.c:195:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
    #  193|   	off_t o;
    #  194|
    #  195|-> 	if (quit == NULL && u != NULL) {
    #  196|   		/*
    #  197|   		 *	Normal read.

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
    util-linux-2.42.start/login-utils/last.c:195:18: warning[-Wanalyzer-malloc-leak]: leak of ‘*<unknown>’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/login-utils/last.c:45: included_from: Included from here.
    util-linux-2.42.start/login-utils/last.c:716:43: note: in expansion of macro ‘_’
    #  193|   	off_t o;
    #  194|
    #  195|-> 	if (quit == NULL && u != NULL) {
    #  196|   		/*
    #  197|   		 *	Normal read.

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
    util-linux-2.42.start/login-utils/last.c:195:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
    #  193|   	off_t o;
    #  194|
    #  195|-> 	if (quit == NULL && u != NULL) {
    #  196|   		/*
    #  197|   		 *	Normal read.

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
    util-linux-2.42.start/login-utils/last.c:207:17: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
    #  205|   		 */
    #  206|   		utsize = sizeof(struct utmpx);
    #  207|-> 		fseeko(fp, 0, SEEK_END);
    #  208|   		fpos = ftello(fp);
    #  209|   		if (fpos == 0)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def493]
    util-linux-2.42.start/login-utils/last.c:208:24: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
    #  206|   		utsize = sizeof(struct utmpx);
    #  207|   		fseeko(fp, 0, SEEK_END);
    #  208|-> 		fpos = ftello(fp);
    #  209|   		if (fpos == 0)
    #  210|   			return 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def494]
    util-linux-2.42.start/login-utils/last.c:212:21: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
    #  210|   			return 0;
    #  211|   		o = ((fpos - 1) / UCHUNKSIZE) * UCHUNKSIZE;
    #  212|-> 		if (fseeko(fp, o, SEEK_SET) < 0) {
    #  213|   			warn(_("seek on %s failed"), filename);
    #  214|   			return 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
    util-linux-2.42.start/login-utils/last.c:213:25: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
    util-linux-2.42.start/login-utils/last.c:213:30: note: in expansion of macro ‘_’
    #  211|   		o = ((fpos - 1) / UCHUNKSIZE) * UCHUNKSIZE;
    #  212|   		if (fseeko(fp, o, SEEK_SET) < 0) {
    #  213|-> 			warn(_("seek on %s failed"), filename);
    #  214|   			return 0;
    #  215|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def496]
    util-linux-2.42.start/login-utils/last.c:218:25: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
    util-linux-2.42.start/login-utils/last.c:218:30: note: in expansion of macro ‘_’
    #  216|   		bpos = (int)(fpos - o);
    #  217|   		if (fread(buf, bpos, 1, fp) != 1) {
    #  218|-> 			warn(_("cannot read %s"), filename);
    #  219|   			return 0;
    #  220|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def497]
    util-linux-2.42.start/login-utils/last.c:246:13: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
    util-linux-2.42.start/login-utils/last.c:213:30: note: in expansion of macro ‘_’
    #  244|   	 */
    #  245|   	memcpy(tmp + (-bpos), buf, utsize + bpos);
    #  246|-> 	if (fseeko(fp, fpos, SEEK_SET) < 0) {
    #  247|   		warn(_("seek on %s failed"), filename);
    #  248|   		return 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
    util-linux-2.42.start/login-utils/last.c:702:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*<unknown>’
    util-linux-2.42.start/login-utils/last.c:702:35: note: in expansion of macro ‘_’
    #  700|   	 */
    #  701|   	if ((fp = fopen(filename, "r")) == NULL)
    #  702|-> 		err(EXIT_FAILURE, _("cannot open %s"), filename);
    #  703|
    #  704|   	/*

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def499]
    util-linux-2.42.start/login-utils/last.c: scope_hint: In function ‘process_wtmp_file’
    util-linux-2.42.start/login-utils/last.c:702:17: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
    util-linux-2.42.start/login-utils/last.c:702:35: note: in expansion of macro ‘_’
    #  700|   	 */
    #  701|   	if ((fp = fopen(filename, "r")) == NULL)
    #  702|-> 		err(EXIT_FAILURE, _("cannot open %s"), filename);
    #  703|
    #  704|   	/*

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def500]
    util-linux-2.42.start/login-utils/last.c:716:25: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
    util-linux-2.42.start/login-utils/last.c:716:43: note: in expansion of macro ‘_’
    #  714|   	else {
    #  715|   		if (fstat(fileno(fp), &st) != 0)
    #  716|-> 			err(EXIT_FAILURE, _("stat of %s failed"), filename);
    #  717|   		begintime = st.st_ctime;
    #  718|   		quit = 1;

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def501]
    util-linux-2.42.start/login-utils/last.c: scope_hint: In function ‘main’
    util-linux-2.42.start/login-utils/last.c:1042:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘files’
    # 1040|   			if (!files)
    # 1041|   				files = xmalloc(sizeof(char *) * argc);
    # 1042|-> 			files[nfiles++] = xstrdup(optarg);
    # 1043|   			break;
    # 1044|   		case 'd':

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def502]
    util-linux-2.42.start/login-utils/last.c:1102:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    # 1100|
    # 1101|   	for (i = 0; i < nfiles; i++) {
    # 1102|-> 		get_boot_time(&ctl.boot_time);
    # 1103|   		process_wtmp_file(&ctl, files[i]);
    # 1104|   		free(files[i]);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
    util-linux-2.42.start/login-utils/last.c:1102:17: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
    # 1100|
    # 1101|   	for (i = 0; i < nfiles; i++) {
    # 1102|-> 		get_boot_time(&ctl.boot_time);
    # 1103|   		process_wtmp_file(&ctl, files[i]);
    # 1104|   		free(files[i]);

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def504]
    util-linux-2.42.start/login-utils/login.c: scope_hint: In function ‘process_title_init’
    util-linux-2.42.start/login-utils/login.c:241:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘environ’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/path.h:14: included_from: Included from here.
    util-linux-2.42.start/login-utils/login.c:49: included_from: Included from here.
    #  239|
    #  240|   	for (i = 0; envp[i] != NULL; i++)
    #  241|-> 		environ[i] = xstrdup(envp[i]);
    #  242|   	environ[i] = NULL;
    #  243|

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def505]
    util-linux-2.42.start/login-utils/login.c:242:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘environ’
    #  240|   	for (i = 0; envp[i] != NULL; i++)
    #  241|   		environ[i] = xstrdup(envp[i]);
    #  242|-> 	environ[i] = NULL;
    #  243|
    #  244|   	if (i > 0)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def506]
    util-linux-2.42.start/login-utils/login.c: scope_hint: In function ‘motddir’
    util-linux-2.42.start/login-utils/login.c:332:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dirname, 589824)’
    #  330|   		return 0;
    #  331|
    #  332|-> 	nfiles = scandirat(dd, ".", &namelist, motddir_filter, versionsort);
    #  333|   	if (nfiles <= 0)
    #  334|   		goto done;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
    util-linux-2.42.start/login-utils/login.c:36: included_from: Included from here.
    util-linux-2.42.start/login-utils/login.c:385:31: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(getlogindefs_str("MOTD_FILE", "/usr/share/misc/motd:/run/motd:/etc/motd"))’
    #  383|   			continue;
    #  384|   #ifdef MOTDDIR_SUPPORT
    #  385|-> 		if (S_ISDIR(st.st_mode))
    #  386|   			done += motddir(file);
    #  387|   #endif

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def508]
    util-linux-2.42.start/login-utils/login.c: scope_hint: In function ‘open_tty’
    util-linux-2.42.start/login-utils/login.c:453:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(tty, 2050)’
    #  451|
    #  452|   	if (!isatty(fd)) {
    #  453|-> 		close(fd);
    #  454|   		syslog(LOG_ERR, _("FATAL: %s is not a terminal"), tty);
    #  455|   		sleepexit(EXIT_FAILURE);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def509]
    util-linux-2.42.start/login-utils/login.c:458:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(tty, 2050)’
    #  456|   	}
    #  457|
    #  458|-> 	flags = fcntl(fd, F_GETFL);
    #  459|   	flags &= ~O_NONBLOCK;
    #  460|   	fcntl(fd, F_SETFL, flags);

    Error: GCC_ANALYZER_WARNING (CWE-1341): [#def510]
    util-linux-2.42.start/login-utils/login.c:463:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘i’
    #  461|
    #  462|   	for (i = 0; i < fd; i++)
    #  463|-> 		close(i);
    #  464|   	for (i = 0; i < 3; i++)
    #  465|   		if (fd != i)

    Error: GCC_ANALYZER_WARNING: [#def511]
    util-linux-2.42.start/login-utils/login.c:466:25: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘i’
    #  464|   	for (i = 0; i < 3; i++)
    #  465|   		if (fd != i)
    #  466|-> 			dup2(fd, i);
    #  467|   	if (fd >= 3)
    #  468|   		close(fd);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘make_time’
    util-linux-2.42.start/login-utils/lslogins.c:364:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘make_time’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘make_time’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    #  362|   	}
    #  363|   	case TIME_SHORT:
    #  364|-> 		rc = strtime_short(&time, &now, UL_SHORTTIME_THISYEAR_HHMM,
    #  365|   				buf, sizeof(buf));
    #  366|   		break;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
    util-linux-2.42.start/login-utils/lslogins.c:378:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘make_time’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘make_time’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c:378:37: note: in expansion of macro ‘_’
    #  376|
    #  377|   	if (rc)
    #  378|-> 		 errx(EXIT_FAILURE, _("failed to compose time string"));
    #  379|
    #  380|   	return xstrdup(buf);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def514]
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘build_sgroups_string’
    util-linux-2.42.start/login-utils/lslogins.c:415:45: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
    #  413|   			x = snprintf(p, len, "%u,", sgroups[n]);
    #  414|   		else {
    #  415|-> 			struct group *grp = getgrgid(sgroups[n]);
    #  416|   			if (!grp) {
    #  417|   				free(res);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘parse_utmpx.part.0’
    util-linux-2.42.start/login-utils/lslogins.c:522:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ary’
    #  520|   		struct utmpx *u;
    #  521|   		errno = 0;
    #  522|-> 		u = getutxent();
    #  523|   		if (!u) {
    #  524|   			if (errno)

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def516]
    util-linux-2.42.start/login-utils/lslogins.c:530:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ary’
    #  528|   		if (i == imax)
    #  529|   			ary = xreallocarray(ary, imax *= 2, sizeof(struct utmpx));
    #  530|-> 		ary[i] = *u;
    #  531|   	}
    #  532|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
    util-linux-2.42.start/login-utils/lslogins.c:538:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ary’
    #  536|   	return 0;
    #  537|   fail:
    #  538|-> 	endutxent();
    #  539|   	free(ary);
    #  540|   	if (errno) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def518]
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_lastlog2’
    util-linux-2.42.start/login-utils/lslogins.c:551:39: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  549|   static int get_lastlog2(struct lslogins_control *ctl, const char *user, void *dst, int what)
    #  550|   {
    #  551|-> 	struct ll2_context *context = ll2_new_context(ctl->lastlog2_path);
    #  552|
    #  553|   	switch (what) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
    util-linux-2.42.start/login-utils/lslogins.c:568:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  566|   		char *res_tty = NULL;
    #  567|
    #  568|-> 		if (ll2_read_entry(context, user, NULL, &res_tty, NULL, NULL, NULL) != 0) {
    #  569|   			ll2_unref_context(context);
    #  570|   			return -1;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
    util-linux-2.42.start/login-utils/lslogins.c:569:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  567|
    #  568|   		if (ll2_read_entry(context, user, NULL, &res_tty, NULL, NULL, NULL) != 0) {
    #  569|-> 			ll2_unref_context(context);
    #  570|   			return -1;
    #  571|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
    util-linux-2.42.start/login-utils/lslogins.c:581:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  579|   		char *res_host = NULL;
    #  580|
    #  581|-> 		if (ll2_read_entry(context, user, NULL, NULL, &res_host, NULL, NULL) != 0) {
    #  582|   			ll2_unref_context(context);
    #  583|   			return -1;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
    util-linux-2.42.start/login-utils/lslogins.c:582:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  580|
    #  581|   		if (ll2_read_entry(context, user, NULL, NULL, &res_host, NULL, NULL) != 0) {
    #  582|-> 			ll2_unref_context(context);
    #  583|   			return -1;
    #  584|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
    util-linux-2.42.start/login-utils/lslogins.c:594:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  592|   		abort();
    #  593|   	}
    #  594|-> 	ll2_unref_context(context);
    #  595|   	return 0;
    #  596|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_lastlog’
    util-linux-2.42.start/login-utils/lslogins.c:614:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  612|   #endif
    #  613|   	if (ctl->lastlogin_fd < 0 ||
    #  614|-> 	    pread(ctl->lastlogin_fd, (void *)&ll, sizeof(ll), uid * sizeof(ll)) != sizeof(ll))
    #  615|   		return;
    #  616|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_sgroups’
    util-linux-2.42.start/login-utils/lslogins.c:643:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_sgroups’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_sgroups’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    #  641|
    #  642|   	/* first let's get a supp. group count */
    #  643|-> 	getgrouplist(pwd->pw_name, pwd->pw_gid, *list, &ngroups);
    #  644|   	if (!ngroups)
    #  645|   		return -1;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
    util-linux-2.42.start/login-utils/lslogins.c:650:19: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  648|
    #  649|   	/* now for the actual list of GIDs */
    #  650|-> 	if (-1 == getgrouplist(pwd->pw_name, pwd->pw_gid, *list, &ngroups))
    #  651|   		return -1;
    #  652|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_nprocs’
    util-linux-2.42.start/login-utils/lslogins.c:675:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_nprocs’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_nprocs’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    #  673|   	int nprocs = 0;
    #  674|
    #  675|-> 	dir = opendir(_PATH_PROC);
    #  676|   	if (!dir)
    #  677|   		return 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_user_info’
    util-linux-2.42.start/login-utils/lslogins.c:847:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  845|
    #  846|   	while (n < ncolumns) {
    #  847|-> 		switch (columns[n++]) {
    #  848|   		case COL_USER:
    #  849|   			if (!user->login)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
    util-linux-2.42.start/login-utils/lslogins.c:930:40: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_user_info’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_user_info’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    #  928|   			break;
    #  929|   		case COL_HUSH_STATUS:
    #  930|-> 			user->hushed = get_hushlogin_status(pwd, /* override_home= */ NULL, 0);
    #  931|   			if (user->hushed == -1)
    #  932|   				user->hushed = STATUS_UNKNOWN;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_ulist’
    util-linux-2.42.start/login-utils/lslogins.c:1075:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_ulist’
    util-linux-2.42.start/login-utils/lslogins.c:1699:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_ulist’
    util-linux-2.42.start/login-utils/lslogins.c:1700:9: note: in expansion of macro ‘add_column’
    # 1073|
    # 1074|   	if (logins) {
    # 1075|-> 		while ((u = strtok(logins, ","))) {
    # 1076|   			logins = NULL;
    # 1077|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_journal_data’
    util-linux-2.42.start/login-utils/lslogins.c:1398:16: warning[-Wanalyzer-malloc-leak]: leak of ‘get_journal_data(j, "SYSLOG_IDENTIFIER")’
    # 1396|
    # 1397|   	if (sd_journal_get_data(j, name, (const void **) &data, &len) < 0
    # 1398|-> 	    || !data || !len)
    # 1399|   		return NULL;
    # 1400|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
    util-linux-2.42.start/login-utils/lslogins.c:1398:16: warning[-Wanalyzer-malloc-leak]: leak of ‘get_journal_data(j, "_PID")’
    # 1396|
    # 1397|   	if (sd_journal_get_data(j, name, (const void **) &data, &len) < 0
    # 1398|-> 	    || !data || !len)
    # 1399|   		return NULL;
    # 1400|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def533]
    util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘get_journal_data’
    util-linux-2.42.start/login-utils/lslogins.c:1435:22: warning[-Wanalyzer-malloc-leak]: leak of ‘make_time(time_mode,  t)’
    # 1433|   		ts = make_time(time_mode, t);
    # 1434|
    # 1435|-> 		id = get_journal_data(j, "SYSLOG_IDENTIFIER");
    # 1436|   		pid = get_journal_data(j, "_PID");
    # 1437|   		msg = get_journal_data(j, "MESSAGE");

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
    util-linux-2.42.start/login-utils/setpwnam.c: scope_hint: In function ‘setpwnam’
    util-linux-2.42.start/login-utils/setpwnam.c:102:29: warning[-Wanalyzer-malloc-leak]: leak of ‘xfmkstemp(&tmpname, "/etc",  prefix)’
    util-linux-2.42.start/login-utils/setpwnam.c:62: included_from: Included from here.
    #  100|   		goto fail;
    #  101|
    #  102|-> 	namelen = strlen(pwd->pw_name);
    #  103|
    #  104|   	/* parse the passwd file */

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def535]
    util-linux-2.42.start/login-utils/su-common.c: scope_hint: In function ‘run_shell’
    util-linux-2.42.start/login-utils/su-common.c:803:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(strlen(shell_basename) + 2)’
    #  801|   		shell_basename = basename(tmp);
    #  802|   		arg0 = xmalloc(strlen(shell_basename) + 2);
    #  803|-> 		arg0[0] = '-';
    #  804|   		strcpy(arg0 + 1, shell_basename);
    #  805|   		args[0] = arg0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
    util-linux-2.42.start/login-utils/sulogin-consoles.c: scope_hint: In function ‘detect_consoles_from_tiocgdev’
    util-linux-2.42.start/login-utils/sulogin-consoles.c:70:29: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/dev")’
    util-linux-2.42.start/login-utils/sulogin-consoles.c:243:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/login-utils/sulogin-consoles.c:243:9: note: in expansion of macro ‘DBG’
    #   68|   static int consoles_debug;
    #   69|   #define DBG(x)	do { \
    #   70|-> 			if (consoles_debug) { \
    #   71|   				fputs("consoles debug: ", stderr); \
    #   72|   				x;			     \

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def537]
    util-linux-2.42.start/login-utils/sulogin-consoles.c: scope_hint: In function ‘detect_consoles_from_proc’
    util-linux-2.42.start/login-utils/sulogin-consoles.c:372:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/consoles", "re")’
    #  370|   		goto done;
    #  371|   	}
    #  372|-> 	dir = opendir("/dev");
    #  373|   	if (!dir)
    #  374|   		goto done;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def538]
    util-linux-2.42.start/login-utils/sulogin-consoles.c:372:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/consoles", "re")’
    #  370|   		goto done;
    #  371|   	}
    #  372|-> 	dir = opendir("/dev");
    #  373|   	if (!dir)
    #  374|   		goto done;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def539]
    util-linux-2.42.start/login-utils/sulogin-consoles.c: scope_hint: In function ‘detect_consoles_from_cmdline’
    util-linux-2.42.start/login-utils/sulogin-consoles.c:495:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/dev")’
    util-linux-2.42.start/login-utils/sulogin-consoles.c: scope_hint: In function ‘detect_consoles_from_cmdline’
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/bits/libc-header-start.h:33: included_from: Included from here.
    /usr/include/limits.h:26: included_from: Included from here.
    /usr/lib/gcc/x86_64-redhat-linux/16/include/limits.h:210: included_from: Included from here.
    /usr/lib/gcc/x86_64-redhat-linux/16/include/syslimits.h:9: included_from: Included from here.
    /usr/lib/gcc/x86_64-redhat-linux/16/include/limits.h:34: included_from: Included from here.
    util-linux-2.42.start/login-utils/sulogin-consoles.c:24: included_from: Included from here.
    #  493|   		char *colon, *name;
    #  494|
    #  495|-> 		if (*token != 'c')
    #  496|   			continue;
    #  497|   		if (strncmp(token, "console=", 8) != 0)

    Error: GCC_ANALYZER_WARNING: [#def540]
    util-linux-2.42.start/login-utils/sulogin.c: scope_hint: In function ‘setup’
    util-linux-2.42.start/login-utils/sulogin.c:726:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
    #  724|   	}
    #  725|   notty:
    #  726|-> 	dup2(fd, STDIN_FILENO);
    #  727|   	dup2(fd, STDOUT_FILENO);
    #  728|   	dup2(fd, STDERR_FILENO);

    Error: GCC_ANALYZER_WARNING: [#def541]
    util-linux-2.42.start/login-utils/sulogin.c:727:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
    #  725|   notty:
    #  726|   	dup2(fd, STDIN_FILENO);
    #  727|-> 	dup2(fd, STDOUT_FILENO);
    #  728|   	dup2(fd, STDERR_FILENO);
    #  729|   	con->fd = STDIN_FILENO;

    Error: GCC_ANALYZER_WARNING: [#def542]
    util-linux-2.42.start/login-utils/sulogin.c:728:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
    #  726|   	dup2(fd, STDIN_FILENO);
    #  727|   	dup2(fd, STDOUT_FILENO);
    #  728|-> 	dup2(fd, STDERR_FILENO);
    #  729|   	con->fd = STDIN_FILENO;
    #  730|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def543]
    util-linux-2.42.start/login-utils/utmpdump.c: scope_hint: In function ‘main’
    util-linux-2.42.start/login-utils/utmpdump.c:390:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘out’
    util-linux-2.42.start/login-utils/utmpdump.c:390:43: note: in expansion of macro ‘_’
    #  388|   		in = fopen(filename, "r");
    #  389|   		if (!in)
    #  390|-> 			err(EXIT_FAILURE, _("cannot open %s"), filename);
    #  391|   	} else {
    #  392|   		if (follow)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def544]
    util-linux-2.42.start/login-utils/utmpdump.c:390:25: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
    util-linux-2.42.start/login-utils/utmpdump.c:390:43: note: in expansion of macro ‘_’
    #  388|   		in = fopen(filename, "r");
    #  389|   		if (!in)
    #  390|-> 			err(EXIT_FAILURE, _("cannot open %s"), filename);
    #  391|   	} else {
    #  392|   		if (follow)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def545]
    util-linux-2.42.start/login-utils/utmpdump.c:393:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘out’
    util-linux-2.42.start/login-utils/utmpdump.c:393:44: note: in expansion of macro ‘_’
    #  391|   	} else {
    #  392|   		if (follow)
    #  393|-> 			errx(EXIT_FAILURE, _("following standard input is unsupported"));
    #  394|   		filename = "/dev/stdin";
    #  395|   		in = stdin;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def546]
    util-linux-2.42.start/login-utils/utmpdump.c:393:25: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
    util-linux-2.42.start/login-utils/utmpdump.c:393:44: note: in expansion of macro ‘_’
    #  391|   	} else {
    #  392|   		if (follow)
    #  393|-> 			errx(EXIT_FAILURE, _("following standard input is unsupported"));
    #  394|   		filename = "/dev/stdin";
    #  395|   		in = stdin;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
    util-linux-2.42.start/lsfd-cmd/bdev.c: scope_hint: In function ‘bdev_fill_column’
    util-linux-2.42.start/lsfd-cmd/bdev.c:84:13: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
    #   82|   	if (!str)
    #   83|   		err(EXIT_FAILURE, _("failed to add output data"));
    #   84|-> 	if (scols_line_refer_data(ln, column_index, str))
    #   85|   		err(EXIT_FAILURE, _("failed to add output data"));
    #   86|   	return true;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def548]
    util-linux-2.42.start/lsfd-cmd/bdev.c: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/lsfd-cmd/bdev.c:118:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/partitions", "r")’
    #  116|   		if (sscanf(line, "%u %u %*u %s", &major, &minor, name) != 3)
    #  117|   			continue;
    #  118|-> 		partition = new_partition(makedev(major, minor), name);
    #  119|   		list_add_tail(&partition->partitions, partitions_list);
    #  120|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def549]
    util-linux-2.42.start/lsfd-cmd/bdev.c:118:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/partitions", "r")’
    #  116|   		if (sscanf(line, "%u %u %*u %s", &major, &minor, name) != 3)
    #  117|   			continue;
    #  118|-> 		partition = new_partition(makedev(major, minor), name);
    #  119|   		list_add_tail(&partition->partitions, partitions_list);
    #  120|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def550]
    util-linux-2.42.start/lsfd-cmd/cdev.c: scope_hint: In function ‘cdev_fill_column’
    util-linux-2.42.start/lsfd-cmd/cdev.c:118:13: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
    #  116|   	if (!str)
    #  117|   		err(EXIT_FAILURE, _("failed to add output data"));
    #  118|-> 	if (scols_line_refer_data(ln, column_index, str))
    #  119|   		err(EXIT_FAILURE, _("failed to add output data"));
    #  120|   	return true;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def551]
    util-linux-2.42.start/lsfd-cmd/cdev.c: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/lsfd-cmd/cdev.c:153:27: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/misc", "r")’
    #  151|   			continue;
    #  152|
    #  153|-> 		miscdev = new_miscdev(minor, name);
    #  154|   		list_add_tail(&miscdev->miscdevs, miscdevs_list);
    #  155|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
    util-linux-2.42.start/lsfd-cmd/cdev.c:153:27: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/misc", "r")’
    #  151|   			continue;
    #  152|
    #  153|-> 		miscdev = new_miscdev(minor, name);
    #  154|   		list_add_tail(&miscdev->miscdevs, miscdevs_list);
    #  155|   	}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def553]
    util-linux-2.42.start/lsfd-cmd/cdev.c: scope_hint: In function ‘xmalloc’
    util-linux-2.42.start/lsfd-cmd/cdev.c:216:53: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/tty/drivers", "r")’
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/sys/stat.h:25: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/lsfd.h:28: included_from: Included from here.
    #  214|   		   minor_range, minor_range + 1) != 3) {
    #  215|   		if (sscanf(p, " %lu %lu ", &major, minor_range) == 2)
    #  216|-> 			minor_range[1] = minor_range[0];
    #  217|   		else
    #  218|   			return NULL;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def554]
    util-linux-2.42.start/lsfd-cmd/cdev.c:216:53: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/tty/drivers", "r")’
    #  214|   		   minor_range, minor_range + 1) != 3) {
    #  215|   		if (sscanf(p, " %lu %lu ", &major, minor_range) == 2)
    #  216|-> 			minor_range[1] = minor_range[0];
    #  217|   		else
    #  218|   			return NULL;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def555]
    util-linux-2.42.start/lsfd-cmd/cdev.c: scope_hint: In function ‘xmalloc’
    util-linux-2.42.start/lsfd-cmd/cdev.c:221:61: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/tty/drivers", "r")’
    #  219|   	}
    #  220|
    #  221|-> 	return new_ttydrv(major, minor_range[0], minor_range[1], name);
    #  222|   }
    #  223|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def556]
    util-linux-2.42.start/lsfd-cmd/cdev.c:221:61: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/tty/drivers", "r")’
    #  219|   	}
    #  220|
    #  221|-> 	return new_ttydrv(major, minor_range[0], minor_range[1], name);
    #  222|   }
    #  223|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def557]
    util-linux-2.42.start/lsfd-cmd/cdev.c: scope_hint: In function ‘read_tty_drivers’
    util-linux-2.42.start/lsfd-cmd/cdev.c:221:61: warning[-Wanalyzer-malloc-leak]: leak of ‘read_ttydrv(&line)’
    #  219|   	}
    #  220|
    #  221|-> 	return new_ttydrv(major, minor_range[0], minor_range[1], name);
    #  222|   }
    #  223|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def558]
    util-linux-2.42.start/lsfd-cmd/fifo.c: scope_hint: In function ‘fifo_fill_column’
    util-linux-2.42.start/lsfd-cmd/fifo.c:88:13: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
    util-linux-2.42.start/lsfd-cmd/lsfd.h:41: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/fifo.c:22: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/debug.h:40: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/lsfd.h:35: included_from: Included from here.
    #   86|   	if (!str)
    #   87|   		err(EXIT_FAILURE, _("failed to add output data"));
    #   88|-> 	if (scols_line_refer_data(ln, column_index, str))
    #   89|   		err(EXIT_FAILURE, _("failed to add output data"));
    #   90|   	return true;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
    util-linux-2.42.start/lsfd-cmd/file.c: scope_hint: In function ‘abst_fill_column’
    util-linux-2.42.start/lsfd-cmd/file.c:218:13: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
    util-linux-2.42.start/lsfd-cmd/lsfd.h:41: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/file.c:47: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/strutils.h:19: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/file.c:43: included_from: Included from here.
    #  216|   	if (!str)
    #  217|   		err(EXIT_FAILURE, _("failed to add output data"));
    #  218|-> 	if (scols_line_refer_data(ln, column_index, str))
    #  219|   		err(EXIT_FAILURE, _("failed to add output data"));
    #  220|   	return true;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def560]
    util-linux-2.42.start/lsfd-cmd/file.c: scope_hint: In function ‘file_fill_column’
    util-linux-2.42.start/lsfd-cmd/file.c:414:13: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
    util-linux-2.42.start/lsfd-cmd/file.c: scope_hint: In function ‘file_fill_column’
    util-linux-2.42.start/lsfd-cmd/file.c: scope_hint: In function ‘file_fill_column’
    #  412|   	if (!str)
    #  413|   		err(EXIT_FAILURE, _("failed to add output data"));
    #  414|-> 	if (scols_line_refer_data(ln, column_index, str))
    #  415|   		err(EXIT_FAILURE, _("failed to add output data"));
    #  416|   	return true;

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def561]
    util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘new_file’
    util-linux-2.42.start/lsfd-cmd/lsfd.c:747:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, *class.size)’
    #  745|   	assert(class);
    #  746|   	file = xcalloc(1, class->size);
    #  747|-> 	file->class = class;
    #  748|
    #  749|   	file->proc = proc;

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def562]
    util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘new_error_file_common’
    util-linux-2.42.start/lsfd-cmd/lsfd.c:768:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, *error_class.size)’
    util-linux-2.42.start/include/c.h:19: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘new_error_file_common’
    #  766|
    #  767|   	file = xcalloc(1, error_class->size);
    #  768|-> 	file->class = error_class;
    #  769|
    #  770|   	file->proc = proc;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def563]
    util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘read_process.part.0’
    util-linux-2.42.start/lsfd-cmd/lsfd.c:2060:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    # 2058|   	proc->command = procfs_process_get_cmdname(pc, buf, sizeof(buf)) > 0 ?
    # 2059|   			xstrdup(buf) : xstrdup(_("(unknown)"));
    # 2060|-> 	procfs_process_get_uid(pc, &proc->uid);
    # 2061|
    # 2062|   	if (procfs_process_get_stat(pc, buf, sizeof(buf)) > 0) {

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def564]
    util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘parse_pids’
    util-linux-2.42.start/lsfd-cmd/lsfd.c:2196:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
    # 2194|   	       && (isspace((unsigned char)*next) || *next == ','))
    # 2195|   		next++;
    # 2196|-> 	if (*next != '\0')
    # 2197|   		parse_pids(next, pids, count);
    # 2198|   }

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def565]
    util-linux-2.42.start/lsfd-cmd/lsfd.c:2196:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘outarg’
    # 2194|   	       && (isspace((unsigned char)*next) || *next == ','))
    # 2195|   		next++;
    # 2196|-> 	if (*next != '\0')
    # 2197|   		parse_pids(next, pids, count);
    # 2198|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
    util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘collect_processes’
    util-linux-2.42.start/lsfd-cmd/lsfd.c:2237:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc")’
    # 2235|   		err(EXIT_FAILURE, _("failed to open /proc"));
    # 2236|
    # 2237|-> 	while ((d = readdir(dir))) {
    # 2238|   		pid_t pid;
    # 2239|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
    util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘main’
    util-linux-2.42.start/lsfd-cmd/lsfd.c:2389:21: warning[-Wanalyzer-malloc-leak]: leak of ‘new_counter_spec(optarg)’
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/bits/libc-header-start.h:33: included_from: Included from here.
    /usr/include/stdio.h:28: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/lsfd.c:25: included_from: Included from here.
    # 2387|   	struct counter_spec *spec;
    # 2388|
    # 2389|-> 	if (spec_str[0] == '\0')
    # 2390|   		errx(EXIT_FAILURE,
    # 2391|   		     _("too short counter specification: -C/--counter %s"),

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def568]
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:2193:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/net/netlink", "r")’
    # 2191|   	if (fgets(line, sizeof(line), netlink_fp) == NULL)
    # 2192|   		goto out;
    # 2193|-> 	if (!(line[0] == 's' && line[1] == 'k'))
    # 2194|   		/* Unexpected line */
    # 2195|   		goto out;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def569]
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:2193:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/net/netlink", "r")’
    # 2191|   	if (fgets(line, sizeof(line), netlink_fp) == NULL)
    # 2192|   		goto out;
    # 2193|-> 	if (!(line[0] == 's' && line[1] == 'k'))
    # 2194|   		/* Unexpected line */
    # 2195|   		goto out;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def570]
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:2600:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/net/packet", "r")’
    # 2598|   	if (fgets(line, sizeof(line), packet_fp) == NULL)
    # 2599|   		goto out;
    # 2600|-> 	if (!(line[0] == 's' && line[1] == 'k'))
    # 2601|   		/* Unexpected line */
    # 2602|   		goto out;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def571]
    util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:2600:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/net/packet", "r")’
    # 2598|   	if (fgets(line, sizeof(line), packet_fp) == NULL)
    # 2599|   		goto out;
    # 2600|-> 	if (!(line[0] == 's' && line[1] == 'k'))
    # 2601|   		/* Unexpected line */
    # 2602|   		goto out;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def572]
    util-linux-2.42.start/lsfd-cmd/sock.c: scope_hint: In function ‘sock_fill_column’
    util-linux-2.42.start/lsfd-cmd/sock.c:133:13: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
    util-linux-2.42.start/lsfd-cmd/lsfd.h:41: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/sock.c:25: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/debug.h:40: included_from: Included from here.
    util-linux-2.42.start/lsfd-cmd/lsfd.h:35: included_from: Included from here.
    #  131|   	if (!str)
    #  132|   		err(EXIT_FAILURE, _("failed to add output data"));
    #  133|-> 	if (scols_line_refer_data(ln, column_index, str))
    #  134|   		err(EXIT_FAILURE, _("failed to add output data"));
    #  135|   	return true;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
    util-linux-2.42.start/lsfd-cmd/unkn.c: scope_hint: In function ‘unkn_fill_column’
    util-linux-2.42.start/lsfd-cmd/unkn.c:125:13: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
    #  123|   	if (!str)
    #  124|   		err(EXIT_FAILURE, _("failed to add output data"));
    #  125|-> 	if (scols_line_refer_data(ln, column_index, str))
    #  126|   		err(EXIT_FAILURE, _("failed to add output data"));
    #  127|   	return true;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def574]
    util-linux-2.42.start/misc-utils/blkid.c: scope_hint: In function ‘lowprobe_device’
    util-linux-2.42.start/misc-utils/blkid.c:537:60: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(devname, 526336)’
    util-linux-2.42.start/misc-utils/blkid.c:20: included_from: Included from here.
    #  535|   	}
    #  536|   	errno = 0;
    #  537|-> 	if (blkid_probe_set_device(pr, fd, ctl->offset, ctl->size)) {
    #  538|   		if (errno)
    #  539|   			warn(_("error: %s"), devname);

    Error: GCC_ANALYZER_WARNING (CWE-465): [#def575]
    util-linux-2.42.start/misc-utils/blkid.c: scope_hint: In function ‘list_to_usage’
    util-linux-2.42.start/misc-utils/blkid.c:618:15: warning[-Wanalyzer-deref-before-check]: check of ‘p’ for NULL after already dereferencing it
    #  616|   	if (!p || !*p)
    #  617|   		goto err;
    #  618|-> 	while(p) {
    #  619|   		word = p;
    #  620|   		p = strchr(p, ',');

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def576]
    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:18: included_from: Included from here.
    #  887|   				continue;
    #  888|
    #  889|-> 			devices[numdev++] = dev;
    #  890|   		}
    #  891|

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def577]
    util-linux-2.42.start/misc-utils/cal.c: scope_hint: In function ‘monthly’
    util-linux-2.42.start/misc-utils/cal.c:1099:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)*ctl.months_in_row, 208) + (sizetype)i * 208’
    util-linux-2.42.start/misc-utils/cal.c:79: included_from: Included from here.
    # 1097|
    # 1098|   	for (i = 0; i < ctl->months_in_row - 1; i++)
    # 1099|-> 		ms[i].next = &ms[i + 1];
    # 1100|
    # 1101|   	rows = (ctl->num_months - 1) / ctl->months_in_row;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
    util-linux-2.42.start/misc-utils/copyfilerange.c: scope_hint: In function ‘parse_range’
    util-linux-2.42.start/misc-utils/copyfilerange.c:97:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(str)’
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/bits/libc-header-start.h:33: included_from: Included from here.
    /usr/include/stdio.h:28: included_from: Included from here.
    util-linux-2.42.start/misc-utils/copyfilerange.c:20: included_from: Included from here.
    #   95|   		goto fail;
    #   96|   	*token = '\0';
    #   97|-> 	if (*start) {
    #   98|   		rc = strtosize(start, &tmp);
    #   99|   		if (rc || tmp >= SINT_MAX(off_t))

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def579]
    util-linux-2.42.start/misc-utils/copyfilerange.c: scope_hint: In function ‘main’
    util-linux-2.42.start/misc-utils/copyfilerange.c:221:53: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘range_files’
    #  219|   			if (!range_files)
    #  220|   				range_files = xmalloc(sizeof(char *) * argc);
    #  221|-> 			range_files[nrange_files++] = xstrdup(optarg);
    #  222|   			break;
    #  223|   		case 'v':

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
    util-linux-2.42.start/misc-utils/copyfilerange.c:244:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    util-linux-2.42.start/misc-utils/copyfilerange.c:244:36: note: in expansion of macro ‘_’
    #  242|
    #  243|   	if (!range.in_filename)
    #  244|-> 		errx(EXIT_FAILURE, _("source file is required"));
    #  245|
    #  246|   	if (!range.out_filename)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
    util-linux-2.42.start/misc-utils/copyfilerange.c:244:17: warning[-Wanalyzer-malloc-leak]: leak of ‘range_files’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/misc-utils/copyfilerange.c:32: included_from: Included from here.
    util-linux-2.42.start/misc-utils/copyfilerange.c:244:36: note: in expansion of macro ‘_’
    #  242|
    #  243|   	if (!range.in_filename)
    #  244|-> 		errx(EXIT_FAILURE, _("source file is required"));
    #  245|
    #  246|   	if (!range.out_filename)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
    util-linux-2.42.start/misc-utils/enosys.c: scope_hint: In function ‘main’
    util-linux-2.42.start/misc-utils/enosys.c:117:42: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_block(optarg, 25, & ioctls, 1)’
    #  115|   	colon = strchr(s, ':');
    #  116|   	if (colon) {
    #  117|-> 		name = xstrndup(s, colon - s);
    #  118|   		error_name = colon + 1;
    #  119|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def583]
    util-linux-2.42.start/misc-utils/enosys.c:117:42: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_block(optarg, 38, & syscalls, 384)’
    #  115|   	colon = strchr(s, ':');
    #  116|   	if (colon) {
    #  117|-> 		name = xstrndup(s, colon - s);
    #  118|   		error_name = colon + 1;
    #  119|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def584]
    util-linux-2.42.start/misc-utils/enosys.c: scope_hint: In function ‘parse_block’
    util-linux-2.42.start/misc-utils/enosys.c:122:57: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrndup(s, (long unsigned int)(colon - s))’
    #  120|   		found = 0;
    #  121|   		for (i = 0; i < ARRAY_SIZE(errnos); i++) {
    #  122|-> 			if (strcmp(error_name, errnos[i].name) == 0) {
    #  123|   				ret = errnos[i].number;
    #  124|   				found = 1;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def585]
    util-linux-2.42.start/misc-utils/enosys.c: scope_hint: In function ‘main’
    util-linux-2.42.start/misc-utils/enosys.c:137:42: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_block(optarg, 25, & ioctls, 1)’
    #  135|   	found = 0;
    #  136|   	for (i = 0; i < n_entities; i++) {
    #  137|-> 		if (strcmp(name, entities[i].name) == 0) {
    #  138|   			blocked_number = entities[i].number;
    #  139|   			found = 1;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def586]
    util-linux-2.42.start/misc-utils/enosys.c:137:42: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_block(optarg, 38, & syscalls, 384)’
    #  135|   	found = 0;
    #  136|   	for (i = 0; i < n_entities; i++) {
    #  137|-> 		if (strcmp(name, entities[i].name) == 0) {
    #  138|   			blocked_number = entities[i].number;
    #  139|   			found = 1;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def587]
    util-linux-2.42.start/misc-utils/enosys.c: scope_hint: In function ‘parse_block’
    util-linux-2.42.start/misc-utils/enosys.c:144:34: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
    #  142|   	}
    #  143|   	if (!found)
    #  144|-> 		blocked_number = str2num_or_err(
    #  145|   				name, 10, _("Unknown syscall"), 0, LONG_MAX);
    #  146|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def588]
    util-linux-2.42.start/misc-utils/enosys.c:154:16: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
    #  152|   		free((char *)name);
    #  153|
    #  154|-> 	return blocked;
    #  155|   }
    #  156|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def589]
    util-linux-2.42.start/misc-utils/enosys.c: scope_hint: In function ‘main’
    util-linux-2.42.start/misc-utils/enosys.c:286:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘dump’
    util-linux-2.42.start/misc-utils/enosys.c:238:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:258:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:258:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:258:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:33: included_from: Included from here.
    util-linux-2.42.start/misc-utils/enosys.c:260:9: note: in expansion of macro ‘list_for_each’
    util-linux-2.42.start/misc-utils/enosys.c: scope_hint: In function ‘main’
    util-linux-2.42.start/misc-utils/enosys.c:282:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:282:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:282:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:37: included_from: Included from here.
    util-linux-2.42.start/include/c.h:19: included_from: Included from here.
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/misc-utils/enosys.c:30: included_from: Included from here.
    util-linux-2.42.start/misc-utils/enosys.c:286:43: note: in expansion of macro ‘_’
    #  284|   	if (dump) {
    #  285|   		if (fwrite_all(filter, (f - filter) * sizeof(filter[0]), 1, dump))
    #  286|-> 			err(EXIT_FAILURE, _("Could not dump seccomp filter"));
    #  287|   		return EXIT_SUCCESS;
    #  288|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
    util-linux-2.42.start/misc-utils/enosys.c:286:25: warning[-Wanalyzer-malloc-leak]: leak of ‘dump’
    util-linux-2.42.start/misc-utils/enosys.c:238:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:258:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:258:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:258:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:260:9: note: in expansion of macro ‘list_for_each’
    util-linux-2.42.start/misc-utils/enosys.c: scope_hint: In function ‘main’
    util-linux-2.42.start/misc-utils/enosys.c:282:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:282:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:282:9: note: in expansion of macro ‘INSTR’
    util-linux-2.42.start/misc-utils/enosys.c:286:43: note: in expansion of macro ‘_’
    #  284|   	if (dump) {
    #  285|   		if (fwrite_all(filter, (f - filter) * sizeof(filter[0]), 1, dump))
    #  286|-> 			err(EXIT_FAILURE, _("Could not dump seccomp filter"));
    #  287|   		return EXIT_SUCCESS;
    #  288|   	}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def591]
    util-linux-2.42.start/misc-utils/fincore.c:22: included_from: Included from here.
    util-linux-2.42.start/misc-utils/fincore.c: scope_hint: In function ‘fincore_name’
    util-linux-2.42.start/misc-utils/fincore.c:405:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 0)’
    #  403|   	}
    #  404|
    #  405|-> 	if (S_ISBLK(sb->st_mode)) {
    #  406|   		rc = blkdev_get_size(fd, &st->file_size);
    #  407|   		if (rc)

    Error: GCC_ANALYZER_WARNING (CWE-404): [#def592]
    util-linux-2.42.start/misc-utils/findmnt-verify.c: scope_hint: In function ‘verify_mesg’
    util-linux-2.42.start/misc-utils/findmnt-verify.c:43:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/misc-utils/findmnt-verify.c:14: included_from: Included from here.
    util-linux-2.42.start/misc-utils/findmnt-verify.c:144:40: note: in expansion of macro ‘_’
    #   41|   {
    #   42|   	if (!vfy->target_printed && vfy->fs) {
    #   43|-> 		fprintf(stdout, "%s\n", mnt_fs_get_target(vfy->fs));
    #   44|   		vfy->target_printed = 1;
    #   45|   	}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def593]
    util-linux-2.42.start/misc-utils/findmnt-verify.c:287:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&buf, "r")’
    util-linux-2.42.start/misc-utils/findmnt-verify.c: scope_hint: In function ‘is_supported_filesystem.part.0’
    util-linux-2.42.start/misc-utils/findmnt-verify.c: scope_hint: In function ‘is_supported_filesystem.part.0’
    #  285|   	size_t n;
    #  286|
    #  287|-> 	if (!vfy->fs_num)
    #  288|   		return 0;
    #  289|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
    util-linux-2.42.start/misc-utils/findmnt-verify.c:287:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&buf, "r")’
    util-linux-2.42.start/misc-utils/findmnt-verify.c: scope_hint: In function ‘is_supported_filesystem.part.0’
    util-linux-2.42.start/misc-utils/findmnt-verify.c: scope_hint: In function ‘is_supported_filesystem.part.0’
    #  285|   	size_t n;
    #  286|
    #  287|-> 	if (!vfy->fs_num)
    #  288|   		return 0;
    #  289|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def595]
    util-linux-2.42.start/misc-utils/findmnt.c: scope_hint: In function ‘get_data_col_sources’
    util-linux-2.42.start/misc-utils/findmnt.c:588:21: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
    #  586|
    #  587|   	if (!blk_cache) {
    #  588|-> 		if (blkid_get_cache(&blk_cache, NULL) != 0)
    #  589|   			goto nothing;
    #  590|   		blkid_probe_all(blk_cache);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
    util-linux-2.42.start/misc-utils/findmnt.c:590:17: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
    #  588|   		if (blkid_get_cache(&blk_cache, NULL) != 0)
    #  589|   			goto nothing;
    #  590|-> 		blkid_probe_all(blk_cache);
    #  591|   	}
    #  592|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
    util-linux-2.42.start/misc-utils/findmnt.c:607:16: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
    #  605|
    #  606|   	/* scan all devices for the TAG */
    #  607|-> 	iter = blkid_dev_iterate_begin(blk_cache);
    #  608|   	blkid_dev_set_search(iter, tag, val);
    #  609|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def598]
    util-linux-2.42.start/misc-utils/findmnt.c:608:9: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
    #  606|   	/* scan all devices for the TAG */
    #  607|   	iter = blkid_dev_iterate_begin(blk_cache);
    #  608|-> 	blkid_dev_set_search(iter, tag, val);
    #  609|
    #  610|   	while (blkid_dev_next(iter, &dev) == 0) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def599]
    util-linux-2.42.start/misc-utils/findmnt.c:610:16: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
    #  608|   	blkid_dev_set_search(iter, tag, val);
    #  609|
    #  610|-> 	while (blkid_dev_next(iter, &dev) == 0) {
    #  611|   		dev = blkid_verify(blk_cache, dev);
    #  612|   		if (!dev)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def600]
    util-linux-2.42.start/misc-utils/findmnt.c:611:23: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
    #  609|
    #  610|   	while (blkid_dev_next(iter, &dev) == 0) {
    #  611|-> 		dev = blkid_verify(blk_cache, dev);
    #  612|   		if (!dev)
    #  613|   			continue;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def601]
    util-linux-2.42.start/misc-utils/findmnt.c:614:17: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
    #  612|   		if (!dev)
    #  613|   			continue;
    #  614|-> 		ul_buffer_append_string(&buf, blkid_dev_devname(dev));
    #  615|   		ul_buffer_append_data(&buf, "\0", 1);
    #  616|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def602]
    util-linux-2.42.start/misc-utils/findmnt.c:615:17: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
    #  613|   			continue;
    #  614|   		ul_buffer_append_string(&buf, blkid_dev_devname(dev));
    #  615|-> 		ul_buffer_append_data(&buf, "\0", 1);
    #  616|   	}
    #  617|   	blkid_dev_iterate_end(iter);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def603]
    util-linux-2.42.start/misc-utils/findmnt.c:617:9: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
    #  615|   		ul_buffer_append_data(&buf, "\0", 1);
    #  616|   	}
    #  617|-> 	blkid_dev_iterate_end(iter);
    #  618|   	free(val);
    #  619|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def604]
    util-linux-2.42.start/misc-utils/findmnt.c: scope_hint: In function ‘poll_table’
    util-linux-2.42.start/misc-utils/findmnt.c:1405:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tabfile, "r")’
    # 1403|   	}
    # 1404|
    # 1405|-> 	mnt_table_set_parser_errcb(tb_new, parser_errcb);
    # 1406|
    # 1407|   	fds[0].fd = fileno(f);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def605]
    util-linux-2.42.start/misc-utils/findmnt.c:1405:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tabfile, "r")’
    # 1403|   	}
    # 1404|
    # 1405|-> 	mnt_table_set_parser_errcb(tb_new, parser_errcb);
    # 1406|
    # 1407|   	fds[0].fd = fileno(f);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def606]
    util-linux-2.42.start/misc-utils/findmnt.c:1415:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tabfile, "r")’
    # 1413|   		int change, count;
    # 1414|
    # 1415|-> 		count = poll(fds, 1, timeout);
    # 1416|   		if (count == 0)
    # 1417|   			break;	/* timeout */

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def607]
    util-linux-2.42.start/misc-utils/findmnt.c:1415:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tabfile, "r")’
    # 1413|   		int change, count;
    # 1414|
    # 1415|-> 		count = poll(fds, 1, timeout);
    # 1416|   		if (count == 0)
    # 1417|   			break;	/* timeout */

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def608]
    util-linux-2.42.start/misc-utils/findmnt.c:1419:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tabfile, "r")’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/misc-utils/findmnt.c:43: included_from: Included from here.
    util-linux-2.42.start/misc-utils/findmnt.c:1419:30: note: in expansion of macro ‘_’
    # 1417|   			break;	/* timeout */
    # 1418|   		if (count < 0) {
    # 1419|-> 			warn(_("poll() failed"));
    # 1420|   			goto done;
    # 1421|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def609]
    util-linux-2.42.start/misc-utils/findmnt.c:1419:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tabfile, "r")’
    util-linux-2.42.start/misc-utils/findmnt.c:1419:30: note: in expansion of macro ‘_’
    # 1417|   			break;	/* timeout */
    # 1418|   		if (count < 0) {
    # 1419|-> 			warn(_("poll() failed"));
    # 1420|   			goto done;
    # 1421|   		}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def610]
    util-linux-2.42.start/misc-utils/findmnt.c:1423:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tabfile, "r")’
    # 1421|   		}
    # 1422|
    # 1423|-> 		rewind(f);
    # 1424|   		rc = mnt_table_parse_stream(tb_new, f, tabfile);
    # 1425|   		if (!rc)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def611]
    util-linux-2.42.start/misc-utils/findmnt.c:1423:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tabfile, "r")’
    # 1421|   		}
    # 1422|
    # 1423|-> 		rewind(f);
    # 1424|   		rc = mnt_table_parse_stream(tb_new, f, tabfile);
    # 1425|   		if (!rc)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def612]
    util-linux-2.42.start/misc-utils/findmnt.c:1424:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tabfile, "r")’
    # 1422|
    # 1423|   		rewind(f);
    # 1424|-> 		rc = mnt_table_parse_stream(tb_new, f, tabfile);
    # 1425|   		if (!rc)
    # 1426|   			rc = mnt_diff_tables(diff, tb, tb_new);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def613]
    util-linux-2.42.start/misc-utils/findmnt.c:1424:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tabfile, "r")’
    # 1422|
    # 1423|   		rewind(f);
    # 1424|-> 		rc = mnt_table_parse_stream(tb_new, f, tabfile);
    # 1425|   		if (!rc)
    # 1426|   			rc = mnt_diff_tables(diff, tb, tb_new);

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def614]
    util-linux-2.42.start/misc-utils/getopt.c: scope_hint: In function ‘print_normalized.part.0’
    util-linux-2.42.start/misc-utils/getopt.c:136:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(strlen(arg) * 4 + 3)’
    util-linux-2.42.start/misc-utils/getopt.c:73: included_from: Included from here.
    #  134|   	bufptr = buf;
    #  135|
    #  136|-> 	for (*bufptr++ = '\''; *argptr; argptr++) {
    #  137|   		if (ctl->shell == TCSH) {
    #  138|   			switch (*argptr) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def615]
    util-linux-2.42.start/misc-utils/getopt.c: scope_hint: In function ‘generate_output’
    util-linux-2.42.start/misc-utils/getopt.c:204:18: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl.optstr’
    #  202|
    #  203|   	while ((opt =
    #  204|-> 		(getopt_long_fp
    #  205|   		 (argc, argv, ctl->optstr,
    #  206|   		  (const struct option *)ctl->long_options, &longindex)))

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def616]
    util-linux-2.42.start/misc-utils/getopt.c: scope_hint: In function ‘parse_error’
    util-linux-2.42.start/misc-utils/getopt.c:260:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl.name’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/closestream.h:14: included_from: Included from here.
    util-linux-2.42.start/misc-utils/getopt.c:70: included_from: Included from here.
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/include/closestream.h:15: included_from: Included from here.
    util-linux-2.42.start/misc-utils/getopt.c:487:37: note: in expansion of macro ‘_’
    #  258|   {
    #  259|   	if (message)
    #  260|-> 		warnx("%s", message);
    #  261|   	errtryhelp(PARAMETER_EXIT_CODE);
    #  262|   }

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def617]
    util-linux-2.42.start/misc-utils/getopt.c: scope_hint: In function ‘main’
    util-linux-2.42.start/misc-utils/getopt.c:436:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ctl.optstr’ where non-null expected
    util-linux-2.42.start/misc-utils/getopt.c:62: included_from: Included from here.
    /usr/include/string.h:156:14: note: argument 1 of ‘strcpy’ must be non-null
    #  434|   		ctl.quote = 0;
    #  435|   		ctl.optstr = xmalloc(strlen(argv[1]) + 1);
    #  436|-> 		strcpy(ctl.optstr, argv[1] + strspn(argv[1], "-+"));
    #  437|   		argv[1] = argv[0];
    #  438|   		return generate_output(&ctl, argv + 1, argc - 1);

    Error: CPPCHECK_WARNING (CWE-401): [#def618]
    util-linux-2.42.start/misc-utils/getopt.c:467: error[memleak]: Memory leak: ctl.name
    #  465|   			break;
    #  466|   		case 'T':
    #  467|-> 			return TEST_EXIT_CODE;
    #  468|   		case 'u':
    #  469|   			ctl.quote = 0;

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def619]
    util-linux-2.42.start/misc-utils/hardlink.c:532:9: warning[-Wanalyzer-null-argument]: use of NULL ‘xcalloc((long unsigned int)n, 8)’ where non-null expected
    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/include/c.h:17: included_from: Included from here.
    util-linux-2.42.start/misc-utils/hardlink.c:54: included_from: Included from here.
    /usr/include/stdlib.h:998:13: note: argument 1 of ‘qsort’ must be non-null
    #  530|   	}
    #  531|
    #  532|-> 	qsort(table, n, sizeof(char *), cmp_xattr_name_ptrs);
    #  533|
    #  534|   	return table;

    Error: GCC_ANALYZER_WARNING (CWE-415): [#def620]
    util-linux-2.42.start/misc-utils/hardlink.c: scope_hint: In function ‘file_xattrs_equal’
    util-linux-2.42.start/misc-utils/hardlink.c:633:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘value_a’
    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’
    #  631|   	free(name_ptrs_a);
    #  632|   	free(name_ptrs_b);
    #  633|-> 	free(value_a);
    #  634|   	free(value_b);
    #  635|   	return ret;

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def621]
    util-linux-2.42.start/misc-utils/hardlink.c: scope_hint: In function ‘inserter’
    util-linux-2.42.start/misc-utils/hardlink.c:899:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, strlen(fpath) + 17)’
    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:883:9: note: in expansion of macro ‘jlog’
    #  897|
    #  898|   	fil->st = *sb;
    #  899|-> 	fil->links->basename = ftwbuf->base;
    #  900|   	fil->links->dirname = rootbasesz;
    #  901|   	fil->links->next = NULL;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def622]
    util-linux-2.42.start/misc-utils/hardlink.c:906:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    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:883:9: note: in expansion of macro ‘jlog’
    #  904|   	memcpy(fil->links->path, fpath, pathlen);
    #  905|
    #  906|-> 	node = tsearch(fil, &files_by_ino, compare_nodes_ino);
    #  907|
    #  908|   	if (node == NULL)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def623]
    util-linux-2.42.start/misc-utils/hardlink.c: scope_hint: In function ‘is_reflink’
    util-linux-2.42.start/misc-utils/hardlink.c:999:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&*xa_41(D)->links.path, 0)’
    #  997|
    #  998|   	int af = open(xa->links->path, O_RDONLY),
    #  999|-> 	    bf = open(xb->links->path, O_RDONLY);
    # 1000|
    # 1001|   	if (af < 0 || bf < 0)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def624]
    util-linux-2.42.start/misc-utils/hardlink.c:1001:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&*xb_44(D)->links.path, 0)’
    #  999|   	    bf = open(xb->links->path, O_RDONLY);
    # 1000|
    # 1001|-> 	if (af < 0 || bf < 0)
    # 1002|   		goto done;
    # 1003|

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def625]
    util-linux-2.42.start/misc-utils/kill.c:405:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/ctype.h:25: included_from: Included from here.
    util-linux-2.42.start/misc-utils/kill.c:48: included_from: Included from here.
    #  403|   		if (!strncmp(arg, "--list=", 7) || !strncmp(arg, "-l=", 3)) {
    #  404|   			char *p = strchr(arg, '=') + 1;
    #  405|-> 			if (p[0] == '0' && p[1] == 'x') {
    #  406|   				uint64_t sigmask;
    #  407|   				if (ul_strtou64(p + 2, &sigmask, 16) < 0)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def626]
    util-linux-2.42.start/misc-utils/logger.c: scope_hint: In function ‘unix_socket’
    util-linux-2.42.start/misc-utils/logger.c:278:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
    #  276|   		if (st == -1 || (fd = socket(AF_UNIX, st, 0)) == -1)
    #  277|   			continue;
    #  278|-> 		if (connect(fd, (struct sockaddr *)&s_addr, sizeof(s_addr)) == -1) {
    #  279|   			close(fd);
    #  280|   			continue;

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def627]
    util-linux-2.42.start/misc-utils/look.c: scope_hint: In function ‘compare’
    util-linux-2.42.start/misc-utils/look.c:337:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
    util-linux-2.42.start/misc-utils/look.c:61: included_from: Included from here.
    util-linux-2.42.start/misc-utils/look.c:57: included_from: Included from here.
    #  335|   		if (!dflag || isalnum(*s2) || isblank(*s2))
    #  336|   		{
    #  337|-> 			*p++ = *s2;
    #  338|   			i--;
    #  339|   		}

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def628]
    util-linux-2.42.start/misc-utils/look.c:342:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
    #  340|   		s2++;
    #  341|   	}
    #  342|-> 	*p = 0;
    #  343|
    #  344|   	/* and compare */

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def629]
    util-linux-2.42.start/misc-utils/lsblk.h:18: included_from: Included from here.
    util-linux-2.42.start/misc-utils/lsblk-devtree.c: scope_hint: In function ‘cmp_devices_devno’
    util-linux-2.42.start/misc-utils/lsblk-devtree.c:536:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘a’
    util-linux-2.42.start/include/c.h:231:29: note: in definition of macro ‘cmp_numbers’
    util-linux-2.42.start/include/c.h:231:29: note: in definition of macro ‘cmp_numbers’
    #  534|   			    *bx = list_entry(b, struct lsblk_device, ls_devices);
    #  535|
    #  536|-> 	return cmp_numbers(makedev(ax->maj, ax->min),
    #  537|   			   makedev(bx->maj, bx->min));
    #  538|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def630]
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:257:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.pttype’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    #  255|   			unhexmangle_string(prop->partlabel);
    #  256|   		else if (lookup(buf, "ID_PART_TABLE_UUID", &prop->ptuuid)) ;
    #  257|-> 		else if (lookup(buf, "ID_PART_TABLE_TYPE", &prop->pttype)) ;
    #  258|   		else if (lookup(buf, "ID_FS_TYPE", &prop->fstype)) ;
    #  259|   		else if (lookup(buf, "ID_FS_VERSION", &prop->fsversion)) ;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def631]
    util-linux-2.42.start/misc-utils/lsblk-properties.c:258:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.fstype’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    #  256|   		else if (lookup(buf, "ID_PART_TABLE_UUID", &prop->ptuuid)) ;
    #  257|   		else if (lookup(buf, "ID_PART_TABLE_TYPE", &prop->pttype)) ;
    #  258|-> 		else if (lookup(buf, "ID_FS_TYPE", &prop->fstype)) ;
    #  259|   		else if (lookup(buf, "ID_FS_VERSION", &prop->fsversion)) ;
    #  260|   		else if (lookup(buf, "ID_PART_ENTRY_TYPE", &prop->parttype)) ;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def632]
    util-linux-2.42.start/misc-utils/lsblk-properties.c:259:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.fsversion’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    #  257|   		else if (lookup(buf, "ID_PART_TABLE_TYPE", &prop->pttype)) ;
    #  258|   		else if (lookup(buf, "ID_FS_TYPE", &prop->fstype)) ;
    #  259|-> 		else if (lookup(buf, "ID_FS_VERSION", &prop->fsversion)) ;
    #  260|   		else if (lookup(buf, "ID_PART_ENTRY_TYPE", &prop->parttype)) ;
    #  261|   		else if (lookup(buf, "ID_PART_ENTRY_UUID", &prop->partuuid)) ;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def633]
    util-linux-2.42.start/misc-utils/lsblk-properties.c:260:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.parttype’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    #  258|   		else if (lookup(buf, "ID_FS_TYPE", &prop->fstype)) ;
    #  259|   		else if (lookup(buf, "ID_FS_VERSION", &prop->fsversion)) ;
    #  260|-> 		else if (lookup(buf, "ID_PART_ENTRY_TYPE", &prop->parttype)) ;
    #  261|   		else if (lookup(buf, "ID_PART_ENTRY_UUID", &prop->partuuid)) ;
    #  262|   		else if (lookup(buf, "ID_PART_ENTRY_FLAGS", &prop->partflags)) ;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def634]
    util-linux-2.42.start/misc-utils/lsblk-properties.c:261:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.partuuid’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    #  259|   		else if (lookup(buf, "ID_FS_VERSION", &prop->fsversion)) ;
    #  260|   		else if (lookup(buf, "ID_PART_ENTRY_TYPE", &prop->parttype)) ;
    #  261|-> 		else if (lookup(buf, "ID_PART_ENTRY_UUID", &prop->partuuid)) ;
    #  262|   		else if (lookup(buf, "ID_PART_ENTRY_FLAGS", &prop->partflags)) ;
    #  263|   		else if (lookup(buf, "ID_PART_ENTRY_NUMBER", &prop->partn)) ;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def635]
    util-linux-2.42.start/misc-utils/lsblk-properties.c:262:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.partflags’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    #  260|   		else if (lookup(buf, "ID_PART_ENTRY_TYPE", &prop->parttype)) ;
    #  261|   		else if (lookup(buf, "ID_PART_ENTRY_UUID", &prop->partuuid)) ;
    #  262|-> 		else if (lookup(buf, "ID_PART_ENTRY_FLAGS", &prop->partflags)) ;
    #  263|   		else if (lookup(buf, "ID_PART_ENTRY_NUMBER", &prop->partn)) ;
    #  264|   		else if (lookup(buf, "ID_PART_ENTRY_SCHEME", &prop->pttype)) ;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def636]
    util-linux-2.42.start/misc-utils/lsblk-properties.c:263:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.partn’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    #  261|   		else if (lookup(buf, "ID_PART_ENTRY_UUID", &prop->partuuid)) ;
    #  262|   		else if (lookup(buf, "ID_PART_ENTRY_FLAGS", &prop->partflags)) ;
    #  263|-> 		else if (lookup(buf, "ID_PART_ENTRY_NUMBER", &prop->partn)) ;
    #  264|   		else if (lookup(buf, "ID_PART_ENTRY_SCHEME", &prop->pttype)) ;
    #  265|   		else if (lookup(buf, "ID_MODEL", &prop->model)) ;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def637]
    util-linux-2.42.start/misc-utils/lsblk-properties.c:266:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.wwn’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    #  264|   		else if (lookup(buf, "ID_PART_ENTRY_SCHEME", &prop->pttype)) ;
    #  265|   		else if (lookup(buf, "ID_MODEL", &prop->model)) ;
    #  266|-> 		else if (lookup(buf, "ID_WWN_WITH_EXTENSION", &prop->wwn)) ;
    #  267|   		else if (lookup(buf, "ID_WWN", &prop->wwn)) ;
    #  268|   		else if (lookup(buf, "SCSI_IDENT_SERIAL", &prop->serial)) ;	/* serial from sg3_utils */

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def638]
    util-linux-2.42.start/misc-utils/lsblk-properties.c:268:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.serial’
    util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c:225:9: note: in expansion of macro ‘DBG’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘get_properties_by_file’
    #  266|   		else if (lookup(buf, "ID_WWN_WITH_EXTENSION", &prop->wwn)) ;
    #  267|   		else if (lookup(buf, "ID_WWN", &prop->wwn)) ;
    #  268|-> 		else if (lookup(buf, "SCSI_IDENT_SERIAL", &prop->serial)) ;	/* serial from sg3_utils */
    #  269|   		else if (lookup(buf, "ID_SCSI_SERIAL", &prop->serial)) ;
    #  270|   		else if (lookup(buf, "ID_SERIAL_SHORT", &prop->serial)) ;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def639]
    util-linux-2.42.start/misc-utils/lsclocks.c:47:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
    util-linux-2.42.start/misc-utils/lsclocks.c: scope_hint: In function ‘add_clock_line’
    #   45|   static inline clockid_t FD_TO_CLOCKID(int fd)
    #   46|   {
    #   47|-> 	return (~(unsigned int) fd << 3) | CLOCKFD;
    #   48|   }
    #   49|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def640]
    util-linux-2.42.start/misc-utils/mcookie.c: scope_hint: In function ‘randomness_from_files’
    util-linux-2.42.start/misc-utils/mcookie.c:63:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fname, 0)’
    #   61|   	uint64_t wanted, count;
    #   62|
    #   63|-> 	wanted = ctl->maxsz ? ctl->maxsz : sizeof(buf);
    #   64|
    #   65|   	for (count = 0; count < wanted; ) {

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def641]
    util-linux-2.42.start/misc-utils/mcookie.c: scope_hint: In function ‘hash_file’
    util-linux-2.42.start/misc-utils/mcookie.c:75:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
    util-linux-2.42.start/misc-utils/mcookie.c:32: included_from: Included from here.
    #   73|   		if (r <= 0)
    #   74|   			break;
    #   75|-> 		ul_MD5Update(&ctl->ctx, buf, r);
    #   76|   		count += r;
    #   77|   	}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def642]
    util-linux-2.42.start/misc-utils/mcookie.c:80:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
    #   78|   	/* Separate files with a null byte */
    #   79|   	buf[0] = '\0';
    #   80|-> 	ul_MD5Update(&ctl->ctx, buf, 1);
    #   81|   	return count;
    #   82|   }

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def643]
    util-linux-2.42.start/misc-utils/mcookie.c: scope_hint: In function ‘randomness_from_files’
    util-linux-2.42.start/misc-utils/mcookie.c:126:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
    #  124|   			warn(_("cannot open %s"), fname);
    #  125|   		} else {
    #  126|-> 			count = hash_file(ctl, fd);
    #  127|   			if (ctl->verbose)
    #  128|   				fprintf(stderr,

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def644]
    util-linux-2.42.start/misc-utils/mcookie.c:133:51: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
    #  131|   					count, fname);
    #  132|
    #  133|-> 			if (fd != STDIN_FILENO && close(fd))
    #  134|   				err(EXIT_FAILURE, _("closing %s failed"), fname);
    #  135|   		}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def645]
    util-linux-2.42.start/misc-utils/mcookie.c:137:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
    #  135|   		}
    #  136|   	}
    #  137|-> }
    #  138|
    #  139|   int main(int argc, char **argv)

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def646]
    util-linux-2.42.start/misc-utils/mcookie.c: scope_hint: In function ‘main’
    util-linux-2.42.start/misc-utils/mcookie.c:169:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ctl.files’
    util-linux-2.42.start/misc-utils/mcookie.c:31: included_from: Included from here.
    #  167|   			if (!ctl.files)
    #  168|   				ctl.files = xmalloc(sizeof(char *) * argc);
    #  169|-> 			ctl.files[ctl.nfiles++] = optarg;
    #  170|   			break;
    #  171|   		case 'm':

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def647]
    util-linux-2.42.start/misc-utils/mcookie.c:172:37: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl.files’
    #  170|   			break;
    #  171|   		case 'm':
    #  172|-> 			ctl.maxsz = strtosize_or_err(optarg,
    #  173|   						     _("failed to parse length"));
    #  174|   			break;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def648]
    util-linux-2.42.start/misc-utils/mcookie.c:188:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl.files’
    #  186|   		warnx(_("--max-size ignored when used without --file"));
    #  187|
    #  188|-> 	ul_MD5Init(&ctl.ctx);
    #  189|   	randomness_from_files(&ctl);
    #  190|   	free(ctl.files);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def649]
    util-linux-2.42.start/misc-utils/namei.c: scope_hint: In function ‘readlink_to_namei’
    util-linux-2.42.start/misc-utils/namei.c:101:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fname’
    util-linux-2.42.start/misc-utils/namei.c:101:35: note: in expansion of macro ‘_’
    #   99|   	sz = readlink(path, sym, sizeof(sym));
    #  100|   	if (sz < 1)
    #  101|-> 		err(EXIT_FAILURE, _("failed to read symlink: %s"), path);
    #  102|   	if (*sym != '/') {
    #  103|   		const char *p = strrchr(path, '/');

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def650]
    util-linux-2.42.start/misc-utils/namei.c:115:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc((long unsigned int)(sz + 1))’ where non-null expected
    util-linux-2.42.start/misc-utils/namei.c:25: included_from: Included from here.
    /usr/include/string.h:47:14: note: argument 1 of ‘memcpy’ must be non-null
    #  113|   	if (isrel) {
    #  114|   		/* create the absolute path from the relative symlink */
    #  115|-> 		memcpy(nm->abslink, path, nm->relstart);
    #  116|   		*(nm->abslink + nm->relstart) = '/';
    #  117|   		nm->relstart++;

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def651]
    util-linux-2.42.start/misc-utils/namei.c:123:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc((long unsigned int)(sz + 1))’ where non-null expected
    /usr/include/string.h:47:14: note: argument 1 of ‘memcpy’ must be non-null
    #  121|   		 * - or link without any subdir (foo -> bar)
    #  122|   		 */
    #  123|-> 		memcpy(nm->abslink, sym, sz);
    #  124|
    #  125|   	nm->abslink[sz] = '\0';

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def652]
    util-linux-2.42.start/misc-utils/namei.c: scope_hint: In function ‘dotdot_stat’
    util-linux-2.42.start/misc-utils/namei.c:142:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(len + 4)’ where non-null expected
    /usr/include/string.h:47:14: note: argument 1 of ‘memcpy’ must be non-null
    #  140|   	path = xmalloc(len + sizeof(DOTDOTDIR));
    #  141|
    #  142|-> 	memcpy(path, dirname, len);
    #  143|   	memcpy(path + len, DOTDOTDIR, sizeof(DOTDOTDIR));
    #  144|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def653]
    util-linux-2.42.start/misc-utils/namei.c: scope_hint: In function ‘new_namei’
    util-linux-2.42.start/misc-utils/namei.c:168:27: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  166|   	/* Don't use is_selinux_enabled() here. We need info about a context
    #  167|   	 * also on systems where SELinux is (temporary) disabled */
    #  168|-> 	nm->context_len = lgetfilecon(path, &nm->context);
    #  169|   #endif
    #  170|   	if (lstat(path, &nm->st) != 0) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def654]
    util-linux-2.42.start/misc-utils/namei.c:168:27: warning[-Wanalyzer-malloc-leak]: leak of ‘fname’
    #  166|   	/* Don't use is_selinux_enabled() here. We need info about a context
    #  167|   	 * also on systems where SELinux is (temporary) disabled */
    #  168|-> 	nm->context_len = lgetfilecon(path, &nm->context);
    #  169|   #endif
    #  170|   	if (lstat(path, &nm->st) != 0) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def655]
    util-linux-2.42.start/misc-utils/namei.c:178:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fname’
    #  176|   		readlink_to_namei(nm, path);
    #  177|   	if (flags & NAMEI_OWNERS) {
    #  178|-> 		add_uid(ucache, nm->st.st_uid);
    #  179|   		add_gid(gcache, nm->st.st_gid);
    #  180|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def656]
    util-linux-2.42.start/misc-utils/namei.c: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/misc-utils/namei.c:212:22: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(orgpath)’
    #  210|   	}
    #  211|   	path = xstrdup(orgpath);
    #  212|-> 	fname = path + start;
    #  213|
    #  214|   	/* root directory */

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def657]
    util-linux-2.42.start/misc-utils/pipesz.c: scope_hint: In function ‘do_get’
    util-linux-2.42.start/misc-utils/pipesz.c:165:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524288)’
    #  163|   	}
    #  164|
    #  165|-> 	if (opt_get)
    #  166|   		do_get(fd, path);
    #  167|   	else

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def658]
    util-linux-2.42.start/misc-utils/rename.c: scope_hint: In function ‘string_replace’
    util-linux-2.42.start/misc-utils/rename.c:91:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
    #   89|   	while (count--) {
    #   90|   		while (p < where)
    #   91|-> 			*q++ = *p++;
    #   92|   		p = to;
    #   93|   		while (*p)

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def659]
    util-linux-2.42.start/misc-utils/rename.c:94:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
    #   92|   		p = to;
    #   93|   		while (*p)
    #   94|-> 			*q++ = *p++;
    #   95|   		if (fromlen > 0) {
    #   96|   			p = where + fromlen;

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def660]
    util-linux-2.42.start/misc-utils/rename.c:104:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
    util-linux-2.42.start/misc-utils/rename.c:40: included_from: Included from here.
    util-linux-2.42.start/misc-utils/rename.c:34: included_from: Included from here.
    #  102|   	}
    #  103|   	while (*p)
    #  104|-> 		*q++ = *p++;
    #  105|   	*q = 0;
    #  106|   	return 0;

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def661]
    util-linux-2.42.start/misc-utils/rename.c:105:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
    #  103|   	while (*p)
    #  104|   		*q++ = *p++;
    #  105|-> 	*q = 0;
    #  106|   	return 0;
    #  107|   }

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def662]
    util-linux-2.42.start/misc-utils/rename.c: scope_hint: In function ‘do_symlink’
    util-linux-2.42.start/misc-utils/rename.c:169:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc((long unsigned int)(sb.st_size + 1))’ where non-null expected
    util-linux-2.42.start/misc-utils/rename.c:31: included_from: Included from here.
    /usr/include/unistd.h:838:16: note: argument 2 of ‘readlink’ must be non-null
    #  167|   	target = xmalloc(sb.st_size + 1);
    #  168|
    #  169|-> 	ssz = readlink(s, target, sb.st_size + 1);
    #  170|   	if (ssz < 0) {
    #  171|   		warn(_("%s: readlink failed"), s);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def663]
    util-linux-2.42.start/misc-utils/uuidd.c: scope_hint: In function ‘call_daemon’
    util-linux-2.42.start/misc-utils/uuidd.c:161:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
    util-linux-2.42.start/misc-utils/uuidd.c:51: included_from: Included from here.
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    #  159|   	xstrncpy(srv_addr.sun_path, socket_path, sizeof(srv_addr.sun_path));
    #  160|
    #  161|-> 	if (connect(s, (const struct sockaddr *) &srv_addr,
    #  162|   		    sizeof(struct sockaddr_un)) < 0) {
    #  163|   		if (err_context)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def664]
    util-linux-2.42.start/misc-utils/uuidparse.c: scope_hint: In function ‘fill_table_row’
    util-linux-2.42.start/misc-utils/uuidparse.c:253:28: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/misc-utils/uuidparse.c:54: included_from: Included from here.
    util-linux-2.42.start/misc-utils/uuidparse.c:57: included_from: Included from here.
    #  251|   			abort();
    #  252|   		}
    #  253|-> 		if (str && scols_line_refer_data(ln, i, str))
    #  254|   			errx(EXIT_FAILURE, _("failed to add output data"));
    #  255|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def665]
    util-linux-2.42.start/misc-utils/wipefs.c: scope_hint: In function ‘fill_table_row’
    util-linux-2.42.start/misc-utils/wipefs.c:241:28: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/misc-utils/wipefs.c:44: included_from: Included from here.
    #  239|   		}
    #  240|
    #  241|-> 		if (str && scols_line_refer_data(ln, i, str))
    #  242|   			errx(EXIT_FAILURE, _("failed to add output data"));
    #  243|   	}

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def666]
    util-linux-2.42.start/misc-utils/wipefs.c: scope_hint: In function ‘get_desc_for_probe’
    util-linux-2.42.start/misc-utils/wipefs.c:350:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(*len)’ where non-null expected
    util-linux-2.42.start/misc-utils/wipefs.c:29: included_from: Included from here.
    /usr/include/string.h:47:14: note: argument 1 of ‘memcpy’ must be non-null
    #  348|
    #  349|   	wp->magic = xmalloc(*len);
    #  350|-> 	memcpy(wp->magic, mag, *len);
    #  351|   	wp->len = *len;
    #  352|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def667]
    util-linux-2.42.start/misc-utils/wipefs.c:353:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  351|   	wp->len = *len;
    #  352|
    #  353|-> 	if (blkid_probe_lookup_value(pr, "LABEL", &p, NULL) == 0)
    #  354|   		wp->label = xstrdup(p);
    #  355|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def668]
    util-linux-2.42.start/misc-utils/wipefs.c:356:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  354|   		wp->label = xstrdup(p);
    #  355|
    #  356|-> 	if (blkid_probe_lookup_value(pr, "UUID", &p, NULL) == 0)
    #  357|   		wp->uuid = xstrdup(p);
    #  358|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def669]
    util-linux-2.42.start/misc-utils/wipefs.c: scope_hint: In function ‘new_probe’
    util-linux-2.42.start/misc-utils/wipefs.c:375:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(devname,  mode | 2048)’
    #  373|   			goto error;
    #  374|
    #  375|-> 		pr = blkid_new_probe();
    #  376|   		if (!pr || blkid_probe_set_device(pr, fd, 0, 0) != 0) {
    #  377|   			close(fd);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def670]
    util-linux-2.42.start/misc-utils/wipefs.c:376:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(devname,  mode | 2048)’
    #  374|
    #  375|   		pr = blkid_new_probe();
    #  376|-> 		if (!pr || blkid_probe_set_device(pr, fd, 0, 0) != 0) {
    #  377|   			close(fd);
    #  378|   			goto error;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def671]
    util-linux-2.42.start/misc-utils/wipefs.c:377:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(devname,  mode | 2048)’
    #  375|   		pr = blkid_new_probe();
    #  376|   		if (!pr || blkid_probe_set_device(pr, fd, 0, 0) != 0) {
    #  377|-> 			close(fd);
    #  378|   			goto error;
    #  379|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def672]
    util-linux-2.42.start/schedutils/taskset.c: scope_hint: In function ‘main’
    util-linux-2.42.start/schedutils/taskset.c:243:19: warning[-Wanalyzer-malloc-leak]: leak of ‘ts.buf’
    util-linux-2.42.start/schedutils/taskset.c:33: included_from: Included from here.
    #  241|   	 * cpumask_t if the user's mask is shorter.
    #  242|   	 */
    #  243|-> 	new_set = cpuset_alloc(ncpus, &new_setsize, NULL);
    #  244|   	if (!new_set)
    #  245|   		err(EXIT_FAILURE, _("cpuset_alloc failed"));

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def673]
    util-linux-2.42.start/sys-utils/blkpr.c: scope_hint: In function ‘xreallocarray’
    util-linux-2.42.start/sys-utils/blkpr.c:200:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 2)’
    util-linux-2.42.start/sys-utils/blkpr.c:35: included_from: Included from here.
    #  198|   	do {
    #  199|   		num_keys *= 2;
    #  200|-> 		keys = xreallocarray(keys, num_keys, sizeof(keys[0]));
    #  201|
    #  202|   		pr_rk.keys_ptr = (uintptr_t)keys;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def674]
    util-linux-2.42.start/sys-utils/blkpr.c: scope_hint: In function ‘do_pr’
    util-linux-2.42.start/sys-utils/blkpr.c:272:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 2)’
    #  270|   		err(EXIT_FAILURE, _("cannot open %s"), path);
    #  271|
    #  272|-> 	switch (op) {
    #  273|   	case IOC_PR_REGISTER:
    #  274|   		pr_reg.old_key = oldkey;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def675]
    util-linux-2.42.start/sys-utils/eject.c: scope_hint: In function ‘read_speed’
    util-linux-2.42.start/sys-utils/eject.c:504:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/sys/dev/cdrom/info", "r")’
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/unistd.h:25: included_from: Included from here.
    util-linux-2.42.start/sys-utils/eject.c:21: included_from: Included from here.
    #  502|   	name = strrchr(devname, '/') + 1;
    #  503|
    #  504|-> 	while (name && !feof(f)) {
    #  505|   		char line[512];
    #  506|   		char *str;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def676]
    util-linux-2.42.start/sys-utils/eject.c:504:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sys/dev/cdrom/info", "r")’
    #  502|   	name = strrchr(devname, '/') + 1;
    #  503|
    #  504|-> 	while (name && !feof(f)) {
    #  505|   		char line[512];
    #  506|   		char *str;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def677]
    util-linux-2.42.start/sys-utils/eject.c:508:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/sys/dev/cdrom/info", "r")’
    #  506|   		char *str;
    #  507|
    #  508|-> 		if (!fgets(line, sizeof(line), f))
    #  509|   			break;
    #  510|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def678]
    util-linux-2.42.start/sys-utils/eject.c:508:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sys/dev/cdrom/info", "r")’
    #  506|   		char *str;
    #  507|
    #  508|-> 		if (!fgets(line, sizeof(line), f))
    #  509|   			break;
    #  510|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def679]
    util-linux-2.42.start/sys-utils/eject.c:519:44: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/sys/dev/cdrom/info", "r")’
    #  517|   					drive_number++;
    #  518|   					str = strtok(NULL, "\t ");
    #  519|-> 					if (!str)
    #  520|   						errx(EXIT_FAILURE,
    #  521|   						     _("%s: failed to finding CD-ROM name"),

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def680]
    util-linux-2.42.start/sys-utils/eject.c:519:44: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sys/dev/cdrom/info", "r")’
    #  517|   					drive_number++;
    #  518|   					str = strtok(NULL, "\t ");
    #  519|-> 					if (!str)
    #  520|   						errx(EXIT_FAILURE,
    #  521|   						     _("%s: failed to finding CD-ROM name"),

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def681]
    util-linux-2.42.start/sys-utils/eject.c: scope_hint: In function ‘device_get_mountpoint’
    util-linux-2.42.start/sys-utils/eject.c:712:29: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
    util-linux-2.42.start/sys-utils/eject.c:56: included_from: Included from here.
    util-linux-2.42.start/sys-utils/eject.c:52: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/sys-utils/eject.c:48: included_from: Included from here.
    #  710|   		struct libmnt_cache *cache;
    #  711|
    #  712|-> 		ctl->mtab = mnt_new_table();
    #  713|   		if (!ctl->mtab)
    #  714|   			err(EXIT_FAILURE, _("failed to initialize libmount table"));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def682]
    util-linux-2.42.start/sys-utils/eject.c:714:25: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/include/closestream.h:15: included_from: Included from here.
    util-linux-2.42.start/sys-utils/eject.c:714:43: note: in expansion of macro ‘_’
    #  712|   		ctl->mtab = mnt_new_table();
    #  713|   		if (!ctl->mtab)
    #  714|-> 			err(EXIT_FAILURE, _("failed to initialize libmount table"));
    #  715|
    #  716|   		cache = mnt_new_cache();

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def683]
    util-linux-2.42.start/sys-utils/eject.c:716:25: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
    #  714|   			err(EXIT_FAILURE, _("failed to initialize libmount table"));
    #  715|
    #  716|-> 		cache = mnt_new_cache();
    #  717|   		mnt_table_set_cache(ctl->mtab, cache);
    #  718|   		mnt_unref_cache(cache);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def684]
    util-linux-2.42.start/sys-utils/eject.c:717:17: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
    #  715|
    #  716|   		cache = mnt_new_cache();
    #  717|-> 		mnt_table_set_cache(ctl->mtab, cache);
    #  718|   		mnt_unref_cache(cache);
    #  719|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def685]
    util-linux-2.42.start/sys-utils/eject.c:718:17: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
    #  716|   		cache = mnt_new_cache();
    #  717|   		mnt_table_set_cache(ctl->mtab, cache);
    #  718|-> 		mnt_unref_cache(cache);
    #  719|
    #  720|   		if (ctl->p_option)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def686]
    util-linux-2.42.start/sys-utils/eject.c:721:30: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
    #  719|
    #  720|   		if (ctl->p_option)
    #  721|-> 			rc = mnt_table_parse_file(ctl->mtab, _PATH_PROC_MOUNTINFO);
    #  722|   		else
    #  723|   			rc = mnt_table_parse_mtab(ctl->mtab, NULL);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def687]
    util-linux-2.42.start/sys-utils/eject.c:723:30: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
    #  721|   			rc = mnt_table_parse_file(ctl->mtab, _PATH_PROC_MOUNTINFO);
    #  722|   		else
    #  723|-> 			rc = mnt_table_parse_mtab(ctl->mtab, NULL);
    #  724|   		if (rc)
    #  725|   			err(EXIT_FAILURE, _("failed to parse mount table"));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def688]
    util-linux-2.42.start/sys-utils/eject.c:725:25: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
    util-linux-2.42.start/sys-utils/eject.c:725:43: note: in expansion of macro ‘_’
    #  723|   			rc = mnt_table_parse_mtab(ctl->mtab, NULL);
    #  724|   		if (rc)
    #  725|-> 			err(EXIT_FAILURE, _("failed to parse mount table"));
    #  726|   	}
    #  727|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def689]
    util-linux-2.42.start/sys-utils/flock.c: scope_hint: In function ‘main’
    util-linux-2.42.start/sys-utils/flock.c:412:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
    util-linux-2.42.start/sys-utils/flock.c:28: included_from: Included from here.
    #  410|   			/* Other errors */
    #  411|   			if (filename)
    #  412|-> 				warn("%s", filename);
    #  413|   			else
    #  414|   				warn("%d", fd);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def690]
    util-linux-2.42.start/sys-utils/fstrim.c: scope_hint: In function ‘fstrim_filesystem’
    util-linux-2.42.start/sys-utils/fstrim.c:111:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(rpath, 0)’
    #  109|   	}
    #  110|
    #  111|-> 	if (ctl->dryrun) {
    #  112|   		if (devname)
    #  113|   			printf(_("%s: 0 B (dry run) trimmed on %s\n"), path, devname);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def691]
    util-linux-2.42.start/sys-utils/fstrim.c: scope_hint: In function ‘fstrim_all’
    util-linux-2.42.start/sys-utils/fstrim.c:432:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(tabs)’
    util-linux-2.42.start/sys-utils/fstrim.c:42: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h:18: included_from: Included from here.
    #  430|   	int rc = MNT_EX_FAIL;
    #  431|
    #  432|-> 	mnt_init_debug(0);
    #  433|   	ul_path_init_debug();
    #  434|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def692]
    util-linux-2.42.start/sys-utils/fstrim.c:433:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(tabs)’
    #  431|
    #  432|   	mnt_init_debug(0);
    #  433|-> 	ul_path_init_debug();
    #  434|
    #  435|   	for (file = strtok(list, ":"); file; file = strtok(NULL, ":")) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def693]
    util-linux-2.42.start/sys-utils/fstrim.c:37: included_from: Included from here.
    util-linux-2.42.start/sys-utils/fstrim.c: scope_hint: In function ‘fstrim_all_from_file’
    util-linux-2.42.start/sys-utils/fstrim.c:438:55: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(tabs)’
    #  436|   		struct stat st;
    #  437|
    #  438|-> 		if (stat(file, &st) < 0 || !S_ISREG(st.st_mode))
    #  439|   			continue;
    #  440|

    Error: GCC_ANALYZER_WARNING (CWE-457): [#def694]
    util-linux-2.42.start/sys-utils/hwclock-parse-date.c: scope_hint: In function ‘yyparse’
    util-linux-2.42.start/sys-utils/hwclock-parse-date.c:1576:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(__time_t *)<unknown>’
    util-linux-2.42.start/sys-utils/hwclock-parse-date.y: scope_hint: In function ‘yyparse’
    # 1574|        unconditionally makes the parser a bit smaller, and it avoids a
    # 1575|        GCC warning that YYVAL may be used uninitialized.  */
    # 1576|->   yyval = yyvsp[1-yylen];
    # 1577|
    # 1578|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def695]
    util-linux-2.42.start/sys-utils/hwclock-rtc.c:103:24: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(opt0)’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c:31: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/include/strutils.h:19: included_from: Included from here.
    util-linux-2.42.start/sys-utils/hwclock-rtc.c:30: included_from: Included from here.
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    #  101|   	size_t i;
    #  102|
    #  103|-> 	if (rtc_dev_fd != -1)
    #  104|   		return rtc_dev_fd;
    #  105|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def696]
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c:437:21: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(opt0)’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    #  435|   		return 1;
    #  436|
    #  437|-> 	while (param->name) {
    #  438|   		if (!strcmp(alias, param->name)) {
    #  439|   			*value = param->id;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def697]
    util-linux-2.42.start/sys-utils/hwclock-rtc.c:451:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(opt0)’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    #  449|   static int strtoku64(const char *str, __u64 *num, int base)
    #  450|   {
    #  451|-> 	return ul_strtou64(str, (uint64_t *) num, base);
    #  452|   }
    #  453|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def698]
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c:509:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(opt0)’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c:509:23: note: in expansion of macro ‘_’
    #  507|   	if (resolve_rtc_param_alias(tok, &param.param) != 0
    #  508|   	    && strtoku64(tok, &param.param, 0) != 0) {
    #  509|-> 		warnx(_("could not convert parameter name to number"));
    #  510|   		goto done;
    #  511|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def699]
    util-linux-2.42.start/sys-utils/hwclock-rtc.c:516:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(opt0)’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c:516:23: note: in expansion of macro ‘_’
    #  514|   	tok = strtok(NULL, "=");
    #  515|   	if (!tok) {
    #  516|-> 		warnx(_("expected <param>=<value>"));
    #  517|   		goto done;
    #  518|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def700]
    util-linux-2.42.start/sys-utils/hwclock-rtc.c:520:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(opt0)’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c: scope_hint: In function ‘set_param_rtc’
    util-linux-2.42.start/sys-utils/hwclock-rtc.c:520:23: note: in expansion of macro ‘_’
    #  518|   	}
    #  519|   	if (strtoku64(tok, &param.uvalue, 0) != 0) {
    #  520|-> 		warnx(_("could not convert parameter value to number"));
    #  521|   		goto done;
    #  522|   	}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def701]
    util-linux-2.42.start/sys-utils/ipcutils.c: scope_hint: In function ‘ipc_shm_get_info’
    util-linux-2.42.start/sys-utils/ipcutils.c:153:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/sysvipc/shm", "r")’
    #  151|   		goto shm_fallback;
    #  152|
    #  153|-> 	while (fgetc(f) != '\n');		/* skip header */
    #  154|
    #  155|   	while (fgets(buf, sizeof(buf), f) != NULL) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def702]
    util-linux-2.42.start/sys-utils/ipcutils.c:153:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sysvipc/shm", "r")’
    #  151|   		goto shm_fallback;
    #  152|
    #  153|-> 	while (fgetc(f) != '\n');		/* skip header */
    #  154|
    #  155|   	while (fgets(buf, sizeof(buf), f) != NULL) {

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def703]
    util-linux-2.42.start/sys-utils/ipcutils.c: scope_hint: In function ‘xcalloc’
    util-linux-2.42.start/sys-utils/ipcutils.c:159:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/sysvipc/shm", "r")’
    #  157|   		p->shm_rss = 0xdead;
    #  158|   		p->shm_swp = 0xdead;
    #  159|-> 		if (sscanf(buf,
    #  160|   			  "%d %d  %o %"SCNu64 " %u %u  "
    #  161|   			  "%"SCNu64 " %u %u %u %u %"SCNi64 " %"SCNi64 " %"SCNi64

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def704]
    util-linux-2.42.start/sys-utils/ipcutils.c:159:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sysvipc/shm", "r")’
    #  157|   		p->shm_rss = 0xdead;
    #  158|   		p->shm_swp = 0xdead;
    #  159|-> 		if (sscanf(buf,
    #  160|   			  "%d %d  %o %"SCNu64 " %u %u  "
    #  161|   			  "%"SCNu64 " %u %u %u %u %"SCNi64 " %"SCNi64 " %"SCNi64

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def705]
    util-linux-2.42.start/sys-utils/ipcutils.c: scope_hint: In function ‘ipc_sem_get_info’
    util-linux-2.42.start/sys-utils/ipcutils.c:375:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/sysvipc/sem", "r")’
    #  373|   		goto sem_fallback;
    #  374|
    #  375|-> 	while (fgetc(f) != '\n') ;	/* skip header */
    #  376|
    #  377|   	while (feof(f) == 0) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def706]
    util-linux-2.42.start/sys-utils/ipcutils.c:375:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sysvipc/sem", "r")’
    #  373|   		goto sem_fallback;
    #  374|
    #  375|-> 	while (fgetc(f) != '\n') ;	/* skip header */
    #  376|
    #  377|   	while (feof(f) == 0) {

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def707]
    util-linux-2.42.start/sys-utils/ipcutils.c: scope_hint: In function ‘ipc_msg_get_info’
    util-linux-2.42.start/sys-utils/ipcutils.c:562:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/sysvipc/msg", "r")’
    #  560|   		goto msg_fallback;
    #  561|
    #  562|-> 	while (fgetc(f) != '\n') ;	/* skip header */
    #  563|
    #  564|   	while (feof(f) == 0) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def708]
    util-linux-2.42.start/sys-utils/ipcutils.c:562:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sysvipc/msg", "r")’
    #  560|   		goto msg_fallback;
    #  561|
    #  562|-> 	while (fgetc(f) != '\n') ;	/* skip header */
    #  563|
    #  564|   	while (feof(f) == 0) {

    Error: GCC_ANALYZER_WARNING (CWE-404): [#def709]
    util-linux-2.42.start/sys-utils/irqtop.c: scope_hint: In function ‘irqtop_printf’
    util-linux-2.42.start/sys-utils/irqtop.c:101:23: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
    #   99|   		ret = vprintf(fmt, args);
    #  100|   	else
    #  101|-> 		ret = vw_printw(ctl->win, fmt, args);
    #  102|   	va_end(args);
    #  103|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def710]
    util-linux-2.42.start/sys-utils/irqtop.c: scope_hint: In function ‘update_screen’
    util-linux-2.42.start/sys-utils/irqtop.c:138:17: warning[-Wanalyzer-malloc-leak]: leak of ‘input_file’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/sys-utils/irqtop.c:48: included_from: Included from here.
    #  136|   		input_file = xstrdup(_PATH_PROC_INTERRUPTS);
    #  137|
    #  138|-> 	table = get_scols_table(input_file, out, ctl->prev_stat, &stat,
    #  139|   				ctl->softirq, ctl->threshold, ctl->setsize,
    #  140|   				ctl->cpuset);

    Error: GCC_ANALYZER_WARNING (CWE-404): [#def711]
    util-linux-2.42.start/sys-utils/ldattach.c: scope_hint: In function ‘dbg’
    util-linux-2.42.start/sys-utils/ldattach.c:141:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
    #  139|   	va_start(args, fmt);
    #  140|   #ifdef HAVE_VWARNX
    #  141|-> 	vwarnx(fmt, args);
    #  142|   #else
    #  143|   	fprintf(stderr, "%s: ", program_invocation_short_name);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def712]
    util-linux-2.42.start/sys-utils/ldattach.c: scope_hint: In function ‘main’
    util-linux-2.42.start/sys-utils/ldattach.c:398:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev, 258)’
    #  396|   	if ((tty_fd = open(dev, O_RDWR | O_NOCTTY)) < 0)
    #  397|   		err(EXIT_FAILURE, _("cannot open %s"), dev);
    #  398|-> 	if (!isatty(tty_fd))
    #  399|   		errx(EXIT_FAILURE, _("%s is not a serial line"), dev);
    #  400|

    Error: CPPCHECK_WARNING (CWE-476): [#def713]
    util-linux-2.42.start/sys-utils/lscpu-arm.c:562: warning[nullPointer]: Possible null pointer dereference: parts
    #  560|   	tb = arm_mktable(cxt, "arm-models");
    #  561|
    #  562|-> 	for (i = 0; parts[i].id != -1; i++) {
    #  563|   		struct libscols_line *ln;
    #  564|   		ln = scols_table_new_line(tb, NULL);

    Error: CPPCHECK_WARNING (CWE-476): [#def714]
    util-linux-2.42.start/sys-utils/lscpu-arm.c:592: warning[nullPointer]: Possible null pointer dereference: parts
    #  590|   		errx(EXIT_FAILURE, _("implementer not found"));
    #  591|
    #  592|-> 	for (i = 0; parts[i].id != -1; i++) {
    #  593|   		if (parts[i].id == model) {
    #  594|   			printf("%s\n", parts[i].name);

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def715]
    util-linux-2.42.start/sys-utils/lscpu-cpu.c: scope_hint: In function ‘lscpu_create_cpus’
    util-linux-2.42.start/sys-utils/lscpu-cpu.c:68:40: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*cxt.cpus’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lscpu.h:17: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lscpu-cpu.c:11: included_from: Included from here.
    /usr/include/sched.h:44: included_from: Included from here.
    util-linux-2.42.start/include/cpuset.h:10: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lscpu.h:19: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lscpu.h:20: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lscpu.h:26: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lscpu.h:37:25: note: in expansion of macro ‘__UL_DBG’
    util-linux-2.42.start/sys-utils/lscpu-cpu.c:27:9: note: in expansion of macro ‘DBG’
    #   66|   	for (n = 0, i = 0; n < (size_t) cxt->maxcpus && i < cxt->npossibles; n++) {
    #   67|   		if (CPU_ISSET_S(n, setsize, cpuset))
    #   68|-> 			cxt->cpus[i++] = lscpu_new_cpu(n);
    #   69|   	}
    #   70|

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def716]
    util-linux-2.42.start/sys-utils/lscpu-cputype.c: scope_hint: In function ‘cpuinfo_parse_cache’
    util-linux-2.42.start/sys-utils/lscpu-cputype.c:537:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
    #  535|   		return 0;
    #  536|   	p = strstr(data, "type=") + 5;
    #  537|-> 	if (!p || !*p)
    #  538|   		return 0;
    #  539|   	type = 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def717]
    util-linux-2.42.start/sys-utils/lscpu-cputype.c:578:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  576|   	cache->number_of_sets = associativity ? (cache->number_of_sets / associativity) : 0;
    #  577|
    #  578|-> 	cache->type = type == 'i' ? xstrdup("Instruction") :
    #  579|   		      type == 'd' ? xstrdup("Data") :
    #  580|   		      type == 'u' ? xstrdup("Unified") : NULL;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def718]
    util-linux-2.42.start/sys-utils/lscpu-virt.c: scope_hint: In function ‘get_mem_chunk’
    util-linux-2.42.start/sys-utils/lscpu-virt.c:81:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
    #   79|   		goto nothing;
    #   80|
    #   81|-> 	close(fd);
    #   82|   	return p;
    #   83|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def719]
    util-linux-2.42.start/sys-utils/lscpu-virt.c:86:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(devmem, 0)’
    #   84|   nothing:
    #   85|   	free(p);
    #   86|-> 	close(fd);
    #   87|   	return NULL;
    #   88|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def720]
    util-linux-2.42.start/sys-utils/lscpu-virt.c: scope_hint: In function ‘lscpu_read_virtualization’
    util-linux-2.42.start/sys-utils/lscpu-virt.c:561:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  559|
    #  560|   	/* We have to detect WSL first. is_vmware_platform() crashes on Windows 10. */
    #  561|-> 	fd = ul_path_fopen(cxt->procfs, "r", "sys/kernel/osrelease");
    #  562|   	if (fd) {
    #  563|   		if (fgets(buf, sizeof(buf), fd) && strstr(buf, "Microsoft")) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def721]
    util-linux-2.42.start/sys-utils/lscpu-virt.c:586:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  584|   			uint32_t features;
    #  585|
    #  586|-> 			if (ul_path_scanf(cxt->rootfs, _PATH_SYS_HYP_FEATURES, "%x", &features) == 1) {
    #  587|   				/* Xen PV domain */
    #  588|   				if (features & XEN_FEATURES_PV_MASK)

    Error: GCC_ANALYZER_WARNING (CWE-404): [#def722]
    util-linux-2.42.start/sys-utils/lscpu.c: scope_hint: In function ‘add_summary_sprint’
    util-linux-2.42.start/sys-utils/lscpu.c:849:23: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
    #  847|
    #  848|   		va_start(args, fmt);
    #  849|-> 		ret = scols_line_vprintf(ln, 1, fmt, args);
    #  850|   		va_end(args);
    #  851|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def723]
    util-linux-2.42.start/sys-utils/lsipc.c: scope_hint: In function ‘do_posix_shm’
    util-linux-2.42.start/sys-utils/lsipc.c:1363:38: warning[-Wanalyzer-malloc-leak]: leak of ‘arg’
    # 1361|   				if (!arg)
    # 1362|   					xasprintf(&arg, "%u", p->cuid);
    # 1363|-> 				rc = scols_line_refer_data(ln, n, arg);
    # 1364|   				break;
    # 1365|   			case COL_PERMS:

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def724]
    util-linux-2.42.start/sys-utils/lsipc.c:1370:41: warning[-Wanalyzer-malloc-leak]: leak of ‘arg’
    # 1368|   				else {
    # 1369|   					arg = xmalloc(11);
    # 1370|-> 					xstrmode(p->mode & 0777, arg);
    # 1371|   				}
    # 1372|   				rc = scols_line_refer_data(ln, n, arg);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def725]
    util-linux-2.42.start/sys-utils/lsipc.c:1380:46: warning[-Wanalyzer-malloc-leak]: leak of ‘arg’
    # 1378|   				arg = get_username(&pw, p->cuid);
    # 1379|   				if (arg)
    # 1380|-> 					rc = scols_line_refer_data(ln, n, arg);
    # 1381|   				break;
    # 1382|   			case COL_CGID:

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def726]
    util-linux-2.42.start/sys-utils/lsipc.c:1388:46: warning[-Wanalyzer-malloc-leak]: leak of ‘arg’
    # 1386|   				arg = get_groupname(&gr, p->cgid);
    # 1387|   				if (arg)
    # 1388|-> 					rc = scols_line_refer_data(ln, n, arg);
    # 1389|   				break;
    # 1390|   			case COL_SIZE:

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def727]
    util-linux-2.42.start/sys-utils/lsipc.c:1400:46: warning[-Wanalyzer-malloc-leak]: leak of ‘make_time((int)*ctl.time_mode, *p.mtime)’
    # 1398|   			case COL_MTIME:
    # 1399|   				if (p->mtime != 0)
    # 1400|-> 					rc = scols_line_refer_data(ln, n,
    # 1401|   						make_time(ctl->time_mode,
    # 1402|   							  (time_t) p->mtime));

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def728]
    util-linux-2.42.start/sys-utils/lsirq.c: scope_hint: In function ‘print_irq_data’
    util-linux-2.42.start/sys-utils/lsirq.c:42:17: warning[-Wanalyzer-malloc-leak]: leak of ‘input_file’
    util-linux-2.42.start/sys-utils/lsirq.c:29: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lsirq.c:31: included_from: Included from here.
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    #   40|   	struct libscols_table *table;
    #   41|
    #   42|-> 	table = get_scols_table(input_file, out, NULL, NULL, softirq, threshold, setsize, cpuset);
    #   43|   	if (!table)
    #   44|   		return -1;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def729]
    util-linux-2.42.start/sys-utils/lsirq.c:46:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_file’
    #   44|   		return -1;
    #   45|
    #   46|-> 	scols_print_table(table);
    #   47|   	scols_unref_table(table);
    #   48|   	return 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def730]
    util-linux-2.42.start/sys-utils/lsirq.c:47:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_file’
    #   45|
    #   46|   	scols_print_table(table);
    #   47|-> 	scols_unref_table(table);
    #   48|   	return 0;
    #   49|   }

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def731]
    util-linux-2.42.start/sys-utils/lsirq.c: scope_hint: In function ‘main’
    util-linux-2.42.start/sys-utils/lsirq.c:191:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_file’
    #  189|   		exit(EXIT_FAILURE);
    #  190|
    #  191|-> 	scols_init_debug(0);
    #  192|
    #  193|   	if (print_irq_data(input_file, &out, softirq, threshold, setsize, cpuset) < 0)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def732]
    util-linux-2.42.start/sys-utils/lsmem.c: scope_hint: In function ‘add_scols_line’
    util-linux-2.42.start/sys-utils/lsmem.c:335:28: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lsmem.c:32: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lsmem.c:31: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/sys-utils/lsmem.c:25: included_from: Included from here.
    #  333|   		}
    #  334|
    #  335|-> 		if (str && scols_line_refer_data(line, i, str) != 0)
    #  336|   			err_oom();
    #  337|   	}

    Error: CPPCHECK_WARNING (CWE-457): [#def733]
    util-linux-2.42.start/sys-utils/mount.c:898: error[legacyUninitvar]: Uninitialized variable: path
    #  896|   				snprintf(path, sizeof(path), "/proc/%i/ns/mnt", pid);
    #  897|
    #  898|-> 			if (mnt_context_set_target_ns(cxt, pid ? path : optarg))
    #  899|   				err(MNT_EX_SYSERR, _("failed to set target namespace to %s"), pid ? path : optarg);
    #  900|   			break;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def734]
    util-linux-2.42.start/sys-utils/nsenter.c: scope_hint: In function ‘open_target_fd’
    util-linux-2.42.start/sys-utils/nsenter.c:178:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*((struct namespace_file (*)[9])n)[preserve_cred].fd’
    util-linux-2.42.start/sys-utils/nsenter.c:46: included_from: Included from here.
    util-linux-2.42.start/sys-utils/nsenter.c:198:41: note: in expansion of macro ‘get_nsfile’
    util-linux-2.42.start/sys-utils/nsenter.c: scope_hint: In function ‘open_target_fd’
    #  176|   	if (*fd < 0)
    #  177|   		err(EXIT_FAILURE, _("cannot open %s"), path);
    #  178|-> }
    #  179|
    #  180|   static void enable_nsfile(struct namespace_file *n, const char *path)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def735]
    util-linux-2.42.start/sys-utils/readprofile.c: scope_hint: In function ‘main’
    util-linux-2.42.start/sys-utils/readprofile.c:231:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&defaultpro, 1)’
    #  229|   		if (fd < 0)
    #  230|   			err(EXIT_FAILURE, "%s", defaultpro);
    #  231|-> 		if (write(fd, &multiplier, to_write) != to_write)
    #  232|   			err(EXIT_FAILURE, _("error writing %s"), defaultpro);
    #  233|   		close(fd);

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def736]
    util-linux-2.42.start/sys-utils/readprofile.c:278:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(len)’
    #  276|   	}
    #  277|
    #  278|-> 	step = buf[0];
    #  279|   	if (optInfo) {
    #  280|   		printf(_("Sampling_step: %u\n"), step);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def737]
    util-linux-2.42.start/sys-utils/readprofile.c:307:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘map’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/sys-utils/readprofile.c:49: included_from: Included from here.
    util-linux-2.42.start/sys-utils/readprofile.c:307:36: note: in expansion of macro ‘_’
    #  305|
    #  306|   	if (!add0)
    #  307|-> 		errx(EXIT_FAILURE, _("can't find \"_stext\" in %s"), mapFile);
    #  308|
    #  309|   	/*

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def738]
    util-linux-2.42.start/sys-utils/readprofile.c:307:17: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
    util-linux-2.42.start/sys-utils/readprofile.c:307:36: note: in expansion of macro ‘_’
    #  305|
    #  306|   	if (!add0)
    #  307|-> 		errx(EXIT_FAILURE, _("can't find \"_stext\" in %s"), mapFile);
    #  308|
    #  309|   	/*

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def739]
    util-linux-2.42.start/sys-utils/readprofile.c:317:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘map’
    #  315|
    #  316|   		if (sscanf(mapline, "%llx %7[^\n ] %127[^\n ]", &next_add, mode, next_name) != 3)
    #  317|-> 			errx(EXIT_FAILURE, _("%s(%i): wrong map line"), mapFile,
    #  318|   			     maplineno);
    #  319|   		header_printed = 0;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def740]
    util-linux-2.42.start/sys-utils/readprofile.c:317:25: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
    #  315|
    #  316|   		if (sscanf(mapline, "%llx %7[^\n ] %127[^\n ]", &next_add, mode, next_name) != 3)
    #  317|-> 			errx(EXIT_FAILURE, _("%s(%i): wrong map line"), mapFile,
    #  318|   			     maplineno);
    #  319|   		header_printed = 0;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def741]
    util-linux-2.42.start/sys-utils/readprofile.c:339:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘map’
    util-linux-2.42.start/sys-utils/readprofile.c:340:30: note: in expansion of macro ‘_’
    #  337|
    #  338|   		if (indx >= len / sizeof(*buf))
    #  339|-> 			errx(EXIT_FAILURE,
    #  340|   			     _("profile address out of range. Wrong map file?"));
    #  341|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def742]
    util-linux-2.42.start/sys-utils/readprofile.c:339:25: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
    util-linux-2.42.start/sys-utils/readprofile.c:340:30: note: in expansion of macro ‘_’
    #  337|
    #  338|   		if (indx >= len / sizeof(*buf))
    #  339|-> 			errx(EXIT_FAILURE,
    #  340|   			     _("profile address out of range. Wrong map file?"));
    #  341|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def743]
    util-linux-2.42.start/sys-utils/rfkill.c: scope_hint: In function ‘rfkill_open’
    util-linux-2.42.start/sys-utils/rfkill.c:200:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/rfkill", <unknown>)’
    util-linux-2.42.start/sys-utils/rfkill.c:38: included_from: Included from here.
    util-linux-2.42.start/include/strutils.h:44:68: note: in definition of macro ‘strtou32_or_err’
    util-linux-2.42.start/sys-utils/rfkill.c:329:48: note: in expansion of macro ‘_’
    #  198|   	}
    #  199|
    #  200|-> 	if (nonblock && fcntl(fd, F_SETFL, O_NONBLOCK) < 0) {
    #  201|   		warn(_("cannot set non-blocking %s"), _PATH_DEV_RFKILL);
    #  202|   		close(fd);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def744]
    util-linux-2.42.start/sys-utils/rfkill.c: scope_hint: In function ‘rfkill_event’
    util-linux-2.42.start/sys-utils/rfkill.c:258:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfkill_open(1, 0)’
    util-linux-2.42.start/sys-utils/rfkill.c:36: included_from: Included from here.
    #  256|   		int rc = 1;	/* recover-able error */
    #  257|
    #  258|-> 		n = poll(p, ARRAY_SIZE(p), -1);
    #  259|   		if (n < 0) {
    #  260|   			warn(_("failed to poll %s"), _PATH_DEV_RFKILL);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def745]
    util-linux-2.42.start/sys-utils/rfkill.c: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/sys-utils/rfkill.c:450:71: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(get_sys_attr(event.idx, "name"))’
    util-linux-2.42.start/sys-utils/rfkill.c: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/sys-utils/rfkill.c: scope_hint: In function ‘xstrdup’
    util-linux-2.42.start/sys-utils/rfkill.c:41: included_from: Included from here.
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/sys-utils/rfkill.c: scope_hint: In function ‘xstrdup’
    #  448|   		if (rc == 0 && event_match(&event, &id)) {
    #  449|   			char *name = xstrdup(get_sys_attr(event.idx, "name")),
    #  450|-> 			     *type = xstrdup(rfkill_type_to_desc(event.type));
    #  451|
    #  452|   			if (!type)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def746]
    util-linux-2.42.start/sys-utils/rtcwake.c: scope_hint: In function ‘get_sys_power_states’
    util-linux-2.42.start/sys-utils/rtcwake.c:270:39: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/sys/power/state", 0)’
    #  268|   			goto nothing;
    #  269|   		buf[ss] = '\0';
    #  270|-> 		ctl->possible_modes = ul_strv_split(buf, " \n");
    #  271|   		close(fd);
    #  272|   	}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def747]
    util-linux-2.42.start/sys-utils/rtcwake.c:271:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/sys/power/state", 0)’
    #  269|   		buf[ss] = '\0';
    #  270|   		ctl->possible_modes = ul_strv_split(buf, " \n");
    #  271|-> 		close(fd);
    #  272|   	}
    #  273|   	return ctl->possible_modes;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def748]
    util-linux-2.42.start/sys-utils/rtcwake.c:276:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/sys/power/state", 0)’
    #  274|   nothing:
    #  275|   	if (fd >= 0)
    #  276|-> 		close(fd);
    #  277|   	return NULL;
    #  278|   }

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def749]
    util-linux-2.42.start/sys-utils/rtcwake.c: scope_hint: In function ‘suspend_system’
    util-linux-2.42.start/sys-utils/rtcwake.c:305:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/sys/power/state", "w")’
    #  303|   	}
    #  304|
    #  305|-> 	if (!ctl->dryrun) {
    #  306|   		if (isatty(STDIN_FILENO))
    #  307|   			wait_stdin(ctl);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def750]
    util-linux-2.42.start/sys-utils/rtcwake.c:305:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/sys/power/state", "w")’
    #  303|   	}
    #  304|
    #  305|-> 	if (!ctl->dryrun) {
    #  306|   		if (isatty(STDIN_FILENO))
    #  307|   			wait_stdin(ctl);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def751]
    util-linux-2.42.start/sys-utils/rtcwake.c: scope_hint: In function ‘read_clock_mode’
    util-linux-2.42.start/sys-utils/rtcwake.c:325:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*ctl.adjfile, "r")’
    #  323|   		return -1;
    #  324|   	/* skip two lines */
    #  325|-> 	if (skip_fline(fp) || skip_fline(fp)) {
    #  326|   		fclose(fp);
    #  327|   		return -1;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def752]
    util-linux-2.42.start/sys-utils/rtcwake.c:325:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*ctl.adjfile, "r")’
    #  323|   		return -1;
    #  324|   	/* skip two lines */
    #  325|-> 	if (skip_fline(fp) || skip_fline(fp)) {
    #  326|   		fclose(fp);
    #  327|   		return -1;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def753]
    util-linux-2.42.start/sys-utils/rtcwake.c: scope_hint: In function ‘open_dev_rtc’
    util-linux-2.42.start/sys-utils/rtcwake.c:409:14: warning[-Wanalyzer-malloc-leak]: leak of ‘devpath’
    util-linux-2.42.start/sys-utils/rtcwake.c:53: included_from: Included from here.
    util-linux-2.42.start/sys-utils/rtcwake.c:56: included_from: Included from here.
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/sys-utils/rtcwake.c:51: included_from: Included from here.
    #  407|   	else
    #  408|   		xasprintf(&devpath, "/dev/%s", devname);
    #  409|-> 	fd = open(devpath, O_RDONLY | O_CLOEXEC);
    #  410|   	if (fd < 0)
    #  411|   		err(EXIT_FAILURE, _("%s: unable to find device"), devpath);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def754]
    util-linux-2.42.start/sys-utils/rtcwake.c:411:17: warning[-Wanalyzer-malloc-leak]: leak of ‘devpath’
    #  409|   	fd = open(devpath, O_RDONLY | O_CLOEXEC);
    #  410|   	if (fd < 0)
    #  411|-> 		err(EXIT_FAILURE, _("%s: unable to find device"), devpath);
    #  412|   	free(devpath);
    #  413|   	return fd;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def755]
    util-linux-2.42.start/sys-utils/setpgid.c: scope_hint: In function ‘main’
    util-linux-2.42.start/sys-utils/setpgid.c:76:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524288)’
    #   74|   		fd = open("/dev/tty", O_RDONLY|O_CLOEXEC);
    #   75|   		if (fd >= 0) {
    #   76|-> 			if (sigemptyset(&s) < 0)
    #   77|   				err(EXIT_FAILURE, _("sigemptyset failed"));
    #   78|   			if (sigaddset(&s, SIGTTOU) < 0)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def756]
    util-linux-2.42.start/sys-utils/setpgid.c:78:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524288)’
    #   76|   			if (sigemptyset(&s) < 0)
    #   77|   				err(EXIT_FAILURE, _("sigemptyset failed"));
    #   78|-> 			if (sigaddset(&s, SIGTTOU) < 0)
    #   79|   				err(EXIT_FAILURE, _("sigaddset failed"));
    #   80|   			if (sigprocmask(SIG_BLOCK, &s, &old) < 0)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def757]
    util-linux-2.42.start/sys-utils/setpgid.c:80:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524288)’
    #   78|   			if (sigaddset(&s, SIGTTOU) < 0)
    #   79|   				err(EXIT_FAILURE, _("sigaddset failed"));
    #   80|-> 			if (sigprocmask(SIG_BLOCK, &s, &old) < 0)
    #   81|   				err(EXIT_FAILURE, _("sigprocmask failed"));
    #   82|   			if (tcsetpgrp(fd, getpgid(0)) < 0)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def758]
    util-linux-2.42.start/sys-utils/setpriv-landlock.c: scope_hint: In function ‘parse_landlock_fs_access’
    util-linux-2.42.start/sys-utils/setpriv-landlock.c:104:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrndup(ul_startswith(str, "path-beneath:"), (long unsigned int)(path - <unknown>))’
    #  102|
    #  103|   	/* without argument, match all */
    #  104|-> 	if (list[0] == '\0') {
    #  105|   		for (i = 0; i < ARRAY_SIZE(landlock_access_fs); i++)
    #  106|   			r |= landlock_access_fs[i].value;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def759]
    util-linux-2.42.start/sys-utils/setpriv.c: scope_hint: In function ‘cap_update’
    util-linux-2.42.start/sys-utils/setpriv.c:522:32: warning[-Wanalyzer-malloc-leak]: leak of ‘my_caps’
    #  520|   		case CAP_TYPE_INHERITABLE:
    #  521|   		case CAP_TYPE_PERMITTED:
    #  522|-> 			return capng_update(action, (capng_type_t) type, cap);
    #  523|   		case CAP_TYPE_AMBIENT:
    #  524|   		{

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def760]
    util-linux-2.42.start/sys-utils/setpriv.c:537:25: warning[-Wanalyzer-malloc-leak]: leak of ‘my_caps’
    #  535|   		}
    #  536|   		default:
    #  537|-> 			errx(EXIT_FAILURE, _("unsupported capability type"));
    #  538|   			return -1;
    #  539|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def761]
    util-linux-2.42.start/sys-utils/setpriv.c: scope_hint: In function ‘do_caps’
    util-linux-2.42.start/sys-utils/setpriv.c:555:25: warning[-Wanalyzer-malloc-leak]: leak of ‘my_caps’
    #  553|   			action = CAPNG_DROP;
    #  554|   		else
    #  555|-> 			errx(EXIT_FAILURE, _("bad capability string"));
    #  556|
    #  557|   		if (!strcmp(c + 1, "all")) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def762]
    util-linux-2.42.start/sys-utils/setpriv.c:561:42: warning[-Wanalyzer-malloc-leak]: leak of ‘my_caps’
    #  559|   			/* We can trust the return value from cap_last_cap(),
    #  560|   			 * so use that directly. */
    #  561|-> 			for (i = 0; i <= cap_last_cap(); i++)
    #  562|   				cap_update(action, type, i);
    #  563|   		} else {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def763]
    util-linux-2.42.start/sys-utils/setpriv.c:564:35: warning[-Wanalyzer-malloc-leak]: leak of ‘my_caps’
    #  562|   				cap_update(action, type, i);
    #  563|   		} else {
    #  564|-> 			int cap = capng_name_to_capability(c + 1);
    #  565|   			if (0 <= cap)
    #  566|   				cap_update(action, type, cap);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def764]
    util-linux-2.42.start/sys-utils/setpriv.c:568:51: warning[-Wanalyzer-malloc-leak]: leak of ‘my_caps’
    #  566|   				cap_update(action, type, cap);
    #  567|   			else if (sscanf(c + 1, "cap_%d", &cap) == 1
    #  568|-> 			    && 0 <= cap && cap <= cap_last_cap())
    #  569|   				cap_update(action, type, cap);
    #  570|   			else

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def765]
    util-linux-2.42.start/sys-utils/setpriv.c:571:33: warning[-Wanalyzer-malloc-leak]: leak of ‘my_caps’
    #  569|   				cap_update(action, type, cap);
    #  570|   			else
    #  571|-> 				errx(EXIT_FAILURE,
    #  572|   				     _("unknown capability \"%s\""), c + 1);
    #  573|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def766]
    util-linux-2.42.start/sys-utils/setpriv.c: scope_hint: In function ‘parse_securebits’
    util-linux-2.42.start/sys-utils/setpriv.c:588:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/include/closestream.h:15: included_from: Included from here.
    util-linux-2.42.start/sys-utils/setpriv.c:38: included_from: Included from here.
    util-linux-2.42.start/sys-utils/setpriv.c:588:43: note: in expansion of macro ‘_’
    #  586|   	opts->securebits = prctl(PR_GET_SECUREBITS, 0, 0, 0, 0);
    #  587|   	if (opts->securebits < 0)
    #  588|-> 		err(SETPRIV_EXIT_PRIVERR, _("getting process secure bits failed"));
    #  589|
    #  590|   	if (opts->securebits & ~(int)(SECBIT_NOROOT |

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def767]
    util-linux-2.42.start/sys-utils/setpriv.c:596:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
    util-linux-2.42.start/sys-utils/setpriv.c:597:22: note: in expansion of macro ‘_’
    #  594|   				      SECBIT_KEEP_CAPS |
    #  595|   				      SECBIT_KEEP_CAPS_LOCKED))
    #  596|-> 		errx(SETPRIV_EXIT_PRIVERR,
    #  597|   		     _("unrecognized securebit set -- refusing to adjust"));
    #  598|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def768]
    util-linux-2.42.start/sys-utils/setpriv.c:601:25: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
    #  599|   	while ((c = strsep(&buf, ","))) {
    #  600|   		if (*c != '+' && *c != '-')
    #  601|-> 			errx(EXIT_FAILURE, _("bad securebits string"));
    #  602|
    #  603|   		if (!strcmp(c + 1, "all")) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def769]
    util-linux-2.42.start/sys-utils/setpriv.c:607:33: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
    #  605|   				opts->securebits = 0;
    #  606|   			else
    #  607|-> 				errx(EXIT_FAILURE,
    #  608|   				     _("+all securebits is not allowed"));
    #  609|   		} else {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def770]
    util-linux-2.42.start/sys-utils/setpriv.c:620:33: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
    #  618|   				bit = SECBIT_NO_SETUID_FIXUP_LOCKED;
    #  619|   			else if (!strcmp(c + 1, "keep_caps"))
    #  620|-> 				errx(EXIT_FAILURE,
    #  621|   				     _("adjusting keep_caps does not make sense"));
    #  622|   			else if (!strcmp(c + 1, "keep_caps_locked"))

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def771]
    util-linux-2.42.start/sys-utils/setpriv.c:625:33: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
    #  623|   				bit = SECBIT_KEEP_CAPS_LOCKED;	/* sigh */
    #  624|   			else
    #  625|-> 				errx(EXIT_FAILURE, _("unrecognized securebit"));
    #  626|
    #  627|   			if (*c == '+')

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def772]
    util-linux-2.42.start/sys-utils/setpriv.c: scope_hint: In function ‘do_selinux_label’
    util-linux-2.42.start/sys-utils/setpriv.c:654:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/attr/exec", 2)’
    #  652|   	len = strlen(label);
    #  653|   	errno = 0;
    #  654|-> 	if (write(fd, label, len) != (ssize_t) len)
    #  655|   		err(SETPRIV_EXIT_PRIVERR,
    #  656|   		    _("write failed: %s"), _PATH_PROC_ATTR_EXEC);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def773]
    util-linux-2.42.start/sys-utils/setpriv.c:654:35: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/attr/exec", 2)’
    #  652|   	len = strlen(label);
    #  653|   	errno = 0;
    #  654|-> 	if (write(fd, label, len) != (ssize_t) len)
    #  655|   		err(SETPRIV_EXIT_PRIVERR,
    #  656|   		    _("write failed: %s"), _PATH_PROC_ATTR_EXEC);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def774]
    util-linux-2.42.start/sys-utils/setpriv.c: scope_hint: In function ‘get_group’
    util-linux-2.42.start/sys-utils/setpriv.c:767:14: warning[-Wanalyzer-malloc-leak]: leak of ‘groups’
    util-linux-2.42.start/sys-utils/setpriv.c:449:50: note: in expansion of macro ‘_’
    #  765|   	struct group *gr;
    #  766|   	long tmp;
    #  767|-> 	gr = getgrnam(s);
    #  768|   	if (gr)
    #  769|   		return gr->gr_gid;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def775]
    util-linux-2.42.start/sys-utils/swapoff.c: scope_hint: In function ‘resolve_swapfile_tag’
    util-linux-2.42.start/sys-utils/swapoff.c:88:17: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
    util-linux-2.42.start/sys-utils/swapoff.c:24: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/sys-utils/swapoff.c:23: included_from: Included from here.
    #   86|   			path = xstrdup(src);
    #   87|
    #   88|-> 		blkid_free_probe(pr);
    #   89|   		if (path)
    #   90|   			break;

    Error: GCC_ANALYZER_WARNING (CWE-457): [#def776]
    util-linux-2.42.start/sys-utils/swapoff.c:89:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘path’
    #   87|
    #   88|   		blkid_free_probe(pr);
    #   89|-> 		if (path)
    #   90|   			break;
    #   91|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def777]
    util-linux-2.42.start/sys-utils/swapoff.c:93:9: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
    #   91|   	}
    #   92|
    #   93|-> 	mnt_free_iter(itr);
    #   94|   	return path;
    #   95|   }

    Error: CPPCHECK_WARNING (CWE-457): [#def778]
    util-linux-2.42.start/sys-utils/swapoff.c:94: warning[uninitvar]: Uninitialized variable: path
    #   92|
    #   93|   	mnt_free_iter(itr);
    #   94|-> 	return path;
    #   95|   }
    #   96|

    Error: GCC_ANALYZER_WARNING (CWE-457): [#def779]
    util-linux-2.42.start/sys-utils/swapoff.c:95:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘<return-value>’
    #   93|   	mnt_free_iter(itr);
    #   94|   	return path;
    #   95|-> }
    #   96|
    #   97|   static int do_swapoff(const char *orig_special, int quiet, int canonic)

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def780]
    util-linux-2.42.start/sys-utils/switch_root.c: scope_hint: In function ‘switchroot’
    util-linux-2.42.start/sys-utils/switch_root.c:180:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/", 0)’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/sys-utils/switch_root.c:39: included_from: Included from here.
    util-linux-2.42.start/sys-utils/switch_root.c:180:22: note: in expansion of macro ‘_’
    #  178|
    #  179|   	if (mount(newroot, "/", NULL, MS_MOVE, NULL) < 0) {
    #  180|-> 		warn(_("failed to mount moving %s to /"), newroot);
    #  181|   		goto fail;
    #  182|   	}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def781]
    util-linux-2.42.start/sys-utils/switch_root.c:185:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/", 0)’
    util-linux-2.42.start/sys-utils/switch_root.c:185:22: note: in expansion of macro ‘_’
    #  183|
    #  184|   	if (chroot(".")) {
    #  185|-> 		warn(_("failed to change root"));
    #  186|   		goto fail;
    #  187|   	}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def782]
    util-linux-2.42.start/sys-utils/switch_root.c:190:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/", 0)’
    util-linux-2.42.start/sys-utils/switch_root.c:190:22: note: in expansion of macro ‘_’
    #  188|
    #  189|   	if (chdir("/")) {
    #  190|-> 		warn(_("cannot change directory to %s"), "/");
    #  191|   		goto fail;
    #  192|   	}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def783]
    util-linux-2.42.start/sys-utils/switch_root.c:213:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/", 0)’
    #  211|
    #  212|   	default: /* parent */
    #  213|-> 		close(cfd);
    #  214|   		return 0;
    #  215|   	}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def784]
    util-linux-2.42.start/sys-utils/switch_root.c:219:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/", 0)’
    #  217|   fail:
    #  218|   	if (cfd >= 0)
    #  219|-> 		close(cfd);
    #  220|   	return -1;
    #  221|   }

    Error: CPPCHECK_WARNING (CWE-457): [#def785]
    util-linux-2.42.start/sys-utils/umount.c:598: error[legacyUninitvar]: Uninitialized variable: path
    #  596|   				snprintf(path, sizeof(path), "/proc/%i/ns/mnt", pid);
    #  597|
    #  598|-> 			if (mnt_context_set_target_ns(cxt, pid ? path : optarg))
    #  599|   				err(MNT_EX_SYSERR, _("failed to set target namespace to %s"), pid ? path : optarg);
    #  600|   			break;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def786]
    util-linux-2.42.start/sys-utils/unshare.c: scope_hint: In function ‘setgroups_control.part.0’
    util-linux-2.42.start/sys-utils/unshare.c:120:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/setgroups", 1)’
    #  118|   	}
    #  119|
    #  120|-> 	if (write_all(fd, cmd, strlen(cmd)))
    #  121|   		err(EXIT_FAILURE, _("write failed %s"), file);
    #  122|   	close(fd);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def787]
    util-linux-2.42.start/sys-utils/unshare.c:122:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/setgroups", 1)’
    #  120|   	if (write_all(fd, cmd, strlen(cmd)))
    #  121|   		err(EXIT_FAILURE, _("write failed %s"), file);
    #  122|-> 	close(fd);
    #  123|   }
    #  124|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def788]
    util-linux-2.42.start/sys-utils/unshare.c: scope_hint: In function ‘read_subid_range’
    util-linux-2.42.start/sys-utils/unshare.c:412:14: warning[-Wanalyzer-malloc-leak]: leak of ‘usermap’
    /usr/include/features.h:540: included_from: Included from here.
    /usr/include/errno.h:25: included_from: Included from here.
    util-linux-2.42.start/include/xalloc.h:19: included_from: Included from here.
    util-linux-2.42.start/include/strutils.h:56:73: note: in definition of macro ‘strtoul_or_err’
    util-linux-2.42.start/sys-utils/unshare.c:449:47: note: in expansion of macro ‘_’
    #  410|   	struct map_range map = { .inner = -1, .next = NULL };
    #  411|
    #  412|-> 	pw = xgetpwuid(uid, &pwbuf);
    #  413|   	if (!pw)
    #  414|   		errx(EXIT_FAILURE, _("you (user %d) don't exist."), uid);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def789]
    util-linux-2.42.start/sys-utils/unshare.c:414:17: warning[-Wanalyzer-malloc-leak]: leak of ‘usermap’
    util-linux-2.42.start/include/strutils.h:56:73: note: in definition of macro ‘strtoul_or_err’
    util-linux-2.42.start/sys-utils/unshare.c:449:47: note: in expansion of macro ‘_’
    util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
    util-linux-2.42.start/sys-utils/unshare.c:38: included_from: Included from here.
    util-linux-2.42.start/sys-utils/unshare.c:414:36: note: in expansion of macro ‘_’
    #  412|   	pw = xgetpwuid(uid, &pwbuf);
    #  413|   	if (!pw)
    #  414|-> 		errx(EXIT_FAILURE, _("you (user %d) don't exist."), uid);
    #  415|
    #  416|   	idmap = fopen(filename, "r");

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def790]
    util-linux-2.42.start/sys-utils/unshare.c:418:17: warning[-Wanalyzer-malloc-leak]: leak of ‘usermap’
    util-linux-2.42.start/include/strutils.h:56:73: note: in definition of macro ‘strtoul_or_err’
    util-linux-2.42.start/sys-utils/unshare.c:449:47: note: in expansion of macro ‘_’
    util-linux-2.42.start/sys-utils/unshare.c:418:35: note: in expansion of macro ‘_’
    #  416|   	idmap = fopen(filename, "r");
    #  417|   	if (!idmap)
    #  418|-> 		err(EXIT_FAILURE, _("could not open '%s'"), filename);
    #  419|
    #  420|   	/*

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def791]
    util-linux-2.42.start/sys-utils/wdctl.c: scope_hint: In function ‘set_watchdog’
    util-linux-2.42.start/sys-utils/wdctl.c:431:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*wd.devpath, 524289)’
    util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
    util-linux-2.42.start/sys-utils/wdctl.c:37: included_from: Included from here.
    #  429|   		static const char v = 'V';
    #  430|
    #  431|-> 		if (write(fd, &v, 1) >= 0)
    #  432|   			break;
    #  433|   		if (errno != EINTR) {

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def792]
    util-linux-2.42.start/sys-utils/wdctl.c:441:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*wd.devpath, 524289)’
    #  439|   	}
    #  440|
    #  441|-> 	if (ctl->set_timeout) {
    #  442|   		if (ioctl(fd, WDIOC_SETTIMEOUT, &ctl->timeout) != 0) {
    #  443|   			rc += errno;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def793]
    util-linux-2.42.start/sys-utils/zramctl.c: scope_hint: In function ‘status’
    util-linux-2.42.start/sys-utils/zramctl.c:717:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/dev/")’
    util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘status’
    util-linux-2.42.start/sys-utils/zramctl.c: scope_hint: In function ‘status’
    #  715|   		err(EXIT_FAILURE, _("cannot open %s"), _PATH_DEV);
    #  716|
    #  717|-> 	while ((d = readdir(dir))) {
    #  718|   		int n;
    #  719|   		if (sscanf(d->d_name, "zram%d", &n) != 1)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def794]
    util-linux-2.42.start/term-utils/agetty.c: scope_hint: In function ‘issuedir_read’
    util-linux-2.42.start/term-utils/agetty.c:1712:14: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
    # 1710|   	struct dirent **namelist = NULL;
    # 1711|
    # 1712|-> 	dd = open(dirname, O_RDONLY|O_CLOEXEC|O_DIRECTORY);
    # 1713|   	if (dd < 0)
    # 1714|   		return 1;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def795]
    util-linux-2.42.start/term-utils/agetty.c:1716:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dirname, 589824)’
    # 1714|   		return 1;
    # 1715|
    # 1716|-> 	nfiles = scandirat(dd, ".", &namelist, issuedir_filter, versionsort);
    # 1717|   	if (nfiles <= 0)
    # 1718|   		goto done;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def796]
    util-linux-2.42.start/term-utils/agetty.c:1716:18: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
    # 1714|   		return 1;
    # 1715|
    # 1716|-> 	nfiles = scandirat(dd, ".", &namelist, issuedir_filter, versionsort);
    # 1717|   	if (nfiles <= 0)
    # 1718|   		goto done;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def797]
    util-linux-2.42.start/term-utils/agetty.c: scope_hint: In function ‘issuefile_read_stream.part.0’
    util-linux-2.42.start/term-utils/agetty.c:1781:49: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "re")’
    # 1779|   	int c;
    # 1780|
    # 1781|-> 	if (fstat(fileno(f), &st) || !S_ISREG(st.st_mode))
    # 1782|   		return 1;
    # 1783|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def798]
    util-linux-2.42.start/term-utils/agetty.c:1781:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "re")’
    # 1779|   	int c;
    # 1780|
    # 1781|-> 	if (fstat(fileno(f), &st) || !S_ISREG(st.st_mode))
    # 1782|   		return 1;
    # 1783|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def799]
    util-linux-2.42.start/term-utils/agetty.c: scope_hint: In function ‘issuefile_read_stream.part.0’
    util-linux-2.42.start/term-utils/agetty.c:1781:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen_at(open(dirname, 589824), &*d.d_name, 524288, "re")’
    # 1779|   	int c;
    # 1780|
    # 1781|-> 	if (fstat(fileno(f), &st) || !S_ISREG(st.st_mode))
    # 1782|   		return 1;
    # 1783|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def800]
    util-linux-2.42.start/term-utils/agetty.c: scope_hint: In function ‘issuefile_read_stream.part.0’
    util-linux-2.42.start/term-utils/agetty.c:1791:21: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
    # 1789|   	}
    # 1790|
    # 1791|-> 	while ((c = fgetc(f)) != EOF) {
    # 1792|   		if (c == '\\')
    # 1793|   			output_special_char(ie, fgetc(f), op, tp, f);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def801]
    util-linux-2.42.start/term-utils/agetty.c:1793:49: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
    # 1791|   	while ((c = fgetc(f)) != EOF) {
    # 1792|   		if (c == '\\')
    # 1793|-> 			output_special_char(ie, fgetc(f), op, tp, f);
    # 1794|   		else
    # 1795|   			putc(c, ie->output);

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def802]
    util-linux-2.42.start/term-utils/agetty.c:1795:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
    util-linux-2.42.start/term-utils/agetty.c:14: included_from: Included from here.
    /usr/include/stdio.h:616:12: note: argument 2 of ‘putc’ must be non-null
    # 1793|   			output_special_char(ie, fgetc(f), op, tp, f);
    # 1794|   		else
    # 1795|-> 			putc(c, ie->output);
    # 1796|   	}
    # 1797|

    Error: GCC_ANALYZER_WARNING (CWE-404): [#def803]
    util-linux-2.42.start/term-utils/agetty.c: scope_hint: In function ‘dolog’
    util-linux-2.42.start/term-utils/agetty.c:2541:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
    # 2539|   	 * /dev/console, we must prepend the process name ourselves.
    # 2540|   	 */
    # 2541|-> 	openlog("agetty", LOG_PID, LOG_AUTHPRIV);
    # 2542|   	vsyslog(priority, fmt, ap);
    # 2543|   	closelog();

    Error: GCC_ANALYZER_WARNING (CWE-404): [#def804]
    util-linux-2.42.start/term-utils/agetty.c:2542:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
    # 2540|   	 */
    # 2541|   	openlog("agetty", LOG_PID, LOG_AUTHPRIV);
    # 2542|-> 	vsyslog(priority, fmt, ap);
    # 2543|   	closelog();
    # 2544|   #else

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def805]
    util-linux-2.42.start/term-utils/agetty.c: scope_hint: In function ‘dump_iface_all’
    util-linux-2.42.start/term-utils/agetty.c:2735:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
    util-linux-2.42.start/include/netlink.h:28: included_from: Included from here.
    util-linux-2.42.start/include/netaddrq.h:17: included_from: Included from here.
    util-linux-2.42.start/term-utils/agetty.c:51: included_from: Included from here.
    util-linux-2.42.start/include/netaddrq.h:62:46: note: in expansion of macro ‘list_for_each’
    util-linux-2.42.start/term-utils/agetty.c:2987:17: note: in expansion of macro ‘list_for_each_netaddrq_iface’
    util-linux-2.42.start/term-utils/agetty.c:2730:9: note: in expansion of macro ‘list_for_each’
    /usr/include/stdio.h:364:12: note: argument 1 of ‘fprintf’ must be non-null
    # 2733|   		if (first)
    # 2734|   		{
    # 2735|-> 			fprintf(ie->output, "%s: ", ifaceq->ifname);
    # 2736|   			first = false;
    # 2737|   		}

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def806]
    util-linux-2.42.start/term-utils/agetty.c:2747:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
    util-linux-2.42.start/include/netaddrq.h:62:46: note: in expansion of macro ‘list_for_each’
    util-linux-2.42.start/term-utils/agetty.c:2987:17: note: in expansion of macro ‘list_for_each_netaddrq_iface’
    util-linux-2.42.start/term-utils/agetty.c:2730:9: note: in expansion of macro ‘list_for_each’
    util-linux-2.42.start/term-utils/agetty.c:2742:9: note: in expansion of macro ‘list_for_each’
    util-linux-2.42.start/term-utils/agetty.c:2742:9: note: in expansion of macro ‘list_for_each’
    /usr/include/stdio.h:364:12: note: argument 1 of ‘fprintf’ must be non-null
    # 2745|   		if (first)
    # 2746|   		{
    # 2747|-> 			fprintf(ie->output, "%s: ", ifaceq->ifname);
    # 2748|   			first = false;
    # 2749|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def807]
    util-linux-2.42.start/term-utils/agetty.c: scope_hint: In function ‘get_escape_argument’
    util-linux-2.42.start/term-utils/agetty.c:2765:17: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
    # 2763|   {
    # 2764|   	size_t i = 0;
    # 2765|-> 	int c = fgetc(fd);
    # 2766|
    # 2767|   	if (c == EOF || (unsigned char) c != '{') {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def808]
    util-linux-2.42.start/term-utils/agetty.c:2768:17: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
    # 2766|
    # 2767|   	if (c == EOF || (unsigned char) c != '{') {
    # 2768|-> 		ungetc(c, fd);
    # 2769|   		return NULL;
    # 2770|   	}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def809]
    util-linux-2.42.start/term-utils/agetty.c: scope_hint: In function ‘get_escape_argument.part.0’
    util-linux-2.42.start/term-utils/agetty.c:2773:21: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
    # 2771|
    # 2772|   	do {
    # 2773|-> 		c = fgetc(fd);
    # 2774|   		if (c == EOF)
    # 2775|   			return NULL;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def810]
    util-linux-2.42.start/term-utils/agetty.c: scope_hint: In function ‘output_special_char’
    util-linux-2.42.start/term-utils/agetty.c:2799:37: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
    # 2797|
    # 2798|   		if (get_escape_argument(fp, escname, sizeof(escname))) {
    # 2799|-> 			char *esc = color_get_sequence(escname);
    # 2800|
    # 2801|   			if (esc) {

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def811]
    util-linux-2.42.start/term-utils/agetty.c:2881:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
    <built-in>: note: argument 2 of ‘__builtin_fputs’ must be non-null
    # 2879|   	}
    # 2880|   	case 'l':
    # 2881|-> 		fprintf (ie->output, "%s", op->tty);
    # 2882|   		break;
    # 2883|   	case 'b':

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def812]
    util-linux-2.42.start/term-utils/agetty.c:2997:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
    /usr/include/stdio.h:616:12: note: argument 2 of ‘putc’ must be non-null
    # 2995|   #endif
    # 2996|   	default:
    # 2997|-> 		putc(c, ie->output);
    # 2998|   		break;
    # 2999|   	}

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def813]
    util-linux-2.42.start/term-utils/script-playutils.c: scope_hint: In function ‘ignore_line’
    util-linux-2.42.start/term-utils/script-playutils.c:87:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/term-utils/script-playutils.c:13: included_from: Included from here.
    #   85|   	int c;
    #   86|
    #   87|-> 	while((c = fgetc(f)) != EOF && c != '\n');
    #   88|   	if (ferror(f))
    #   89|   		return -errno;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def814]
    util-linux-2.42.start/term-utils/script-playutils.c:87:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
    #   85|   	int c;
    #   86|
    #   87|-> 	while((c = fgetc(f)) != EOF && c != '\n');
    #   88|   	if (ferror(f))
    #   89|   		return -errno;

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def815]
    util-linux-2.42.start/term-utils/setterm.c:729:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_snapshot_device(ctl)’
    #  727|   	int fd;
    #  728|
    #  729|-> 	if (ctl->opt_sn_num)
    #  730|   		xasprintf(&ctl->in_device, "/dev/vcsa%d", ctl->opt_sn_num);
    #  731|   	else

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def816]
    util-linux-2.42.start/term-utils/setterm.c:790:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*ctl.opt_sn_name,  <unknown>)’
    #  788|   		err(EXIT_DUMPFILE, _("cannot open dump file %s for output"), ctl->opt_sn_name);
    #  789|   	/* determine snapshot size */
    #  790|-> 	if (read(fd, header, 4) != 4)
    #  791|   		err(EXIT_DUMPFILE, _("cannot read %s"), ctl->in_device);
    #  792|   	rows = header[0];

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def817]
    util-linux-2.42.start/term-utils/setterm.c:790:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*ctl.opt_sn_name,  <unknown>)’
    #  788|   		err(EXIT_DUMPFILE, _("cannot open dump file %s for output"), ctl->opt_sn_name);
    #  789|   	/* determine snapshot size */
    #  790|-> 	if (read(fd, header, 4) != 4)
    #  791|   		err(EXIT_DUMPFILE, _("cannot read %s"), ctl->in_device);
    #  792|   	rows = header[0];

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def818]
    util-linux-2.42.start/term-utils/setterm.c:792:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*ctl.opt_sn_name,  <unknown>)’
    #  790|   	if (read(fd, header, 4) != 4)
    #  791|   		err(EXIT_DUMPFILE, _("cannot read %s"), ctl->in_device);
    #  792|-> 	rows = header[0];
    #  793|   	cols = header[1];
    #  794|   	if (rows * cols == 0)

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def819]
    util-linux-2.42.start/term-utils/setterm.c:792:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*ctl.opt_sn_name,  <unknown>)’
    #  790|   	if (read(fd, header, 4) != 4)
    #  791|   		err(EXIT_DUMPFILE, _("cannot read %s"), ctl->in_device);
    #  792|-> 	rows = header[0];
    #  793|   	cols = header[1];
    #  794|   	if (rows * cols == 0)

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def820]
    util-linux-2.42.start/term-utils/setterm.c:808:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
    #  806|   	for (i = 0; i < rows; i++) {
    #  807|   		for (j = 0; j < cols; j++) {
    #  808|-> 			*q++ = *p;
    #  809|   			p += 2;
    #  810|   		}

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def821]
    util-linux-2.42.start/term-utils/setterm.c:808:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
    #  806|   	for (i = 0; i < rows; i++) {
    #  807|   		for (j = 0; j < cols; j++) {
    #  808|-> 			*q++ = *p;
    #  809|   			p += 2;
    #  810|   		}

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def822]
    util-linux-2.42.start/term-utils/setterm.c:813:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
    #  811|   		while (j-- > 0 && q[-1] == ' ')
    #  812|   			q--;
    #  813|-> 		*q++ = '\n';
    #  814|   	}
    #  815|   	fwrite(outbuf, 1, q - outbuf, out);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def823]
    util-linux-2.42.start/term-utils/setterm.c:817:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
    #  815|   	fwrite(outbuf, 1, q - outbuf, out);
    #  816|   	/* clean up allocations */
    #  817|-> 	close(fd);
    #  818|   	free(inbuf);
    #  819|   	free(outbuf);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def824]
    util-linux-2.42.start/term-utils/setterm.c:817:9: warning[-Wanalyzer-malloc-leak]: leak of ‘q’
    #  815|   	fwrite(outbuf, 1, q - outbuf, out);
    #  816|   	/* clean up allocations */
    #  817|-> 	close(fd);
    #  818|   	free(inbuf);
    #  819|   	free(outbuf);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def825]
    util-linux-2.42.start/term-utils/wall.c:358:34: warning[-Wanalyzer-malloc-leak]: leak of ‘fs’
    #  356|   		time_t now;
    #  357|
    #  358|-> 		whombuf = whom = xgetlogin();
    #  359|   		if (!whom) {
    #  360|   			whom = "<someone>";

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def826]
    util-linux-2.42.start/term-utils/wall.c: scope_hint: In function ‘makemsg’
    util-linux-2.42.start/term-utils/wall.c:358:34: warning[-Wanalyzer-malloc-leak]: leak of ‘lbuf’
    #  356|   		time_t now;
    #  357|
    #  358|-> 		whombuf = whom = xgetlogin();
    #  359|   		if (!whom) {
    #  360|   			whom = "<someone>";

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def827]
    util-linux-2.42.start/term-utils/wall.c:361:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fs’
    util-linux-2.42.start/term-utils/wall.c:361:30: note: in expansion of macro ‘_’
    #  359|   		if (!whom) {
    #  360|   			whom = "<someone>";
    #  361|-> 			warn(_("cannot get passwd uid"));
    #  362|   		}
    #  363|   		where = ttyname(STDOUT_FILENO);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def828]
    util-linux-2.42.start/term-utils/wall.c:361:25: warning[-Wanalyzer-malloc-leak]: leak of ‘lbuf’
    util-linux-2.42.start/term-utils/wall.c:361:30: note: in expansion of macro ‘_’
    #  359|   		if (!whom) {
    #  360|   			whom = "<someone>";
    #  361|-> 			warn(_("cannot get passwd uid"));
    #  362|   		}
    #  363|   		where = ttyname(STDOUT_FILENO);

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def829]
    util-linux-2.42.start/term-utils/wall.c:382:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fs’ where non-null expected
    util-linux-2.42.start/term-utils/wall.c:54: included_from: Included from here.
    /usr/include/stdio.h:364:12: note: argument 1 of ‘fprintf’ must be non-null
    #  380|   		/* snprintf is not always available, but the sprintf's here
    #  381|   		   will not overflow as long as %d takes at most 100 chars */
    #  382|-> 		fprintf(fs, "\r%*s\r\n", TERM_WIDTH, " ");
    #  383|
    #  384|   		snprintf(lbuf, lbuflen,

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def830]
    util-linux-2.42.start/term-utils/wall.c:391:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fs’ where non-null expected
    /usr/include/stdio.h:364:12: note: argument 1 of ‘fprintf’ must be non-null
    #  389|   		free(whombuf);
    #  390|   	}
    #  391|-> 	fprintf(fs, "%*s\r\n", TERM_WIDTH, " ");
    #  392|
    #  393|   	 if (mvec) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def831]
    util-linux-2.42.start/term-utils/wall.c:417:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fs’
    util-linux-2.42.start/term-utils/wall.c:417:52: note: in expansion of macro ‘_’
    #  415|   			 */
    #  416|   			if (getuid() && is_privileged_execution())
    #  417|-> 				errx(EXIT_FAILURE, _("will not read %s - use stdin."),
    #  418|   				     fname);
    #  419|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def832]
    util-linux-2.42.start/term-utils/wall.c:417:33: warning[-Wanalyzer-malloc-leak]: leak of ‘lbuf’
    util-linux-2.42.start/term-utils/wall.c:417:52: note: in expansion of macro ‘_’
    #  415|   			 */
    #  416|   			if (getuid() && is_privileged_execution())
    #  417|-> 				errx(EXIT_FAILURE, _("will not read %s - use stdin."),
    #  418|   				     fname);
    #  419|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def833]
    util-linux-2.42.start/term-utils/wall.c:420:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fs’
    #  418|   				     fname);
    #  419|
    #  420|-> 			if (!freopen(fname, "r", stdin))
    #  421|   				err(EXIT_FAILURE, _("cannot open %s"), fname);
    #  422|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def834]
    util-linux-2.42.start/term-utils/wall.c:420:30: warning[-Wanalyzer-malloc-leak]: leak of ‘lbuf’
    #  418|   				     fname);
    #  419|
    #  420|-> 			if (!freopen(fname, "r", stdin))
    #  421|   				err(EXIT_FAILURE, _("cannot open %s"), fname);
    #  422|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def835]
    util-linux-2.42.start/term-utils/wall.c:421:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fs’
    util-linux-2.42.start/term-utils/wall.c:421:51: note: in expansion of macro ‘_’
    #  419|
    #  420|   			if (!freopen(fname, "r", stdin))
    #  421|-> 				err(EXIT_FAILURE, _("cannot open %s"), fname);
    #  422|
    #  423|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def836]
    util-linux-2.42.start/term-utils/wall.c:421:33: warning[-Wanalyzer-malloc-leak]: leak of ‘lbuf’
    util-linux-2.42.start/term-utils/wall.c:421:51: note: in expansion of macro ‘_’
    #  419|
    #  420|   			if (!freopen(fname, "r", stdin))
    #  421|-> 				err(EXIT_FAILURE, _("cannot open %s"), fname);
    #  422|
    #  423|   		}

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def837]
    util-linux-2.42.start/text-utils/bits.c: scope_hint: In function ‘main’
    util-linux-2.42.start/text-utils/bits.c:305:29: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(&buf)’
    util-linux-2.42.start/text-utils/bits.c:27: included_from: Included from here.
    util-linux-2.42.start/include/c.h:23: included_from: Included from here.
    util-linux-2.42.start/text-utils/bits.c:23: included_from: Included from here.
    #  303|   			/* strip LF, CR, CRLF, LFCR */
    #  304|   			rtrim_whitespace((unsigned char *)buf);
    #  305|-> 			if (ul_strv_push(&stdin_lines, xstrdup(buf)) < 0)
    #  306|   				errx(EXIT_FAILURE, _("cannot allocate memory"));
    #  307|   		}

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def838]
    util-linux-2.42.start/text-utils/bits.c:321:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argv’
    #  319|
    #  320|   	for (; argc > 0; argc--, argv++)
    #  321|-> 		parse_mask_or_list(*argv, bits, width);
    #  322|
    #  323|   	ul_strv_free(stdin_lines);

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def839]
    util-linux-2.42.start/text-utils/colcrt.c: scope_hint: In function ‘colcrt’
    util-linux-2.42.start/text-utils/colcrt.c:161:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘ctl.f’
    #  159|   	ctl->print_nl = 1;
    #  160|   	if (ctl->half_lines)
    #  161|-> 		fputwc(L'\n', stdout);
    #  162|
    #  163|   	for (col = 0; /* nothing */; col++) {

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def840]
    util-linux-2.42.start/text-utils/colcrt.c:161:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl.f’
    #  159|   	ctl->print_nl = 1;
    #  160|   	if (ctl->half_lines)
    #  161|-> 		fputwc(L'\n', stdout);
    #  162|
    #  163|   	for (col = 0; /* nothing */; col++) {

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def841]
    util-linux-2.42.start/text-utils/hexdump-display.c: scope_hint: In function ‘get’
    util-linux-2.42.start/text-utils/hexdump-display.c:547:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘savp’
    util-linux-2.42.start/text-utils/hexdump-display.c:50: included_from: Included from here.
    #  545|   				ssize_t j;
    #  546|   				for (j = 0; j < hex->blocksize; j++) {
    #  547|-> 					if (savp[j] != 0) {
    #  548|   						savp_is_zero = 0;
    #  549|   						break;

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def842]
    util-linux-2.42.start/text-utils/hexdump-display.c:588:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘curp’ where non-null expected
    util-linux-2.42.start/text-utils/hexdump-display.c:44: included_from: Included from here.
    /usr/include/string.h:75:12: note: argument 1 of ‘memcmp’ must be non-null
    #  586|   		if (!(need -= n)) {
    #  587|   			if (vflag == ALL || vflag == FIRST ||
    #  588|-> 			    memcmp(curp, savp, hex->blocksize) != 0) {
    #  589|   				if (vflag == DUP || vflag == FIRST)
    #  590|   					vflag = WAIT;

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def843]
    util-linux-2.42.start/text-utils/hexdump-display.c:588:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘savp’ where non-null expected
    /usr/include/string.h:75:12: note: argument 2 of ‘memcmp’ must be non-null
    #  586|   		if (!(need -= n)) {
    #  587|   			if (vflag == ALL || vflag == FIRST ||
    #  588|-> 			    memcmp(curp, savp, hex->blocksize) != 0) {
    #  589|   				if (vflag == DUP || vflag == FIRST)
    #  590|   					vflag = WAIT;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def844]
    util-linux-2.42.start/text-utils/hexdump-parse.c:55:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #   53|   static void __attribute__ ((__noreturn__)) badcnt(const char *s)
    #   54|   {
    #   55|-> 	errx(EXIT_FAILURE, _("bad byte count for conversion character %s"), s);
    #   56|   }
    #   57|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def845]
    util-linux-2.42.start/text-utils/hexdump-parse.c: scope_hint: In function ‘badcnt’
    util-linux-2.42.start/text-utils/hexdump-parse.c:55:9: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
    #   53|   static void __attribute__ ((__noreturn__)) badcnt(const char *s)
    #   54|   {
    #   55|-> 	errx(EXIT_FAILURE, _("bad byte count for conversion character %s"), s);
    #   56|   }
    #   57|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def846]
    util-linux-2.42.start/text-utils/hexdump-parse.c: scope_hint: In function ‘badfmt’
    util-linux-2.42.start/text-utils/hexdump-parse.c:65:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #   63|   static void __attribute__ ((__noreturn__)) badfmt(const char *fmt)
    #   64|   {
    #   65|-> 	errx(EXIT_FAILURE, _("bad format {%s}"), fmt);
    #   66|   }
    #   67|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def847]
    util-linux-2.42.start/text-utils/hexdump-parse.c:65:9: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
    #   63|   static void __attribute__ ((__noreturn__)) badfmt(const char *fmt)
    #   64|   {
    #   65|-> 	errx(EXIT_FAILURE, _("bad format {%s}"), fmt);
    #   66|   }
    #   67|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def848]
    util-linux-2.42.start/text-utils/hexdump-parse.c: scope_hint: In function ‘color_fmt’
    util-linux-2.42.start/text-utils/hexdump-parse.c:502:22: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrndup(cfmt,  strcspn(<unknown>, ":@,"))’
    #  500|
    #  501|   		clr = xstrndup(cfmt, strcspn(cfmt, ":@,"));
    #  502|-> 		cfmt += strlen(clr);
    #  503|   		hcnext->fmt = color_sequence_from_colorname(clr);
    #  504|   		free(clr);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def849]
    util-linux-2.42.start/text-utils/hexdump-parse.c:503:31: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
    #  501|   		clr = xstrndup(cfmt, strcspn(cfmt, ":@,"));
    #  502|   		cfmt += strlen(clr);
    #  503|-> 		hcnext->fmt = color_sequence_from_colorname(clr);
    #  504|   		free(clr);
    #  505|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def850]
    util-linux-2.42.start/text-utils/hexdump-parse.c:503:31: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
    #  501|   		clr = xstrndup(cfmt, strcspn(cfmt, ":@,"));
    #  502|   		cfmt += strlen(clr);
    #  503|-> 		hcnext->fmt = color_sequence_from_colorname(clr);
    #  504|   		free(clr);
    #  505|

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def851]
    util-linux-2.42.start/text-utils/hexdump-parse.c:607:1: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
    #  605|   	}
    #  606|   	return ret_head;
    #  607|-> }
    #  608|
    #  609|   static void escape(char *p1)

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def852]
    util-linux-2.42.start/text-utils/more.c: scope_hint: In function ‘argscan’
    util-linux-2.42.start/text-utils/more.c:293:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘as_argv’
    #  291|   		int move = 0;
    #  292|
    #  293|-> 		if (as_argv[opt][0] == '-' && isdigit_string(as_argv[opt] + 1)) {
    #  294|   			ctl->lines_per_screen =
    #  295|   			    strtos16_or_err(as_argv[opt], _("failed to parse number"));

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def853]
    util-linux-2.42.start/text-utils/more.c:316:21: warning[-Wanalyzer-null-argument]: use of NULL ‘as_argv’ where non-null expected
    /usr/include/getopt.h:36: included_from: Included from here.
    util-linux-2.42.start/text-utils/more.c:68: included_from: Included from here.
    /usr/include/bits/getopt_ext.h:66:12: note: argument 2 of ‘getopt_long’ must be non-null
    #  314|   	}
    #  315|
    #  316|-> 	while ((c = getopt_long(as_argc, as_argv, "dflcpsun:eVh", longopts, NULL)) != -1) {
    #  317|   		switch (c) {
    #  318|   		case 'd':

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def854]
    util-linux-2.42.start/text-utils/rev.c: scope_hint: In function ‘main’
    util-linux-2.42.start/text-utils/rev.c:167:33: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
    #  165|   		if (*argv) {
    #  166|   			if ((fp = fopen(*argv, "r")) == NULL) {
    #  167|-> 				warn(_("cannot open %s"), *argv );
    #  168|   				rval = EXIT_FAILURE;
    #  169|   				++argv;

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def855]
    util-linux-2.42.start/text-utils/ul.c: scope_hint: In function ‘overstrike’
    util-linux-2.42.start/text-utils/ul.c:353:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
    util-linux-2.42.start/text-utils/ul.c: scope_hint: In function ‘overstrike’
    util-linux-2.42.start/text-utils/ul.c:62: included_from: Included from here.
    #  351|   		case NORMAL_CHARSET:
    #  352|   		default:
    #  353|-> 			*p++ = ' ';
    #  354|   			break;
    #  355|   		case UNDERLINE:

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def856]
    util-linux-2.42.start/text-utils/ul.c:356:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
    util-linux-2.42.start/text-utils/ul.c: scope_hint: In function ‘overstrike’
    #  354|   			break;
    #  355|   		case UNDERLINE:
    #  356|-> 			*p++ = '_';
    #  357|   			break;
    #  358|   		case BOLD:

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def857]
    util-linux-2.42.start/text-utils/ul.c:359:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
    util-linux-2.42.start/text-utils/ul.c: scope_hint: In function ‘overstrike’
    #  357|   			break;
    #  358|   		case BOLD:
    #  359|-> 			*p++ = ctl->buf[i].c_char;
    #  360|   			if (1 < ctl->buf[i].c_width)
    #  361|   				i += ctl->buf[i].c_width - 1;

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def858]
    util-linux-2.42.start/text-utils/ul.c:367:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
    util-linux-2.42.start/text-utils/ul.c: scope_hint: In function ‘overstrike’
    #  365|   	}
    #  366|
    #  367|-> 	putwchar('\r');
    #  368|   	for (*p = ' '; *p == ' '; p--)
    #  369|   		*p = 0;

    Error: GCC_ANALYZER_WARNING (CWE-127): [#def859]
    util-linux-2.42.start/text-utils/ul.c:368:24: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
    util-linux-2.42.start/text-utils/ul.c: scope_hint: In function ‘overstrike’
    #  366|
    #  367|   	putwchar('\r');
    #  368|-> 	for (*p = ' '; *p == ' '; p--)
    #  369|   		*p = 0;
    #  370|   	fputws(buf, stdout);

    Error: GCC_ANALYZER_WARNING (CWE-401): [#def860]
    util-linux-2.42.start/text-utils/ul.c:368:36: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
    util-linux-2.42.start/text-utils/ul.c: scope_hint: In function ‘overstrike’
    #  366|
    #  367|   	putwchar('\r');
    #  368|-> 	for (*p = ' '; *p == ' '; p--)
    #  369|   		*p = 0;
    #  370|   	fputws(buf, stdout);

    Error: GCC_ANALYZER_WARNING (CWE-124): [#def861]
    util-linux-2.42.start/text-utils/ul.c:369:20: warning[-Wanalyzer-out-of-bounds]: heap-based buffer underwrite
    util-linux-2.42.start/text-utils/ul.c: scope_hint: In function ‘overstrike’
    #  367|   	putwchar('\r');
    #  368|   	for (*p = ' '; *p == ' '; p--)
    #  369|-> 		*p = 0;
    #  370|   	fputws(buf, stdout);
    #  371|

    Error: CPPCHECK_WARNING (CWE-476): [#def862]
    util-linux-2.42.start/text-utils/ul.c:640: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: f
    #  638|   				err(EXIT_FAILURE, _("cannot open %s"), argv[optind]);
    #  639|   			filter(&ctl, &tcs, f);
    #  640|-> 			fclose(f);
    #  641|   		}
    #  642|   	}

## Scan Properties

analyzer-version-clippy | 1.93.0
analyzer-version-cppcheck | 2.19.1
analyzer-version-gcc | 16.0.1
analyzer-version-gcc-analyzer | 16.0.1
analyzer-version-shellcheck | 0.11.0
analyzer-version-unicontrol | 0.0.2
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol
exit-code | 0
host | ip-172-16-1-226.us-west-2.compute.internal
known-false-positives | /usr/share/csmock/known-false-positives.js
known-false-positives-rpm | known-false-positives-0.0.0.20260119.105402.g7a5be1b.main-1.el9.noarch
mock-config | fedora-rawhide-x86_64
project-name | util-linux-2.42.start-7.20260204095215160565.master.1350.g4a4eb88f2
store-results-to | /tmp/tmpxwp6i5e0/util-linux-2.42.start-7.20260204095215160565.master.1350.g4a4eb88f2.tar.xz
time-created | 2026-02-04 21:20:23
time-finished | 2026-02-04 21:37:32
tool | csmock
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,shellcheck,gcc,clippy' '-o' '/tmp/tmpxwp6i5e0/util-linux-2.42.start-7.20260204095215160565.master.1350.g4a4eb88f2.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpxwp6i5e0/util-linux-2.42.start-7.20260204095215160565.master.1350.g4a4eb88f2.src.rpm'
tool-version | csmock-3.8.3.20260128.181932.g41af877-1.el9