util-linux-2.42.start-7.20260204012133086027.pr4012.1336.g6ef7cfa69
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 ‘_’
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")’
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")’
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")’
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")’
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")’
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")’
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’
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.
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’
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’
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
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’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
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’
Error: CPPCHECK_WARNING (CWE-457): [#def16]
util-linux-2.42.start/disk-utils/fdformat.c:68: error[uninitvar]: Uninitialized variable: current
Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
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.
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
util-linux-2.42.start/disk-utils/fdisk-list.c:39:19: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
util-linux-2.42.start/disk-utils/fdisk-list.c:41:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(device, 2048)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
util-linux-2.42.start/disk-utils/fdisk-list.c:41:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
util-linux-2.42.start/disk-utils/fdisk-list.c:41:15: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
util-linux-2.42.start/disk-utils/fdisk-list.c:413:25: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
util-linux-2.42.start/disk-utils/fdisk-list.c:417:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
util-linux-2.42.start/disk-utils/fdisk-list.c:417:21: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
util-linux-2.42.start/disk-utils/fdisk-list.c:418:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
util-linux-2.42.start/disk-utils/fdisk-list.c:418:21: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
util-linux-2.42.start/disk-utils/fdisk-list.c:421:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
util-linux-2.42.start/disk-utils/fdisk-list.c:421:22: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
util-linux-2.42.start/disk-utils/fdisk-list.c:424:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
util-linux-2.42.start/disk-utils/fdisk-list.c:424:22: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
util-linux-2.42.start/disk-utils/fdisk-list.c:558:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def36]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
util-linux-2.42.start/disk-utils/fdisk-menu.c:543:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "w")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
util-linux-2.42.start/disk-utils/fsck.c:1005:28: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(fs_type)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def43]
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
Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
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)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def45]
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
Error: GCC_ANALYZER_WARNING (CWE-688): [#def46]
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
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
util-linux-2.42.start/disk-utils/mkfs.cramfs.c:308:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
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 ‘_’
Error: CPPCHECK_WARNING (CWE-190): [#def50]
util-linux-2.42.start/disk-utils/mkfs.cramfs.c:377: error[integerOverflow]: Signed integer overflow for expression '-(1<<24)'.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def51]
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
Error: GCC_ANALYZER_WARNING (CWE-688): [#def52]
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
Error: GCC_ANALYZER_WARNING (CWE-688): [#def53]
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
Error: GCC_ANALYZER_WARNING (CWE-479): [#def54]
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
Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
util-linux-2.42.start/disk-utils/partx.c:247:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
util-linux-2.42.start/disk-utils/partx.c:247:21: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(&path)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
util-linux-2.42.start/disk-utils/partx.c:1038:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(wholedisk, 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def65]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def66]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def67]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
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]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def70]
util-linux-2.42.start/include/all-io.h:30:31: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/setgroups", 1)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def71]
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
Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def74]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
util-linux-2.42.start/include/c.h:490:16: warning[-Wanalyzer-malloc-leak]: leak of 'result'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def83]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
util-linux-2.42.start/libmount/src/mountP.h:32: included_from: Included from here.
util-linux-2.42.start/libmount/src/tab_parse.c:28: included_from: Included from here.
util-linux-2.42.start/libmount/src/tab_parse.c: scope_hint: In function 'mnt_table_parse_stream'
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/tab_parse.c:749: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_parse.c:994:17: 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/fileutils.h:14: included_from: Included from here.
util-linux-2.42.start/libmount/src/tab_parse.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/tab_parse.c:749: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_parse.c:749: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_parse.c:749:9: note: in expansion of macro 'DBG'
util-linux-2.42.start/include/debug.h:66:25: note: in definition of macro '__UL_DBG'
util-linux-2.42.start/libmount/src/tab_parse.c:749: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_parse.c:749:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
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:717: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:717:9: note: in expansion of macro ‘DBG’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
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/tab_parse.c:749: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_parse.c:994: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/tab_parse.c:749: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_parse.c:749: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_parse.c:749:9: note: in expansion of macro 'DBG'
util-linux-2.42.start/include/debug.h:66:25: note: in definition of macro '__UL_DBG'
util-linux-2.42.start/libmount/src/tab_parse.c:749: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_parse.c:749:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
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'
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/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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
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:717: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:717:9: note: in expansion of macro ‘DBG’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
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’
Error: CPPCHECK_WARNING (CWE-476): [#def98]
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
Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
util-linux-2.42.start/include/fgetwc_or_err.h:12:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl.f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
util-linux-2.42.start/include/fileutils.h:48:17: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
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")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
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)’
Error: GCC_ANALYZER_WARNING (CWE-835): [#def109]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
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’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def116]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
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:933:13: note: in expansion of macro ‘is_association’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)((cols + 1) * rows))’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
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))’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(24)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
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)’
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/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.
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/sock-xinfo.c:49: 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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
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:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
util-linux-2.42.start/include/xalloc.h:33:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
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’
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 ‘fs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
util-linux-2.42.start/include/xalloc.h:33:17: warning[-Wanalyzer-malloc-leak]: leak of ‘groupmap’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
util-linux-2.42.start/include/xalloc.h:33:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lbuf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
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)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/dev/mqueue")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
util-linux-2.42.start/lsfd-cmd/lsfd.h:41: included_from: Included from here.
util-linux-2.42.start/lsfd-cmd/bdev.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: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/include/debug.h:40: included_from: Included from here.
util-linux-2.42.start/lsfd-cmd/lsfd.h:35: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 56)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 96)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
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>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
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.
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 ‘hcnext’
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 ‘ret’
util-linux-2.42.start/disk-utils/mkswap.c: scope_hint: In function ‘xcalloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
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>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
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’
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 ‘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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘opts.passwd.pw_dir’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘opts.passwd.pw_gecos’
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 ‘opts.passwd.pw_name’
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_passwd’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
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.
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 ‘search_value’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
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>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
util-linux-2.42.start/include/xalloc.h:110:16: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
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>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
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.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def227]
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’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def228]
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.
/usr/include/sys/param.h:28: included_from: Included from here.
util-linux-2.42.start/term-utils/wall.c:45: included_from: Included from here.
/usr/include/unistd.h:911:12: note: argument 1 of ‘gethostname’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def229]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
util-linux-2.42.start/lib/caputils.c:61:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sys/kernel/cap_last_cap", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def233]
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)'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def234]
util-linux-2.42.start/lib/fileutils.c:200:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def235]
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[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def236]
util-linux-2.42.start/lib/fileutils.c:201:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def237]
util-linux-2.42.start/lib/fileutils.c:204:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def238]
util-linux-2.42.start/lib/fileutils.c:204:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def239]
util-linux-2.42.start/lib/fileutils.c:211:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def240]
util-linux-2.42.start/lib/fileutils.c:225:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def241]
util-linux-2.42.start/lib/fileutils.c:225:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def242]
util-linux-2.42.start/lib/fileutils.c:252:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def243]
util-linux-2.42.start/lib/fileutils.c:252:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipes[errsv]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def244]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
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)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def247]
util-linux-2.42.start/lib/pager.c: scope_hint: In function ‘close_pair’
util-linux-2.42.start/lib/pager.c:48:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdin[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def248]
util-linux-2.42.start/lib/pager.c: scope_hint: In function ‘start_command’
util-linux-2.42.start/lib/pager.c:78:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdin[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def249]
util-linux-2.42.start/lib/pager.c:94:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdin[0]’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
util-linux-2.42.start/lib/pager.c: scope_hint: In function ‘xstrdup’
util-linux-2.42.start/lib/pager.c:139:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(cmd)’
util-linux-2.42.start/lib/pager.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/lib/pager.c:23: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
util-linux-2.42.start/lib/pager.c:152:26: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(path)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
util-linux-2.42.start/lib/pager.c:156:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(path)’
Error: GCC_ANALYZER_WARNING: [#def253]
util-linux-2.42.start/lib/pager.c: scope_hint: In function ‘pager_close’
util-linux-2.42.start/lib/pager.c:247:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
Error: GCC_ANALYZER_WARNING: [#def254]
util-linux-2.42.start/lib/pager.c:248:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
util-linux-2.42.start/lib/path.c:477:24: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
util-linux-2.42.start/lib/path.c:478:30: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def259]
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'
Error: GCC_ANALYZER_WARNING (CWE-465): [#def260]
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
Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def262]
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)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
util-linux-2.42.start/lib/procfs.c:438:9: warning[-Wanalyzer-malloc-leak]: leak of 're'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def264]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def273]
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)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
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'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def283]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def284]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
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.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def287]
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'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def288]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def289]
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]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def290]
util-linux-2.42.start/libblkid/src/topology/dm.c:71:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def291]
util-linux-2.42.start/libblkid/src/topology/dm.c:107:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
util-linux-2.42.start/libblkid/src/topology/dm.c:107:17: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def293]
util-linux-2.42.start/libblkid/src/topology/dm.c:114:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def294]
util-linux-2.42.start/libblkid/src/topology/dm.c:115:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def295]
util-linux-2.42.start/libblkid/src/topology/dm.c:118:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def296]
util-linux-2.42.start/libblkid/src/topology/dm.c:118:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def297]
util-linux-2.42.start/libblkid/src/topology/dm.c:124:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def298]
util-linux-2.42.start/libblkid/src/topology/dm.c:124:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def299]
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]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def300]
util-linux-2.42.start/libblkid/src/topology/lvm.c:80:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def301]
util-linux-2.42.start/libblkid/src/topology/lvm.c:119:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
util-linux-2.42.start/libblkid/src/topology/lvm.c:119:9: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def303]
util-linux-2.42.start/libblkid/src/topology/lvm.c:120:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
util-linux-2.42.start/libblkid/src/topology/lvm.c:120:9: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def305]
util-linux-2.42.start/libblkid/src/topology/lvm.c:124:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def306]
util-linux-2.42.start/libblkid/src/topology/lvm.c:125:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def307]
util-linux-2.42.start/libblkid/src/topology/lvm.c:125:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def308]
util-linux-2.42.start/libblkid/src/topology/lvm.c:132:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def309]
util-linux-2.42.start/libblkid/src/topology/lvm.c:132:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def310]
util-linux-2.42.start/libblkid/src/topology/lvm.c:134:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def311]
util-linux-2.42.start/libblkid/src/topology/lvm.c:134:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def312]
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)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def315]
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 '_'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def318]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def319]
util-linux-2.42.start/libfdisk/src/context.c:561:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def320]
util-linux-2.42.start/libfdisk/src/context.c:584:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def321]
util-linux-2.42.start/libfdisk/src/context.c:586:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def322]
util-linux-2.42.start/libfdisk/src/context.c:591:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
util-linux-2.42.start/libfdisk/src/context.c:946:16: warning[-Wanalyzer-malloc-leak]: leak of 'rem'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
util-linux-2.42.start/libfdisk/src/context.c:976:25: warning[-Wanalyzer-malloc-leak]: leak of 'rem'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
util-linux-2.42.start/libfdisk/src/context.c:985:25: warning[-Wanalyzer-malloc-leak]: leak of 'upd'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
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 '_'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
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 '_'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
util-linux-2.42.start/libfdisk/src/label.c:139:27: warning[-Wanalyzer-malloc-leak]: leak of 'c'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
util-linux-2.42.start/libfdisk/src/label.c:142:34: warning[-Wanalyzer-malloc-leak]: leak of 'c'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
util-linux-2.42.start/libfdisk/src/label.c:144:35: warning[-Wanalyzer-malloc-leak]: leak of 'c'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def348]
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")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
util-linux-2.42.start/liblastlog2/src/lastlog2.c:589:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(lastlog_file, "r")'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def350]
util-linux-2.42.start/liblastlog2/src/lastlog2.c:590:22: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(lastlog_file, "r")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
util-linux-2.42.start/liblastlog2/src/lastlog2.c:590:22: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(lastlog_file, "r")'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def352]
util-linux-2.42.start/liblastlog2/src/lastlog2.c:594:36: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(lastlog_file, "r")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
util-linux-2.42.start/liblastlog2/src/lastlog2.c:594:36: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(lastlog_file, "r")'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def354]
util-linux-2.42.start/liblastlog2/src/lastlog2.c:625:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(lastlog_file, "r")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
util-linux-2.42.start/liblastlog2/src/lastlog2.c:625:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(lastlog_file, "r")'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def356]
util-linux-2.42.start/liblastlog2/src/lastlog2.c:626:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(lastlog_file, "r")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
util-linux-2.42.start/liblastlog2/src/lastlog2.c:626:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(lastlog_file, "r")'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def358]
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")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
util-linux-2.42.start/libmount/python/tab.c:167:14: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(path, "w")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
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'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def362]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
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'
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: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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
util-linux-2.42.start/libmount/src/context_mount.c:1437:20: warning[-Wanalyzer-malloc-leak]: leak of 'mnt'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
util-linux-2.42.start/libmount/src/context_mount.c:1438:20: warning[-Wanalyzer-malloc-leak]: leak of 'mnt'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
util-linux-2.42.start/libmount/src/fs.c:462:14: warning[-Wanalyzer-malloc-leak]: leak of 'p'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def384]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def385]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def386]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def391]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def392]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
util-linux-2.42.start/libmount/src/hook_owner.c:131:21: warning[-Wanalyzer-malloc-leak]: leak of 'hd'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
util-linux-2.42.start/libmount/src/hook_owner.c:145:21: warning[-Wanalyzer-malloc-leak]: leak of 'hd'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
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.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def397]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
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'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def408]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def413]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def415]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def416]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def417]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def418]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def419]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def420]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def425]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def426]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def427]
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'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def428]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
util-linux-2.42.start/libmount/src/utils.c:716:14: warning[-Wanalyzer-malloc-leak]: leak of 'user_tofree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
util-linux-2.42.start/libmount/src/utils.c:745:14: warning[-Wanalyzer-malloc-leak]: leak of 'group_tofree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
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'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def444]
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'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def445]
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'
Error: GCC_ANALYZER_WARNING (CWE-127): [#def446]
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]'
Error: GCC_ANALYZER_WARNING (CWE-127): [#def447]
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]'
Error: GCC_ANALYZER_WARNING (CWE-127): [#def448]
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]'
Error: GCC_ANALYZER_WARNING (CWE-127): [#def449]
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]'
Error: GCC_ANALYZER_WARNING (CWE-127): [#def450]
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]'
Error: GCC_ANALYZER_WARNING (CWE-127): [#def451]
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]'
Error: GCC_ANALYZER_WARNING (CWE-127): [#def452]
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]'
Error: GCC_ANALYZER_WARNING (CWE-127): [#def453]
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]'
Error: GCC_ANALYZER_WARNING (CWE-127): [#def454]
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]'
Error: GCC_ANALYZER_WARNING (CWE-127): [#def455]
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]'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def456]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def457]
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)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def458]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def460]
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)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def461]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def462]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def465]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def466]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def467]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
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'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def477]
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'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def478]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
util-linux-2.42.start/login-utils/islocal.c:42:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def480]
util-linux-2.42.start/login-utils/islocal.c:52:46: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
util-linux-2.42.start/login-utils/islocal.c:52:46: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def482]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def483]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def484]
util-linux-2.42.start/login-utils/last.c:195:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
util-linux-2.42.start/login-utils/last.c:207:17: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def486]
util-linux-2.42.start/login-utils/last.c:208:24: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
util-linux-2.42.start/login-utils/last.c:212:21: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def493]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def494]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
util-linux-2.42.start/login-utils/last.c:1102:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def496]
util-linux-2.42.start/login-utils/last.c:1102:17: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def497]
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.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def498]
util-linux-2.42.start/login-utils/login.c:242:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘environ’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def499]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def500]
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"))’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def501]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def502]
util-linux-2.42.start/login-utils/login.c:458:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(tty, 2050)’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def503]
util-linux-2.42.start/login-utils/login.c:463:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘i’
Error: GCC_ANALYZER_WARNING: [#def504]
util-linux-2.42.start/login-utils/login.c:466:25: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘i’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def508]
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’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def509]
util-linux-2.42.start/login-utils/lslogins.c:530:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ary’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
util-linux-2.42.start/login-utils/lslogins.c:538:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ary’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
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>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
util-linux-2.42.start/login-utils/lslogins.c:568:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
util-linux-2.42.start/login-utils/lslogins.c:569:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def514]
util-linux-2.42.start/login-utils/lslogins.c:581:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
util-linux-2.42.start/login-utils/lslogins.c:582:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def516]
util-linux-2.42.start/login-utils/lslogins.c:594:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
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>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def518]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
util-linux-2.42.start/login-utils/lslogins.c:650:19: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
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>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
util-linux-2.42.start/login-utils/lslogins.c:1398:16: warning[-Wanalyzer-malloc-leak]: leak of ‘get_journal_data(j, "_PID")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
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.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def528]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def530]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
util-linux-2.42.start/login-utils/sulogin-consoles.c:372:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/consoles", "re")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
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.
Error: GCC_ANALYZER_WARNING: [#def533]
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’
Error: GCC_ANALYZER_WARNING: [#def534]
util-linux-2.42.start/login-utils/sulogin.c:727:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
Error: GCC_ANALYZER_WARNING: [#def535]
util-linux-2.42.start/login-utils/sulogin.c:728:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def536]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def537]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def538]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def539]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def541]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
util-linux-2.42.start/lsfd-cmd/bdev.c:118:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/partitions", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def544]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def545]
util-linux-2.42.start/lsfd-cmd/cdev.c:153:27: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/misc", "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def546]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
util-linux-2.42.start/lsfd-cmd/cdev.c:216:53: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/tty/drivers", "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def548]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def549]
util-linux-2.42.start/lsfd-cmd/cdev.c:221:61: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/tty/drivers", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def550]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def551]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
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’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def554]
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)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def555]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def556]
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:2083:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def557]
util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘parse_pids’
util-linux-2.42.start/lsfd-cmd/lsfd.c:2225:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def558]
util-linux-2.42.start/lsfd-cmd/lsfd.c:2225:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘outarg’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘collect_processes’
util-linux-2.42.start/lsfd-cmd/lsfd.c:2266:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def560]
util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘main’
util-linux-2.42.start/lsfd-cmd/lsfd.c:2418: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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘new_filter’
util-linux-2.42.start/lsfd-cmd/lsfd.c:2463:28: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(17, 8) + i * 8’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def562]
util-linux-2.42.start/lsfd-cmd/lsfd.c:2463:28: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(ct + 1, 8) + i * 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:2483:9: note: in expansion of macro ‘list_for_each’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def563]
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:2163:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/net/netlink", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def564]
util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:2163:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/net/netlink", "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def565]
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:2570:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/net/packet", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:2570:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/net/packet", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
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:142: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: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/include/debug.h:40: included_from: Included from here.
util-linux-2.42.start/lsfd-cmd/lsfd.h:35: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def568]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def569]
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.
Error: GCC_ANALYZER_WARNING (CWE-465): [#def570]
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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def571]
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) + (long unsigned int)numdev * 8’
util-linux-2.42.start/misc-utils/blkid.c:18: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def572]
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)’
util-linux-2.42.start/misc-utils/cal.c:79: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
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.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def574]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def575]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def576]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def577]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
util-linux-2.42.start/misc-utils/enosys.c:117:42: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_block(optarg, 38, & syscalls, 384)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
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))’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
util-linux-2.42.start/misc-utils/enosys.c:137:42: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_block(optarg, 38, & syscalls, 384)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def583]
util-linux-2.42.start/misc-utils/enosys.c:154:16: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def584]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def585]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def586]
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)’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def587]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def588]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def589]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def591]
util-linux-2.42.start/misc-utils/findmnt.c:590:17: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
util-linux-2.42.start/misc-utils/findmnt.c:607:16: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def593]
util-linux-2.42.start/misc-utils/findmnt.c:608:9: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
util-linux-2.42.start/misc-utils/findmnt.c:610:16: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def595]
util-linux-2.42.start/misc-utils/findmnt.c:611:23: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
util-linux-2.42.start/misc-utils/findmnt.c:614:17: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
util-linux-2.42.start/misc-utils/findmnt.c:615:17: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def598]
util-linux-2.42.start/misc-utils/findmnt.c:617:9: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def599]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def600]
util-linux-2.42.start/misc-utils/findmnt.c:1405:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tabfile, "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def601]
util-linux-2.42.start/misc-utils/findmnt.c:1415:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tabfile, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def602]
util-linux-2.42.start/misc-utils/findmnt.c:1415:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tabfile, "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def603]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def604]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def605]
util-linux-2.42.start/misc-utils/findmnt.c:1423:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tabfile, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def606]
util-linux-2.42.start/misc-utils/findmnt.c:1423:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tabfile, "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def607]
util-linux-2.42.start/misc-utils/findmnt.c:1424:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tabfile, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def608]
util-linux-2.42.start/misc-utils/findmnt.c:1424:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tabfile, "r")’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def609]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def610]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def611]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def612]
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
Error: CPPCHECK_WARNING (CWE-401): [#def613]
util-linux-2.42.start/misc-utils/getopt.c:467: error[memleak]: Memory leak: ctl.name
Error: GCC_ANALYZER_WARNING (CWE-688): [#def614]
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
Error: GCC_ANALYZER_WARNING (CWE-415): [#def615]
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’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def616]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def617]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def618]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def619]
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)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def620]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def621]
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’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def622]
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.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def623]
util-linux-2.42.start/misc-utils/look.c:342:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def624]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def625]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def626]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def627]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def628]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def629]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def630]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def631]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def632]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def633]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def634]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def635]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def636]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def637]
util-linux-2.42.start/misc-utils/mcookie.c:80:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def638]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def639]
util-linux-2.42.start/misc-utils/mcookie.c:133:51: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def640]
util-linux-2.42.start/misc-utils/mcookie.c:137:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def641]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def642]
util-linux-2.42.start/misc-utils/mcookie.c:172:37: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl.files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def643]
util-linux-2.42.start/misc-utils/mcookie.c:188:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl.files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def644]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def645]
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
Error: GCC_ANALYZER_WARNING (CWE-688): [#def646]
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
Error: GCC_ANALYZER_WARNING (CWE-688): [#def647]
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
Error: GCC_ANALYZER_WARNING (CWE-401): [#def648]
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>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def649]
util-linux-2.42.start/misc-utils/namei.c:168:27: warning[-Wanalyzer-malloc-leak]: leak of ‘fname’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def650]
util-linux-2.42.start/misc-utils/namei.c:178:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fname’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def651]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def652]
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)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def653]
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’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def654]
util-linux-2.42.start/misc-utils/rename.c:94:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def655]
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.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def656]
util-linux-2.42.start/misc-utils/rename.c:105:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def657]
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
Error: GCC_ANALYZER_WARNING (CWE-775): [#def658]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def659]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def660]
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.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def661]
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
Error: GCC_ANALYZER_WARNING (CWE-401): [#def662]
util-linux-2.42.start/misc-utils/wipefs.c:353:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def663]
util-linux-2.42.start/misc-utils/wipefs.c:356:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def664]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def665]
util-linux-2.42.start/misc-utils/wipefs.c:376:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(devname, mode | 2048)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def666]
util-linux-2.42.start/misc-utils/wipefs.c:377:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(devname, mode | 2048)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def667]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def668]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def669]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def670]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def671]
util-linux-2.42.start/sys-utils/eject.c:504:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sys/dev/cdrom/info", "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def672]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def673]
util-linux-2.42.start/sys-utils/eject.c:508:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sys/dev/cdrom/info", "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def674]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def675]
util-linux-2.42.start/sys-utils/eject.c:519:44: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sys/dev/cdrom/info", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def676]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def677]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def678]
util-linux-2.42.start/sys-utils/eject.c:716:25: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def679]
util-linux-2.42.start/sys-utils/eject.c:717:17: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def680]
util-linux-2.42.start/sys-utils/eject.c:718:17: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def681]
util-linux-2.42.start/sys-utils/eject.c:721:30: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def682]
util-linux-2.42.start/sys-utils/eject.c:723:30: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def683]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def684]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def685]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def686]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def687]
util-linux-2.42.start/sys-utils/fstrim.c:433:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(tabs)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def688]
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)’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def689]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def690]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def691]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def692]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def693]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def694]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def695]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def696]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def697]
util-linux-2.42.start/sys-utils/ipcutils.c:153:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sysvipc/shm", "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def698]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def699]
util-linux-2.42.start/sys-utils/ipcutils.c:159:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sysvipc/shm", "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def700]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def701]
util-linux-2.42.start/sys-utils/ipcutils.c:375:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sysvipc/sem", "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def702]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def703]
util-linux-2.42.start/sys-utils/ipcutils.c:562:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/sysvipc/msg", "r")’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def704]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def705]
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.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def706]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def707]
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)’
Error: CPPCHECK_WARNING (CWE-476): [#def708]
util-linux-2.42.start/sys-utils/lscpu-arm.c:562: warning[nullPointer]: Possible null pointer dereference: parts
Error: CPPCHECK_WARNING (CWE-476): [#def709]
util-linux-2.42.start/sys-utils/lscpu-arm.c:592: warning[nullPointer]: Possible null pointer dereference: parts
Error: GCC_ANALYZER_WARNING (CWE-476): [#def710]
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’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def711]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def712]
util-linux-2.42.start/sys-utils/lscpu-cputype.c:578:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def713]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def714]
util-linux-2.42.start/sys-utils/lscpu-virt.c:86:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(devmem, 0)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def715]
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>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def716]
util-linux-2.42.start/sys-utils/lscpu-virt.c:586:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def717]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def718]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def719]
util-linux-2.42.start/sys-utils/lsipc.c:1370:41: warning[-Wanalyzer-malloc-leak]: leak of ‘arg’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def720]
util-linux-2.42.start/sys-utils/lsipc.c:1380:46: warning[-Wanalyzer-malloc-leak]: leak of ‘arg’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def721]
util-linux-2.42.start/sys-utils/lsipc.c:1388:46: warning[-Wanalyzer-malloc-leak]: leak of ‘arg’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def722]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def723]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def724]
util-linux-2.42.start/sys-utils/lsirq.c:46:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def725]
util-linux-2.42.start/sys-utils/lsirq.c:47:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def726]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def727]
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.
Error: CPPCHECK_WARNING (CWE-457): [#def728]
util-linux-2.42.start/sys-utils/mount.c:898: error[legacyUninitvar]: Uninitialized variable: path
Error: GCC_ANALYZER_WARNING (CWE-775): [#def729]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def730]
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)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def731]
util-linux-2.42.start/sys-utils/readprofile.c:278:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(len)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def732]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def733]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def734]
util-linux-2.42.start/sys-utils/readprofile.c:317:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘map’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def735]
util-linux-2.42.start/sys-utils/readprofile.c:317:25: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def736]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def737]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def738]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def739]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def740]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def741]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def742]
util-linux-2.42.start/sys-utils/rtcwake.c:271:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/sys/power/state", 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def743]
util-linux-2.42.start/sys-utils/rtcwake.c:276:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/sys/power/state", 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def744]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def745]
util-linux-2.42.start/sys-utils/rtcwake.c:305:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/sys/power/state", "w")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def746]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def747]
util-linux-2.42.start/sys-utils/rtcwake.c:325:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*ctl.adjfile, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def748]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def749]
util-linux-2.42.start/sys-utils/rtcwake.c:411:17: warning[-Wanalyzer-malloc-leak]: leak of ‘devpath’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def750]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def751]
util-linux-2.42.start/sys-utils/setpgid.c:78:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524288)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def752]
util-linux-2.42.start/sys-utils/setpgid.c:80:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524288)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def753]
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>))’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def754]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def755]
util-linux-2.42.start/sys-utils/setpriv.c:537:25: warning[-Wanalyzer-malloc-leak]: leak of ‘my_caps’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def756]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def757]
util-linux-2.42.start/sys-utils/setpriv.c:561:42: warning[-Wanalyzer-malloc-leak]: leak of ‘my_caps’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def758]
util-linux-2.42.start/sys-utils/setpriv.c:564:35: warning[-Wanalyzer-malloc-leak]: leak of ‘my_caps’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def759]
util-linux-2.42.start/sys-utils/setpriv.c:568:51: warning[-Wanalyzer-malloc-leak]: leak of ‘my_caps’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def760]
util-linux-2.42.start/sys-utils/setpriv.c:571:33: warning[-Wanalyzer-malloc-leak]: leak of ‘my_caps’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def761]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def762]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def763]
util-linux-2.42.start/sys-utils/setpriv.c:601:25: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def764]
util-linux-2.42.start/sys-utils/setpriv.c:607:33: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def765]
util-linux-2.42.start/sys-utils/setpriv.c:620:33: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def766]
util-linux-2.42.start/sys-utils/setpriv.c:625:33: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def767]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def768]
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)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def769]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def770]
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.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def771]
util-linux-2.42.start/sys-utils/swapoff.c:89:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def772]
util-linux-2.42.start/sys-utils/swapoff.c:93:9: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
Error: CPPCHECK_WARNING (CWE-457): [#def773]
util-linux-2.42.start/sys-utils/swapoff.c:94: warning[uninitvar]: Uninitialized variable: path
Error: GCC_ANALYZER_WARNING (CWE-457): [#def774]
util-linux-2.42.start/sys-utils/swapoff.c:95:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘<return-value>’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def775]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def776]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def777]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def778]
util-linux-2.42.start/sys-utils/switch_root.c:213:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/", 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def779]
util-linux-2.42.start/sys-utils/switch_root.c:219:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/", 0)’
Error: CPPCHECK_WARNING (CWE-457): [#def780]
util-linux-2.42.start/sys-utils/umount.c:598: error[legacyUninitvar]: Uninitialized variable: path
Error: GCC_ANALYZER_WARNING (CWE-775): [#def781]
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)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def782]
util-linux-2.42.start/sys-utils/unshare.c:122:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/setgroups", 1)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def783]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def784]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def785]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def786]
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.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def787]
util-linux-2.42.start/sys-utils/wdctl.c:441:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*wd.devpath, 524289)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def788]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def789]
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’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def790]
util-linux-2.42.start/term-utils/agetty.c:1716:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dirname, 589824)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def791]
util-linux-2.42.start/term-utils/agetty.c:1716:18: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def792]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def793]
util-linux-2.42.start/term-utils/agetty.c:1781:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "re")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def794]
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")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def795]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def796]
util-linux-2.42.start/term-utils/agetty.c:1793:49: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def797]
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
Error: GCC_ANALYZER_WARNING (CWE-404): [#def798]
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’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def799]
util-linux-2.42.start/term-utils/agetty.c:2542:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def800]
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
Error: GCC_ANALYZER_WARNING (CWE-688): [#def801]
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
Error: GCC_ANALYZER_WARNING (CWE-401): [#def802]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def803]
util-linux-2.42.start/term-utils/agetty.c:2768:17: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def804]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def805]
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’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def806]
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
Error: GCC_ANALYZER_WARNING (CWE-688): [#def807]
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
Error: GCC_ANALYZER_WARNING (CWE-775): [#def808]
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.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def809]
util-linux-2.42.start/term-utils/script-playutils.c:87:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def810]
util-linux-2.42.start/term-utils/setterm.c:729:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_snapshot_device(ctl)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def811]
util-linux-2.42.start/term-utils/setterm.c:790:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*ctl.opt_sn_name, <unknown>)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def812]
util-linux-2.42.start/term-utils/setterm.c:790:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*ctl.opt_sn_name, <unknown>)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def813]
util-linux-2.42.start/term-utils/setterm.c:792:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*ctl.opt_sn_name, <unknown>)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def814]
util-linux-2.42.start/term-utils/setterm.c:792:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*ctl.opt_sn_name, <unknown>)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def815]
util-linux-2.42.start/term-utils/setterm.c:808:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def816]
util-linux-2.42.start/term-utils/setterm.c:808:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def817]
util-linux-2.42.start/term-utils/setterm.c:813:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def818]
util-linux-2.42.start/term-utils/setterm.c:817:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def819]
util-linux-2.42.start/term-utils/setterm.c:817:9: warning[-Wanalyzer-malloc-leak]: leak of ‘q’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def820]
util-linux-2.42.start/term-utils/wall.c:358:34: warning[-Wanalyzer-malloc-leak]: leak of ‘fs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def821]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def822]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def823]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def824]
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
Error: GCC_ANALYZER_WARNING (CWE-688): [#def825]
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
Error: GCC_ANALYZER_WARNING (CWE-401): [#def826]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def827]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def828]
util-linux-2.42.start/term-utils/wall.c:420:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def829]
util-linux-2.42.start/term-utils/wall.c:420:30: warning[-Wanalyzer-malloc-leak]: leak of ‘lbuf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def830]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def831]
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 ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def832]
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.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def833]
util-linux-2.42.start/text-utils/bits.c:321:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argv’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def834]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def835]
util-linux-2.42.start/text-utils/colcrt.c:161:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl.f’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def836]
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:390: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.
util-linux-2.42.start/text-utils/hexdump-display.c:42: included_from: Included from here.
/usr/include/string.h:75:12: note: argument 1 of ‘memcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def837]
util-linux-2.42.start/text-utils/hexdump-display.c:390: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
Error: GCC_ANALYZER_WARNING (CWE-401): [#def838]
util-linux-2.42.start/text-utils/hexdump-parse.c:55:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def839]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def840]
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>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def841]
util-linux-2.42.start/text-utils/hexdump-parse.c:65:9: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def842]
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>, ":@,"))’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def843]
util-linux-2.42.start/text-utils/hexdump-parse.c:503:31: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def844]
util-linux-2.42.start/text-utils/hexdump-parse.c:503:31: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def845]
util-linux-2.42.start/text-utils/hexdump-parse.c:607:1: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def846]
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’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def847]
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
Error: GCC_ANALYZER_WARNING (CWE-401): [#def848]
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’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def849]
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.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def850]
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’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def851]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def852]
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’
Error: GCC_ANALYZER_WARNING (CWE-127): [#def853]
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’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def854]
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’
Error: GCC_ANALYZER_WARNING (CWE-124): [#def855]
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’
Error: CPPCHECK_WARNING (CWE-476): [#def856]
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
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-129.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.20260204012133086027.pr4012.1336.g6ef7cfa69 |
| store-results-to | /tmp/tmpi7ntt52k/util-linux-2.42.start-7.20260204012133086027.pr4012.1336.g6ef7cfa69.tar.xz |
| time-created | 2026-02-04 05:10:51 |
| time-finished | 2026-02-04 05:28:26 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,shellcheck,gcc,clippy' '-o' '/tmp/tmpi7ntt52k/util-linux-2.42.start-7.20260204012133086027.pr4012.1336.g6ef7cfa69.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpi7ntt52k/util-linux-2.42.start-7.20260204012133086027.pr4012.1336.g6ef7cfa69.src.rpm' |
| tool-version | csmock-3.8.3.20260128.181932.g41af877-1.el9 |