util-linux-2.42.start-1.20250326112439118072.pr3486.166.g862f9e58b
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c: scope_hint: In function ‘menu_set_title’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:950:1: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:64: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/debug.h:104:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:270:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
util-linux-2.42.start-build/util-linux-2.42.start/include/debug.h:104:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:270:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:55: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:266:25: note: in expansion of macro ‘__UL_DBG’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:2168:9: note: in expansion of macro ‘DBG’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:60: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:266:25: note: in expansion of macro ‘__UL_DBG’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:902:9: note: in expansion of macro ‘DBG’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c: scope_hint: In function ‘ui_create_label’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:2179:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(fdisk_get_nlabels(*cf.cxt) + 1, 32) + i * 32’
util-linux-2.42.start-build/util-linux-2.42.start/include/debug.h:104:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:270:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
util-linux-2.42.start-build/util-linux-2.42.start/include/debug.h:104:17: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_STRING’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:270:9: note: in expansion of macro ‘__UL_INIT_DEBUG_FROM_ENV’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:266:25: note: in expansion of macro ‘__UL_DBG’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/cfdisk.c:2168:9: note: in expansion of macro ‘DBG’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdformat.c: scope_hint: In function ‘verify_disk’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdformat.c:127:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)track_size) + (sizetype)count’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdformat.c:28: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdformat.c:127:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)track_size)’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdformat.c:20: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdisk-menu.c: scope_hint: In function ‘next_menu_entry’
util-linux-2.42.start-build/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-build/util-linux-2.42.start/include/pt-mbr.h:8: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdisk-menu.c:21: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdisk.c: scope_hint: In function ‘strtosize_sectors’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdisk.c:667:12: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def7]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdisk.c: scope_hint: In function ‘skip_empty’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdisk.c:957:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘p0’ where non-null expected
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdisk.h:18: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdisk.c:47: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdisk.c:35: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdisk.c:36: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdisk.c:17: included_from: Included from here.
/usr/include/string.h:64:12: note: argument 1 of ‘memcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdisk.c: scope_hint: In function ‘dump_buffer’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fdisk.c:976:36: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fsck.c: scope_hint: In function ‘compile_fs_type’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fsck.c:995:28: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(fs_type)’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fsck.c:64: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fsck.c:58: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
util-linux-2.42.start-build/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-401): [#def11]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fsck.c:1011:44: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(fs_type)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def12]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/mkfs.cramfs.c:343:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(len + 257)’ where non-null expected
/usr/include/features.h:524: included_from: Included from here.
/usr/include/sys/types.h:25: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/mkfs.cramfs.c:28: included_from: Included from here.
/usr/include/sys/stat.h:327:12: note: argument 1 of ‘lstat’ must be non-null
Error: CPPCHECK_WARNING (CWE-190): [#def13]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/mkfs.cramfs.c:380: error[integerOverflow]: Signed integer overflow for expression '-(1<<24)'.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/setpriv.c:35: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/all-io.h: scope_hint: In function ‘do_seccomp_filter’
util-linux-2.42.start-build/util-linux-2.42.start/include/all-io.h:97:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(file, 0)’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/setpriv.c:22: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-476): [#def15]
util-linux-2.42.start-build/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-416): [#def16]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:56:19: warning[-Wanalyzer-use-after-free]: use after 'free' of 'child'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/line.c: scope_hint: In function 'scols_line_add_child'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/smartcolsP.h:19: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/line.c:247:9: note: in expansion of macro 'DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/line.c:223:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:58:20: warning[-Wanalyzer-malloc-leak]: leak of ‘new_counter_spec(optarg)’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.h:41: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:58: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:58:20: warning[-Wanalyzer-malloc-leak]: leak of ‘new_miscdev(minor, & name)’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/cdev.c: scope_hint: In function ‘read_misc’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.h:41: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:15: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:58:20: warning[-Wanalyzer-malloc-leak]: leak of ‘new_nodev(minor, filesystem)’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘add_nodev’
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:48: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:913:13: note: in expansion of macro ‘is_association’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:913:13: note: in expansion of macro ‘is_association’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:58:20: warning[-Wanalyzer-malloc-leak]: leak of ‘new_partition(__dev, & name)’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/bdev.c: scope_hint: In function ‘read_partitions’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.h:41: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:15: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:58:20: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_block(optarg, 25, & ioctls, 1)’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/enosys.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/enosys.c:35: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:58:20: warning[-Wanalyzer-malloc-leak]: leak of ‘read_ttydrv(&line)’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/cdev.c: scope_hint: In function ‘read_tty_drivers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:58:20: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 24)’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/kill.c: scope_hint: In function ‘parse_arguments’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:58:20: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 32)’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/logger.c: scope_hint: In function ‘add_structured_data_id’
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/all-io.h:20: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/logger.c:57: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/logger.c: scope_hint: In function ‘add_structured_data_id’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/logger.c:63: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:58:20: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 48)’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/prlimit.c: scope_hint: In function ‘add_prlim’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/prlimit.c:28: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h: scope_hint: In function ‘add_prlim’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:58:20: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 56)’
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/hexdump-parse.c: scope_hint: In function ‘color_fmt’
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/hexdump-parse.c:46: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/hexdump.h:38: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:18: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:58:20: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(24)’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsclocks.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsclocks.c:38: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:58:20: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(32)’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/unkn.c: scope_hint: In function ‘add_inode’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.h:41: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:84:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cxt'
util-linux-2.42.start-build/util-linux-2.42.start/libfdisk/src/wipe.c: scope_hint: In function 'fdisk_set_wipe_area'
util-linux-2.42.start-build/util-linux-2.42.start/libfdisk/src/fdiskP.h:26: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libfdisk/src/fdiskP.h:48:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libfdisk/src/wipe.c:90:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/smartcolsP.h:15: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/calculate.c:1: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h: scope_hint: In function 'merge_and_restore_back_links'
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:314:34: warning[-Wanalyzer-null-dereference]: dereference of NULL 'list'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/smartcolsP.h:19: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/calculate.c:501:25: note: in expansion of macro 'DBG'
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h: scope_hint: In function 'merge_and_restore_back_links'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/partx.c:37: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/strutils.h: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/include/strutils.h:274:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>)’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/partx.c:38: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/partx.c:33: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/uuidgen.c:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘unhex’
util-linux-2.42.start-build/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): [#def33]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/mkswap.c:50: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘check_blocks’
util-linux-2.42.start-build/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-build/util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/mkswap.c:54: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/setpriv-landlock.c:19: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘parse_landlock_rule’
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(32)’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/setpriv-landlock.c:18: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fsck.cramfs.c:70: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘test_crc’
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(4096)’
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/fsck.cramfs.c:58: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
util-linux-2.42.start-build/util-linux-2.42.start/disk-utils/mkfs.cramfs.c:61: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘parse_directory’
util-linux-2.42.start-build/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): [#def37]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/readprofile.c:50: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(len)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘color_fmt’
util-linux-2.42.start-build/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-build/util-linux-2.42.start/text-utils/hexdump-parse.c:238:9: note: in expansion of macro ‘list_for_each’
/usr/include/libintl.h:100: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/nls.h:27: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/hexdump-parse.c:45: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/irq-common.c:31: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xreallocarray’
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h:54:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/irq-common.c: scope_hint: In function ‘xreallocarray’
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/irq-common.c:27: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/irq-common.c:30: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘open_pidfds(n_pids, parse_pids(n_pids, argv + (long unsigned int)parse_options(argc, argv) * 8))’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_pids(n_pids, argv + (long unsigned int)parse_options(argc, argv) * 8)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/lslogins.c:57: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 112)’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/lslogins.c:1647:9: note: in expansion of macro ‘add_column’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/lslogins.c:1647:9: note: in expansion of macro ‘add_column’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/lslogins.c:1648:9: note: in expansion of macro ‘add_column’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/lslogins.c:1648:9: note: in expansion of macro ‘add_column’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/lscpu.h:20: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/lscpu.c:37: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 224)’
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/lscpu.c: scope_hint: In function ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/kill.c:64: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘parse_arguments’
util-linux-2.42.start-build/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): [#def45]
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.h:41: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:48: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘tcp_xinfo_scan_line’
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 72)’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘tcp_xinfo_scan_line’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘tcp_xinfo_scan_line’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘tcp_xinfo_scan_line’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/lsipc.c:42: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘main’
util-linux-2.42.start-build/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): [#def47]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/waitpid.c:34: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘open_pidfds’
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(n_pids, 4)’
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h:19: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/strutils.h:53:64: note: in definition of macro ‘strtopid_or_err’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/waitpid.c:54:55: note: in expansion of macro ‘_’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def48]
util-linux-2.42.start-build/util-linux-2.42.start/term-utils/wall.c:70: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xgethostname’
util-linux-2.42.start-build/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-build/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-401): [#def49]
util-linux-2.42.start-build/util-linux-2.42.start/lib/colors.c: scope_hint: In function 'colors_add_scheme'
util-linux-2.42.start-build/util-linux-2.42.start/lib/colors.c:393:12: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(name)'
util-linux-2.42.start-build/util-linux-2.42.start/lib/colors.c:39: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/lib/colors.c:61:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/lib/colors.c:508:9: note: in expansion of macro 'DBG'
util-linux-2.42.start-build/util-linux-2.42.start/lib/colors.c:61:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/lib/colors.c:372:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING: [#def50]
util-linux-2.42.start-build/util-linux-2.42.start/lib/pager.c: scope_hint: In function ‘pager_close’
util-linux-2.42.start-build/util-linux-2.42.start/lib/pager.c:305:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
util-linux-2.42.start-build/util-linux-2.42.start/lib/pager.c: scope_hint: In function ‘pager_close’
util-linux-2.42.start-build/util-linux-2.42.start/lib/pager.c: scope_hint: In function ‘pager_close’
Error: GCC_ANALYZER_WARNING: [#def51]
util-linux-2.42.start-build/util-linux-2.42.start/lib/pager.c:306:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
util-linux-2.42.start-build/util-linux-2.42.start/lib/pager.c: scope_hint: In function ‘pager_close’
util-linux-2.42.start-build/util-linux-2.42.start/lib/pager.c: scope_hint: In function ‘pager_close’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def52]
util-linux-2.42.start-build/util-linux-2.42.start/lib/path.c: scope_hint: In function 'ul_path_read_buffer'
util-linux-2.42.start-build/util-linux-2.42.start/lib/path.c:695:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/lib/path.c:24: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/lib/path.c:28: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/lib/path.c:40:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/lib/path.c:417:17: note: in expansion of macro 'DBG'
util-linux-2.42.start-build/util-linux-2.42.start/lib/path.c:22: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
util-linux-2.42.start-build/util-linux-2.42.start/lib/randutils.c: scope_hint: In function 'ul_random_get_bytes'
util-linux-2.42.start-build/util-linux-2.42.start/lib/randutils.c:138:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'random_get_fd()'
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:18: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/lib/randutils.c:19: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
util-linux-2.42.start-build/util-linux-2.42.start/lib/strutils.c: scope_hint: In function 'isdigit_strend'
util-linux-2.42.start-build/util-linux-2.42.start/lib/strutils.c:234:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
util-linux-2.42.start-build/util-linux-2.42.start/lib/strutils.c: scope_hint: In function ‘isdigit_strend’
util-linux-2.42.start-build/util-linux-2.42.start/lib/strutils.c:234:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
util-linux-2.42.start-build/util-linux-2.42.start/lib/strutils.c: scope_hint: In function 'isxdigit_strend'
util-linux-2.42.start-build/util-linux-2.42.start/lib/strutils.c:246:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
util-linux-2.42.start-build/util-linux-2.42.start/lib/strutils.c: scope_hint: In function ‘isxdigit_strend’
util-linux-2.42.start-build/util-linux-2.42.start/lib/strutils.c:246:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def58]
util-linux-2.42.start-build/util-linux-2.42.start/libblkid/src/partitions/partitions.c: scope_hint: In function 'unref_parttable'
util-linux-2.42.start-build/util-linux-2.42.start/libblkid/src/partitions/partitions.c:330:12: warning[-Wanalyzer-use-after-free]: use after 'free' of 'tab'
util-linux-2.42.start-build/util-linux-2.42.start/libblkid/src/partitions/partitions.c: scope_hint: In function 'unref_parttable'
util-linux-2.42.start-build/util-linux-2.42.start/libblkid/src/blkidP.h:30: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libblkid/src/partitions/partitions.h:4: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libblkid/src/partitions/partitions.c:23: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:179:41: note: in expansion of macro 'container_of'
util-linux-2.42.start-build/util-linux-2.42.start/libblkid/src/partitions/partitions.c:345:39: note: in expansion of macro 'list_entry'
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:179:41: note: in expansion of macro 'container_of'
util-linux-2.42.start-build/util-linux-2.42.start/libblkid/src/partitions/partitions.c:345:39: note: in expansion of macro 'list_entry'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
util-linux-2.42.start-build/util-linux-2.42.start/libblkid/src/topology/dm.c: scope_hint: In function 'probe_dm_tp'
util-linux-2.42.start-build/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): [#def60]
util-linux-2.42.start-build/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): [#def61]
util-linux-2.42.start-build/util-linux-2.42.start/libblkid/src/topology/lvm.c: scope_hint: In function 'probe_lvm_tp'
util-linux-2.42.start-build/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): [#def62]
util-linux-2.42.start-build/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-401): [#def63]
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/fs.c:163:9: warning[-Wanalyzer-malloc-leak]: leak of '*m.mnt_dir'
util-linux-2.42.start-build/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-build/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): [#def64]
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/fs.c: scope_hint: In function 'update_str'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/fs.c:163:9: warning[-Wanalyzer-malloc-leak]: leak of '*m.mnt_fsname'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/fs.c:23: included_from: Included from here.
util-linux-2.42.start-build/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-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/mountP.h:29: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/fs.c:163:9: warning[-Wanalyzer-malloc-leak]: leak of '*m.mnt_type'
util-linux-2.42.start-build/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-build/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-build/util-linux-2.42.start/libmount/src/fs.c:778:9: note: in expansion of macro 'mnt_fs_try_statmount'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/hook_idmap.c: scope_hint: In function 'hook_prepare_options'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/hook_idmap.c:465:25: warning[-Wanalyzer-malloc-leak]: leak of 'idmap'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/mountP.h:31: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/hook_idmap.c:28: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:42:24: note: in definition of macro 'INIT_LIST_HEAD'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/hook_idmap.c:24: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/tab.c: scope_hint: In function 'mnt_table_find_target'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/tab.c:1196:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'fs'
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/mountP.h:29: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/tab.c:52: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/mountP.h:32: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/tab.c:1775:9: note: in expansion of macro 'DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/tab.c:1781:17: note: in expansion of macro 'DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/tab.c:1100:9: note: in expansion of macro 'DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/tab.c:1154:9: note: in expansion of macro 'DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/tab.c:1179:9: note: in expansion of macro 'DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/mountP.h:189:28: note: in expansion of macro 'IS_ITER_FORWARD'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/tab.c:868:17: note: in expansion of macro 'MNT_ITER_INIT'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def68]
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/utils.c: scope_hint: In function 'mnt_free_filesystems.part.0'
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/utils.c:574:31: warning[-Wanalyzer-use-after-free]: use after 'reallocarray' of 'p'
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/strutils.h:19: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libmount/src/utils.c:24: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c: scope_hint: In function 'yyparse'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:393:21: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:95:40: note: in definition of macro 'YY_CAST'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:379:25: note: in expansion of macro 'YYMALLOC'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:1285:20: note: in expansion of macro 'YYSTACK_ALLOC'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:1355:17: note: in expansion of macro 'YYTRANSLATE'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:95:40: note: in definition of macro 'YY_CAST'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:379:25: note: in expansion of macro 'YYMALLOC'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:1285:20: note: in expansion of macro 'YYSTACK_ALLOC'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:438:9: note: in expansion of macro 'YYCOPY'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:1288:9: note: in expansion of macro 'YYSTACK_RELOCATE'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:95:40: note: in definition of macro 'YY_CAST'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:379:25: note: in expansion of macro 'YYMALLOC'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:1285:20: note: in expansion of macro 'YYSTACK_ALLOC'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def70]
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:453:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyss'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:438:9: note: in expansion of macro 'YYCOPY'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:1288:9: note: in expansion of macro 'YYSTACK_RELOCATE'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:438:9: note: in expansion of macro 'YYCOPY'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:1288:9: note: in expansion of macro 'YYSTACK_RELOCATE'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:438:9: note: in expansion of macro 'YYCOPY'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-parser.c:1288:9: note: in expansion of macro 'YYSTACK_RELOCATE'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_create_buffer'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-scanner.c:1484:12: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(64)'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_create_buffer'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_create_buffer'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-scanner.c:1484:12: warning[-Wanalyzer-malloc-leak]: leak of 'yyalloc(64, yyscanner)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_init_buffer'
util-linux-2.42.start-build/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): [#def74]
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_scan_buffer'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-scanner.c:1744:25: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(n)'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_scan_buffer'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_scan_buffer'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/filter-scanner.c:1744:25: warning[-Wanalyzer-malloc-leak]: leak of 'yyalloc(n, yyscanner)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/print.c: scope_hint: In function 'print_json_data'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/print.c:544:71: warning[-Wanalyzer-null-dereference]: dereference of NULL 'data'
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/smartcolsP.h:14: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/print.c:26: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/smartcolsP.h:19: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/print.c:874:9: note: in expansion of macro 'DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/print.c:855:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/print.c:548:42: warning[-Wanalyzer-null-dereference]: dereference of NULL 'data'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/print.c:874:9: note: in expansion of macro 'DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.42.start-build/util-linux-2.42.start/libsmartcols/src/print.c:855:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/chfn.c: scope_hint: In function ‘parse_passwd’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/chfn.c:215:1: warning[-Wanalyzer-malloc-leak]: leak of ‘gecos’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/chfn.c:42: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/chfn.c:35: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/last.c: scope_hint: In function ‘process_wtmp_file’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/last.c:196:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/last.c:49: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/last.c:47: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/last.c:196:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/last.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/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-476): [#def82]
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/login.c: scope_hint: In function ‘process_title_init’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/login.c:239:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘environ’
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/path.h:14: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/login.c:49: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/login.c:240:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘environ’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def84]
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/login.c: scope_hint: In function ‘open_tty’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/login.c:455:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘i’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/login.c:36: included_from: Included from here.
Error: GCC_ANALYZER_WARNING: [#def85]
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/login.c:458:25: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘i’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘parse_utmpx.part.0’
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/lslogins.c:521:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ary’
Error: GCC_ANALYZER_WARNING: [#def87]
util-linux-2.42.start-build/util-linux-2.42.start/login-utils/sulogin.c: scope_hint: In function ‘setup’
util-linux-2.42.start-build/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: [#def88]
util-linux-2.42.start-build/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: [#def89]
util-linux-2.42.start-build/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-476): [#def90]
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘new_file’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:733:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, *class.size)’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:887:26: note: in expansion of macro ‘list_last_entry’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘new_readlink_error_file’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:752:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, readlink_error_class.size)’
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:18: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘new_stat_error_file’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:772:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, stat_error_class.size)’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:887:26: note: in expansion of macro ‘list_last_entry’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘copy_file’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:792:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, *old_9(D)->class.size)’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:887:26: note: in expansion of macro ‘list_last_entry’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:887:26: note: in expansion of macro ‘list_last_entry’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘reset_cooked_bdev’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:1139:1: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(filesystem)’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:913:13: note: in expansion of macro ‘is_association’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:913:13: note: in expansion of macro ‘is_association’
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:29: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:1170:9: note: in expansion of macro ‘list_for_each’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def95]
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘add_nodevs_from_cooked_bdevs’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:1330:31: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘n’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:913:13: note: in expansion of macro ‘is_association’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:913:13: note: in expansion of macro ‘is_association’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:1186:9: note: in expansion of macro ‘list_for_each_safe’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:1186:9: note: in expansion of macro ‘list_for_each_safe’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘add_nodevs_from_cooked_bdevs’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:1327:9: note: in expansion of macro ‘list_for_each’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:2095:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘parse_pids’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.c:2095:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘outarg’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘load_xinfo_from_proc_unix’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:786:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 152)’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.h:35: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.h:52:25: note: in expansion of macro ‘__UL_DBG’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:771:17: note: in expansion of macro ‘DBG’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.h:40: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘load_xinfo_from_proc_netlink’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:2091:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 40)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘load_xinfo_from_proc_packet’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:2493:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 32)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c: scope_hint: In function ‘handle_diag_vsock’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:2697:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 48)’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/lsfd.h:52:25: note: in expansion of macro ‘__UL_DBG’
util-linux-2.42.start-build/util-linux-2.42.start/lsfd-cmd/sock-xinfo.c:2666:9: note: in expansion of macro ‘DBG’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def102]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/blkid.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/blkid.c:889:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)(argc - optind), 8)’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/blkid.c:49: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/blkid.c:18: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/cal.c: scope_hint: In function ‘monthly’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/cal.c:1085:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)*ctl.months_in_row, 208) + (sizetype)i * 208’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/cal.c:79: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/enosys.c: scope_hint: In function ‘parse_block’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/enosys.c:151:16: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/enosys.c:29: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/enosys.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/enosys.c:187:28: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_block(optarg, 38, & syscalls, 379)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/getopt.c: scope_hint: In function ‘print_normalized.part.0’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/getopt.c:133:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(strlen(arg) * 4 + 3)’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/getopt.c:74: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def107]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/getopt.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/getopt.c:418:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ctl.optstr’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
Error: CPPCHECK_WARNING (CWE-401): [#def108]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/getopt.c:449: error[memleak]: Memory leak: ctl.name
Error: GCC_ANALYZER_WARNING (CWE-476): [#def109]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c:529:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)n, 8)’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
util-linux-2.42.start-build/util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c:58: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c:55: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def110]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c:533:9: warning[-Wanalyzer-null-argument]: use of NULL ‘xcalloc((long unsigned int)n, 8)’ where non-null expected
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:16: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c:54: included_from: Included from here.
/usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/kill.c: scope_hint: In function ‘parse_arguments’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/kill.c:376:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/look.c: scope_hint: In function ‘compare’
util-linux-2.42.start-build/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-build/util-linux-2.42.start/misc-utils/look.c:61: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/look.c:57: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
util-linux-2.42.start-build/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): [#def114]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsblk.h:18: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsblk-devtree.c:19: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsblk-devtree.c: scope_hint: In function ‘cmp_devices_devno’
util-linux-2.42.start-build/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-build/util-linux-2.42.start/include/c.h:174:29: note: in definition of macro ‘cmp_numbers’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsblk.h:19: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:174:29: note: in definition of macro ‘cmp_numbers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsblk-properties.c:201:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.label’
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsblk-properties.c:8: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsblk.h:20: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsblk-properties.c:15: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsblk.h:30:25: note: in expansion of macro ‘__UL_DBG’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsblk-properties.c:219:9: note: in expansion of macro ‘DBG’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lsblk-properties.c:9: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def116]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lslocks.c: scope_hint: In function ‘is_holder’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lslocks.c:304:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lslocks.c:46: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lslocks.c:938:9: note: in expansion of macro ‘INIT_LIST_HEAD’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lslocks.c:43: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/list.h:193:21: note: in definition of macro ‘list_for_each’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lslocks.c:317:9: note: in expansion of macro ‘list_for_each’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/lslocks.c:26: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def117]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/mcookie.c: scope_hint: In function ‘randomness_from_files’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/mcookie.c:118:35: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def118]
util-linux-2.42.start-build/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): [#def119]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/mcookie.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/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-build/util-linux-2.42.start/misc-utils/mcookie.c:31: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def120]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/namei.c: scope_hint: In function ‘dotdot_stat’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/namei.c:145:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(len + 4)’ where non-null expected
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/namei.c:39: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/namei.c:38: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/namei.c:29: included_from: Included from here.
/usr/include/features.h:524: 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-build/util-linux-2.42.start/misc-utils/namei.c:22: included_from: Included from here.
/usr/include/sys/stat.h:227:12: note: argument 1 of ‘stat’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/rename.c: scope_hint: In function ‘string_replace’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/rename.c:91:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/rename.c:37: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
util-linux-2.42.start-build/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): [#def123]
util-linux-2.42.start-build/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-build/util-linux-2.42.start/misc-utils/rename.c:34: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
util-linux-2.42.start-build/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): [#def125]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/rename.c: scope_hint: In function ‘do_symlink’
util-linux-2.42.start-build/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-build/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-476): [#def126]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/waitpid.c: scope_hint: In function ‘parse_pids’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/waitpid.c:54:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_strings, 4)’
util-linux-2.42.start-build/util-linux-2.42.start/include/strutils.h:53:64: note: in definition of macro ‘strtopid_or_err’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/waitpid.c:54:55: note: in expansion of macro ‘_’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def127]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/waitpid.c: scope_hint: In function ‘open_pidfds’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/waitpid.c:64:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_pids, 4) + i * 4’
util-linux-2.42.start-build/util-linux-2.42.start/include/strutils.h:53:64: note: in definition of macro ‘strtopid_or_err’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/waitpid.c:54:55: note: in expansion of macro ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def128]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/blkpr.c: scope_hint: In function ‘do_pr’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/blkpr.c:166:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 2)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def129]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/irq-common.c: scope_hint: In function ‘sort_result’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/irq-common.c:402:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/irq-common.c: scope_hint: In function ‘sort_result’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/irq-common.c:20: included_from: Included from here.
/usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def130]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/irq-common.c: scope_hint: In function ‘get_scols_table’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/irq-common.c:558:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cur’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/irq-common.c: scope_hint: In function ‘get_scols_table’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def131]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/ldattach.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/ldattach.c:390:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev, 258)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def132]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/lscpu-cpu.c: scope_hint: In function ‘lscpu_create_cpus’
util-linux-2.42.start-build/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-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/lscpu.h:17: included_from: Included from here.
util-linux-2.42.start-build/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-build/util-linux-2.42.start/include/cpuset.h:10: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/lscpu.h:19: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/lscpu.h:20: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/lscpu.h:26: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/lscpu.h:37:25: note: in expansion of macro ‘__UL_DBG’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/lscpu-cpu.c:27:9: note: in expansion of macro ‘DBG’
Error: CPPCHECK_WARNING (CWE-457): [#def133]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/mount.c:880: error[legacyUninitvar]: Uninitialized variable: path
Error: GCC_ANALYZER_WARNING (CWE-775): [#def134]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/nsenter.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/nsenter.c:177:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/nsenter.c:46: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def135]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/nsenter.c: scope_hint: In function ‘open_target_fd’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/nsenter.c:177:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*((struct namespace_file (*)[9])n)[preserve_cred].fd’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/nsenter.c:197:41: note: in expansion of macro ‘get_nsfile’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/nsenter.c:197:41: note: in expansion of macro ‘get_nsfile’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def136]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/readprofile.c:229:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&defaultpro, 1)’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/readprofile.c:47: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:62:62: note: in definition of macro ‘ignore_result’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/readprofile.c:276:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(len)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def138]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/setpgid.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/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): [#def139]
util-linux-2.42.start-build/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): [#def140]
util-linux-2.42.start-build/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-775): [#def141]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/setpriv.c: scope_hint: In function ‘do_selinux_label’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/setpriv.c:654:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/attr/exec", 2)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def142]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/setpriv.c: scope_hint: In function ‘do_seccomp_filter’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/setpriv.c:695:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(file, 0)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/swapoff.c: scope_hint: In function ‘do_swapoff’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/swapoff.c:82:35: warning[-Wanalyzer-malloc-leak]: leak of ‘swapoff_resolve_tag(name, value, mntcache)’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/swapoff.c:24: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/swapoff.c:23: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-457): [#def144]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/umount.c:598: error[legacyUninitvar]: Uninitialized variable: path
Error: GCC_ANALYZER_WARNING (CWE-775): [#def145]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/unshare.c: scope_hint: In function ‘setgroups_control.part.0’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/unshare.c:118:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/setgroups", 1)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/zramctl.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/zramctl.c:916:33: warning[-Wanalyzer-malloc-leak]: leak of ‘new_zram(*<unknown>)’
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/zramctl.c:40: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/zramctl.c:42: included_from: Included from here.
/usr/include/systemd/sd-device.h:20: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/sys-utils/zramctl.c:33: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def147]
util-linux-2.42.start-build/util-linux-2.42.start/term-utils/agetty.c: scope_hint: In function ‘issuefile_read_stream.part.0’
util-linux-2.42.start-build/util-linux-2.42.start/term-utils/agetty.c:1858:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
util-linux-2.42.start-build/util-linux-2.42.start/term-utils/agetty.c:14: included_from: Included from here.
/usr/include/stdio.h:609:12: note: argument 2 of ‘putc’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def148]
util-linux-2.42.start-build/util-linux-2.42.start/term-utils/agetty.c: scope_hint: In function ‘output_special_char’
util-linux-2.42.start-build/util-linux-2.42.start/term-utils/agetty.c:2715:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_fputc’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def149]
util-linux-2.42.start-build/util-linux-2.42.start/term-utils/agetty.c:2790: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): [#def150]
util-linux-2.42.start-build/util-linux-2.42.start/term-utils/agetty.c:2885:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
/usr/include/stdio.h:609:12: note: argument 2 of ‘putc’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def151]
util-linux-2.42.start-build/util-linux-2.42.start/term-utils/wall.c: scope_hint: In function ‘makemsg’
util-linux-2.42.start-build/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-build/util-linux-2.42.start/term-utils/wall.c:54: included_from: Included from here.
/usr/include/stdio.h:357:12: note: argument 1 of ‘fprintf’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def152]
util-linux-2.42.start-build/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:357:12: note: argument 1 of ‘fprintf’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/bits.c: scope_hint: In function ‘main’
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/bits.c:321:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argv’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def154]
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/hexdump-display.c: scope_hint: In function ‘get’
util-linux-2.42.start-build/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-build/util-linux-2.42.start/text-utils/hexdump-display.c:44: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/hexdump-display.c:42: included_from: Included from here.
/usr/include/string.h:64:12: note: argument 1 of ‘memcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def155]
util-linux-2.42.start-build/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:64:12: note: argument 2 of ‘memcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def156]
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/hexdump-parse.c: scope_hint: In function ‘rewrite_rules’
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/hexdump-parse.c:284:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p1’
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/hexdump-parse.c:238:9: note: in expansion of macro ‘list_for_each’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/hexdump-parse.c: scope_hint: In function ‘color_fmt’
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/hexdump-parse.c:492:21: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/more.c: scope_hint: In function ‘argscan’
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/more.c:287:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘as_argv’
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/more.c:86: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/c.h:22: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/include/strutils.h:19: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/more.c:84: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def159]
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/more.c:310: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-build/util-linux-2.42.start/text-utils/more.c:66: 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-476): [#def160]
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/rev.c: scope_hint: In function ‘reverse_str’
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/rev.c:94:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘str’
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/rev.c:62: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def161]
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/rev.c: scope_hint: In function ‘write_line’
util-linux-2.42.start-build/util-linux-2.42.start/text-utils/rev.c:117:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘str’
Error: CPPCHECK_WARNING (CWE-476): [#def162]
util-linux-2.42.start-build/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.85.1 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-147.us-west-2.compute.internal |
mock-config | fedora-rawhide-x86_64 |
project-name | util-linux-2.42.start-1.20250326112439118072.pr3486.166.g862f9e58b |
store-results-to | /tmp/tmpzdxrbw0q/util-linux-2.42.start-1.20250326112439118072.pr3486.166.g862f9e58b.tar.xz |
time-created | 2025-03-26 11:46:14 |
time-finished | 2025-03-26 11:54:09 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,unicontrol,clippy,gcc' '-o' '/tmp/tmpzdxrbw0q/util-linux-2.42.start-1.20250326112439118072.pr3486.166.g862f9e58b.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpzdxrbw0q/util-linux-2.42.start-1.20250326112439118072.pr3486.166.g862f9e58b.src.rpm' |
tool-version | csmock-3.8.0-1.el9 |