util-linux-2.40.2-8.fc42
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fdformat.c: scope_hint: In function ‘verify_disk’
util-linux-2.40.2-build/util-linux-2.40.2/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.40.2-build/util-linux-2.40.2/disk-utils/fdformat.c:28: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fdformat.c:127:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)track_size)’
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fdformat.c:20: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fdisk.c: scope_hint: In function ‘strtosize_sectors’
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fdisk.c:657:12: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fsck.c: scope_hint: In function ‘compile_fs_type’
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fsck.c:992:28: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(fs_type)’
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fsck.c:64: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fsck.c:58: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fsck.c:1002:28: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(fs_type)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fsck.c:1008:44: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(fs_type)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def7]
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/mkfs.cramfs.c:304:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(len + 257)’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: CPPCHECK_WARNING (CWE-190): [#def8]
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/mkfs.cramfs.c:379: error[integerOverflow]: Signed integer overflow for expression '-(1<<24)'.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def9]
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fdisk.c:36: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/all-io.h: scope_hint: In function ‘read_all’
util-linux-2.40.2-build/util-linux-2.40.2/include/all-io.h:67:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fdisk.h:18: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fdisk.c:47: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fdisk.c:35: included_from: Included from here.
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-910): [#def10]
util-linux-2.40.2-build/util-linux-2.40.2/lib/pager.c:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h: scope_hint: In function ‘ul_sig_warn’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:431:41: warning[-Wanalyzer-fd-use-after-close]: ‘write’ on closed file descriptor ‘2’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:60:62: note: in definition of macro ‘ignore_result’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:438:9: note: in expansion of macro ‘ul_err_write’
util-linux-2.40.2-build/util-linux-2.40.2/lib/pager.c: scope_hint: In function ‘ul_sig_warn’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:18: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:60:62: note: in definition of macro ‘ignore_result’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:438:9: note: in expansion of macro ‘ul_err_write’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def11]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:53:19: warning[-Wanalyzer-use-after-free]: use after 'free' of 'child'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/line.c: scope_hint: In function 'scols_line_add_child'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/smartcolsP.h:19: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/line.c:247:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/line.c:223:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:55:20: warning[-Wanalyzer-malloc-leak]: leak of ‘new_counter_spec(optarg)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.h:41: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c:85: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:55:20: warning[-Wanalyzer-malloc-leak]: leak of ‘new_miscdev(minor, & name)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-cdev.c: scope_hint: In function ‘read_misc’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.h:41: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:15: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:55:20: warning[-Wanalyzer-malloc-leak]: leak of ‘new_nodev(minor, filesystem)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c: scope_hint: In function ‘add_nodev’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c:75: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c:821:16: note: in expansion of macro ‘list_last_entry’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘add_nodev’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c: scope_hint: In function ‘add_nodev’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c:821:16: note: in expansion of macro ‘list_last_entry’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:55:20: warning[-Wanalyzer-malloc-leak]: leak of ‘new_partition(__dev, & name)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-bdev.c: scope_hint: In function ‘read_partitions’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.h:41: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:15: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:55:20: warning[-Wanalyzer-malloc-leak]: leak of ‘read_ttydrv(&line)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-cdev.c: scope_hint: In function ‘read_tty_drivers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:55:20: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 24)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/kill.c: scope_hint: In function ‘parse_arguments’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:55:20: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 32)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/logger.c: scope_hint: In function ‘add_structured_data_id’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/all-io.h:20: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/logger.c:57: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/logger.c: scope_hint: In function ‘add_structured_data_id’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/logger.c:63: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:55:20: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 48)’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/prlimit.c: scope_hint: In function ‘add_prlim’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/prlimit.c:28: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h: scope_hint: In function ‘add_prlim’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:55:20: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 56)’
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump-parse.c: scope_hint: In function ‘color_fmt’
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump-parse.c:46: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump.h:38: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:18: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:55:20: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(24)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsclocks.c: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsclocks.c:38: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:55:20: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(32)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-unkn.c: scope_hint: In function ‘add_inode’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.h:41: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:81:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cxt'
util-linux-2.40.2-build/util-linux-2.40.2/libfdisk/src/wipe.c: scope_hint: In function 'fdisk_set_wipe_area'
util-linux-2.40.2-build/util-linux-2.40.2/libfdisk/src/fdiskP.h:25: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/libfdisk/src/fdiskP.h:47:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libfdisk/src/wipe.c:90:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def24]
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:107:9: warning[-Wanalyzer-use-after-free]: use after 'free' of 'v'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_free_value.part.0'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:34: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2095:17: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:150:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2398:17: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_free_value.part.0'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_free_value.part.0'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_free_value.part.0'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:676:9: note: in expansion of macro 'list_for_each_safe'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:885:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:885:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:885:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:30: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:176:41: note: in expansion of macro 'container_of'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:888:41: note: in expansion of macro 'list_entry'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:281:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:176:41: note: in expansion of macro 'container_of'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:888:41: note: in expansion of macro 'list_entry'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/smartcolsP.h:15: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/calculate.c:1: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h: scope_hint: In function 'merge_and_restore_back_links'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:311:34: warning[-Wanalyzer-null-dereference]: dereference of NULL 'list'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/smartcolsP.h:19: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/calculate.c:501:25: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h: scope_hint: In function 'merge_and_restore_back_links'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/partx.c:37: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/strutils.h: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/include/strutils.h:240:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>)’
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/partx.c:38: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/partx.c:33: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/uuidgen.c:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘unhex’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:34:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((*valuelen >> 1) + 1)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/setpriv-landlock.c:19: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘parse_landlock_rule’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:34:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(32)’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/setpriv-landlock.c:18: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fsck.cramfs.c:70: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘test_crc’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:34:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(4096)’
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/fsck.cramfs.c:58: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.h:41: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-sock-xinfo.c:44: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘raw6_xinfo_scan_line’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:34:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(72)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
util-linux-2.40.2-build/util-linux-2.40.2/disk-utils/mkfs.cramfs.c:61: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘parse_directory’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:34:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(len + 257)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/readprofile.c:50: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:34:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(len)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘color_fmt’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:34:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrndup(a, (long unsigned int)(p2 - a))’
util-linux-2.40.2-build/util-linux-2.40.2/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.40.2-build/util-linux-2.40.2/include/nls.h:27: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump-parse.c:45: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/irq-common.c:31: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘xreallocarray’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:56:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/irq-common.c: scope_hint: In function ‘xreallocarray’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/irq-common.c:27: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/irq-common.c:30: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:70: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): [#def36]
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:70: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): [#def37]
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/lslogins.c:53: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:70:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 112)’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/lslogins.c:1554:9: note: in expansion of macro ‘add_column’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/lslogins.c: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/lslogins.c:1554:9: note: in expansion of macro ‘add_column’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/lslogins.c:1555:9: note: in expansion of macro ‘add_column’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/lslogins.c: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/lslogins.c:1555:9: note: in expansion of macro ‘add_column’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu.h:18: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu.c:37: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:70:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 216)’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu.c: scope_hint: In function ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/kill.c:63: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘parse_arguments’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:70:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 24)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/hardlink.c:51: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘inserter.part.0’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:70:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 240)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘tcp_xinfo_scan_line’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:70:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 72)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-sock-xinfo.c: scope_hint: In function ‘tcp_xinfo_scan_line’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-sock-xinfo.c: scope_hint: In function ‘tcp_xinfo_scan_line’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-sock-xinfo.c: scope_hint: In function ‘tcp_xinfo_scan_line’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lsipc.c:39: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:70:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 8)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/waitpid.c:34: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘open_pidfds’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:70:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(n_pids, 4)’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:21: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/strutils.h:52:64: note: in definition of macro ‘strtopid_or_err’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/waitpid.c:54:55: note: in expansion of macro ‘_’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def44]
util-linux-2.40.2-build/util-linux-2.40.2/term-utils/wall.c:70: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h: scope_hint: In function ‘xgethostname’
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:176: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.40.2-build/util-linux-2.40.2/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): [#def45]
util-linux-2.40.2-build/util-linux-2.40.2/lib/colors.c: scope_hint: In function 'colors_add_scheme'
util-linux-2.40.2-build/util-linux-2.40.2/lib/colors.c:393:12: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(name)'
util-linux-2.40.2-build/util-linux-2.40.2/lib/colors.c:38: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/lib/colors.c:60:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/lib/colors.c:508:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/lib/colors.c:60:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/lib/colors.c:372:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING: [#def46]
util-linux-2.40.2-build/util-linux-2.40.2/lib/pager.c: scope_hint: In function ‘pager_close’
util-linux-2.40.2-build/util-linux-2.40.2/lib/pager.c:303:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
util-linux-2.40.2-build/util-linux-2.40.2/lib/pager.c: scope_hint: In function ‘pager_close’
util-linux-2.40.2-build/util-linux-2.40.2/lib/pager.c: scope_hint: In function ‘pager_close’
Error: GCC_ANALYZER_WARNING: [#def47]
util-linux-2.40.2-build/util-linux-2.40.2/lib/pager.c:304:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
util-linux-2.40.2-build/util-linux-2.40.2/lib/pager.c: scope_hint: In function ‘pager_close’
util-linux-2.40.2-build/util-linux-2.40.2/lib/pager.c: scope_hint: In function ‘pager_close’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
util-linux-2.40.2-build/util-linux-2.40.2/lib/randutils.c: scope_hint: In function 'ul_random_get_bytes'
util-linux-2.40.2-build/util-linux-2.40.2/lib/randutils.c:143:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'random_get_fd()'
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:18: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/lib/randutils.c:19: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
util-linux-2.40.2-build/util-linux-2.40.2/lib/strutils.c: scope_hint: In function 'isdigit_strend'
util-linux-2.40.2-build/util-linux-2.40.2/lib/strutils.c:234:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
util-linux-2.40.2-build/util-linux-2.40.2/lib/strutils.c: scope_hint: In function ‘isdigit_strend’
util-linux-2.40.2-build/util-linux-2.40.2/lib/strutils.c:234:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
util-linux-2.40.2-build/util-linux-2.40.2/lib/strutils.c: scope_hint: In function 'isxdigit_strend'
util-linux-2.40.2-build/util-linux-2.40.2/lib/strutils.c:246:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
util-linux-2.40.2-build/util-linux-2.40.2/lib/strutils.c: scope_hint: In function ‘isxdigit_strend’
util-linux-2.40.2-build/util-linux-2.40.2/lib/strutils.c:246:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def53]
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/partitions/partitions.c: scope_hint: In function 'unref_parttable'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/partitions/partitions.c:330:12: warning[-Wanalyzer-use-after-free]: use after 'free' of 'tab'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/partitions/partitions.c: scope_hint: In function 'unref_parttable'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:30: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/partitions/partitions.h:4: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/partitions/partitions.c:23: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:176:41: note: in expansion of macro 'container_of'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/partitions/partitions.c:345:39: note: in expansion of macro 'list_entry'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:176:41: note: in expansion of macro 'container_of'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/partitions/partitions.c:345:39: note: in expansion of macro 'list_entry'
Error: GCC_ANALYZER_WARNING (CWE-415): [#def54]
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_free_value.part.0'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:279:9: warning[-Wanalyzer-double-free]: double-'free' of '*v.data'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2095:17: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:150:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2398:17: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_free_value.part.0'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_free_value.part.0'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_free_value.part.0'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:676:9: note: in expansion of macro 'list_for_each_safe'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:885:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:885:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:885:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:176:41: note: in expansion of macro 'container_of'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:888:41: note: in expansion of macro 'list_entry'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:281:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:176:41: note: in expansion of macro 'container_of'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:888:41: note: in expansion of macro 'list_entry'
Error: GCC_ANALYZER_WARNING (CWE-415): [#def55]
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_reset_hints'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2565:17: warning[-Wanalyzer-double-free]: double-'free' of '((struct blkid_hint *)((char *)MEM[(struct list_head *)pr_9(D) + 128B].next + 16))[576460752303423487].name'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2095:17: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:150:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2398:17: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_reset_hints'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_reset_hints'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_reset_hints'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:676:9: note: in expansion of macro 'list_for_each_safe'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2559:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2559:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2559:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:176:41: note: in expansion of macro 'container_of'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2562:40: note: in expansion of macro 'list_entry'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:176:41: note: in expansion of macro 'container_of'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2562:40: note: in expansion of macro 'list_entry'
Error: GCC_ANALYZER_WARNING (CWE-415): [#def56]
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2566:17: warning[-Wanalyzer-double-free]: double-'free' of '((struct list_head *)pr)[8].next + -16'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2095:17: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:150:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2398:17: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_reset_hints'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_reset_hints'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c: scope_hint: In function 'blkid_probe_reset_hints'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:676:9: note: in expansion of macro 'list_for_each_safe'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2559:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2559:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/blkidP.h:354:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2559:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:176:41: note: in expansion of macro 'container_of'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2562:40: note: in expansion of macro 'list_entry'
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:176:41: note: in expansion of macro 'container_of'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/probe.c:2562:40: note: in expansion of macro 'list_entry'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def57]
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/topology/dm.c: scope_hint: In function 'probe_dm_tp'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/topology/dm.c:118:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/topology/dm.c:118:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/topology/lvm.c: scope_hint: In function 'probe_lvm_tp'
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/topology/lvm.c:125:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
util-linux-2.40.2-build/util-linux-2.40.2/libblkid/src/topology/lvm.c:125:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
util-linux-2.40.2-build/util-linux-2.40.2/libmount/src/hook_idmap.c: scope_hint: In function 'hook_prepare_options'
util-linux-2.40.2-build/util-linux-2.40.2/libmount/src/hook_idmap.c:457:25: warning[-Wanalyzer-malloc-leak]: leak of 'idmap'
util-linux-2.40.2-build/util-linux-2.40.2/libmount/src/mountP.h:28: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/libmount/src/hook_idmap.c:30: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:39:24: note: in definition of macro 'INIT_LIST_HEAD'
util-linux-2.40.2-build/util-linux-2.40.2/libmount/src/hook_idmap.c:25: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-416): [#def62]
util-linux-2.40.2-build/util-linux-2.40.2/libmount/src/utils.c: scope_hint: In function 'mnt_free_filesystems.part.0'
util-linux-2.40.2-build/util-linux-2.40.2/libmount/src/utils.c:506:31: warning[-Wanalyzer-use-after-free]: use after 'reallocarray' of 'p'
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/strutils.h:18: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/libmount/src/utils.c:24: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c: scope_hint: In function 'yyparse'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:392:21: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:95:40: note: in definition of macro 'YY_CAST'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:378:25: note: in expansion of macro 'YYMALLOC'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:1284:20: note: in expansion of macro 'YYSTACK_ALLOC'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:1354:17: note: in expansion of macro 'YYTRANSLATE'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:95:40: note: in definition of macro 'YY_CAST'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:378:25: note: in expansion of macro 'YYMALLOC'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:1284:20: note: in expansion of macro 'YYSTACK_ALLOC'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:437:9: note: in expansion of macro 'YYCOPY'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:1287:9: note: in expansion of macro 'YYSTACK_RELOCATE'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:95:40: note: in definition of macro 'YY_CAST'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:378:25: note: in expansion of macro 'YYMALLOC'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:1284:20: note: in expansion of macro 'YYSTACK_ALLOC'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def64]
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:452:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyss'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:437:9: note: in expansion of macro 'YYCOPY'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:1287:9: note: in expansion of macro 'YYSTACK_RELOCATE'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:437:9: note: in expansion of macro 'YYCOPY'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:1287:9: note: in expansion of macro 'YYSTACK_RELOCATE'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:437:9: note: in expansion of macro 'YYCOPY'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-parser.c:1287:9: note: in expansion of macro 'YYSTACK_RELOCATE'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_create_buffer'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-scanner.c:1453:12: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(64)'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_create_buffer'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_create_buffer'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-scanner.c:1453:12: warning[-Wanalyzer-malloc-leak]: leak of 'yyalloc(64, yyscanner)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_init_buffer'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-scanner.c:1495:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'b'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_scan_buffer'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-scanner.c:1713:25: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(n)'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_scan_buffer'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-scanner.c: scope_hint: In function 'yy_scan_buffer'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/filter-scanner.c:1713:25: warning[-Wanalyzer-malloc-leak]: leak of 'yyalloc(n, yyscanner)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/print.c: scope_hint: In function 'print_json_data'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/print.c:491:71: warning[-Wanalyzer-null-dereference]: dereference of NULL 'data'
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/smartcolsP.h:14: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/print.c:26: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/smartcolsP.h:19: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/print.c:790:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/print.c:772:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/print.c:495:42: warning[-Wanalyzer-null-dereference]: dereference of NULL 'data'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/print.c:790:9: note: in expansion of macro 'DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/smartcolsP.h:42:25: note: in expansion of macro '__UL_DBG'
util-linux-2.40.2-build/util-linux-2.40.2/libsmartcols/src/print.c:772:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/chfn.c: scope_hint: In function ‘parse_passwd’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/chfn.c:216:1: warning[-Wanalyzer-malloc-leak]: leak of ‘gecos’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/chfn.c:42: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/chfn.c:35: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/last.c: scope_hint: In function ‘process_wtmp_file’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/last.c:194:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/last.c:49: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/optutils.h:8: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/last.c:47: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/last.c:194:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/last.c: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/last.c:1028:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘files’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/login.c: scope_hint: In function ‘process_title_init’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/login.c:239:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘environ’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/path.h:14: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/login.c:49: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/login.c:240:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘environ’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def78]
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/login.c: scope_hint: In function ‘open_tty’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/login.c:455:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘i’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/login.c:36: included_from: Included from here.
Error: GCC_ANALYZER_WARNING: [#def79]
util-linux-2.40.2-build/util-linux-2.40.2/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): [#def80]
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/lslogins.c: scope_hint: In function ‘parse_utmpx.part.0’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/lslogins.c:509:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ary’
Error: GCC_ANALYZER_WARNING: [#def81]
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/sulogin.c: scope_hint: In function ‘setup’
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/sulogin.c:723:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
Error: GCC_ANALYZER_WARNING: [#def82]
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/sulogin.c:724:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
Error: GCC_ANALYZER_WARNING: [#def83]
util-linux-2.40.2-build/util-linux-2.40.2/login-utils/sulogin.c:725:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/blkid.c: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/blkid.c:859:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)(argc - optind), 8)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/blkid.c:47: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/blkid.c:17: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/cal.c: scope_hint: In function ‘monthly’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/cal.c:1016:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)*ctl.months_in_row, 208) + (sizetype)i * 208’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/cal.c:79: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/getopt.c: scope_hint: In function ‘print_normalized.part.0’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/getopt.c:133:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(strlen(arg) * 4 + 3)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/getopt.c:73: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def87]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/getopt.c: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/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): [#def88]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/getopt.c:449: error[memleak]: Memory leak: ctl.name
Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/hardlink.c:515:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)n * 8) + (long unsigned int)i * 8’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/hardlink.c:515:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)n * 8)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def91]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/hardlink.c:519:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc((long unsigned int)n * 8)’ where non-null expected
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:16: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/hardlink.c:50: 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): [#def92]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/hardlink.c: scope_hint: In function ‘inserter.part.0’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/hardlink.c:875:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, strlen(fpath) + 17)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/look.c: scope_hint: In function ‘compare’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/look.c:337:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/look.c:61: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/look.c:57: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def94]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/look.c:342:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsblk.h:17: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsblk-devtree.c:19: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsblk-devtree.c: scope_hint: In function ‘cmp_devices_devno’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsblk-devtree.c:536:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘a’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:172:29: note: in definition of macro ‘cmp_numbers’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsblk.h:18: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:172:29: note: in definition of macro ‘cmp_numbers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsblk-properties.c:199:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.label’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsblk-properties.c:8: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsblk-properties.c: scope_hint: In function ‘lookup.part.0’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsblk-properties.c:9: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-sock-xinfo.c: scope_hint: In function ‘load_xinfo_from_proc_unix’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-sock-xinfo.c:705:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 152)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.h:35: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.h:52:25: note: in expansion of macro ‘__UL_DBG’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-sock-xinfo.c:690:17: note: in expansion of macro ‘DBG’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.h:40: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-sock-xinfo.c: scope_hint: In function ‘load_xinfo_from_proc_netlink’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-sock-xinfo.c:1944:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 40)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-sock-xinfo.c: scope_hint: In function ‘load_xinfo_from_proc_packet’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd-sock-xinfo.c:2346:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 32)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def100]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c: scope_hint: In function ‘new_file’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c:703:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, *class.size)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c:821:16: note: in expansion of macro ‘list_last_entry’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c: scope_hint: In function ‘copy_file’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c:718:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, *old_10(D)->class.size)’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c:821:16: note: in expansion of macro ‘list_last_entry’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c:821:16: note: in expansion of macro ‘list_last_entry’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def102]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c:1816:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c: scope_hint: In function ‘parse_pids’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lsfd.c:1816:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘outarg’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:18: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def104]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lslocks.c: scope_hint: In function ‘is_holder’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lslocks.c:305:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lslocks.c:46: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lslocks.c:941:9: note: in expansion of macro ‘INIT_LIST_HEAD’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lslocks.c:43: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/list.h:190:21: note: in definition of macro ‘list_for_each’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/lslocks.c:318:9: note: in expansion of macro ‘list_for_each’
util-linux-2.40.2-build/util-linux-2.40.2/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): [#def105]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/mcookie.c: scope_hint: In function ‘randomness_from_files’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/mcookie.c:117:35: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/mcookie.c:136:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def107]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/mcookie.c: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/mcookie.c:168:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ctl.files’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/mcookie.c:31: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def108]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/namei.c: scope_hint: In function ‘readlink_to_namei’
util-linux-2.40.2-build/util-linux-2.40.2/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.40.2-build/util-linux-2.40.2/misc-utils/namei.c:39: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/namei.c:38: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/namei.c:29: included_from: Included from here.
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def109]
util-linux-2.40.2-build/util-linux-2.40.2/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
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def110]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/namei.c: scope_hint: In function ‘dotdot_stat’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/namei.c:142:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(len + 4)’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/rename.c: scope_hint: In function ‘string_replace’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/rename.c:91:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/rename.c:37: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/rename.c:94:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/rename.c:104:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/rename.c:34: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def114]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/rename.c:105:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def115]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/rename.c: scope_hint: In function ‘do_symlink’
util-linux-2.40.2-build/util-linux-2.40.2/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.40.2-build/util-linux-2.40.2/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): [#def116]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/waitpid.c: scope_hint: In function ‘parse_pids’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/waitpid.c:54:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_strings, 4)’
util-linux-2.40.2-build/util-linux-2.40.2/include/strutils.h:52:64: note: in definition of macro ‘strtopid_or_err’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/waitpid.c:54:55: note: in expansion of macro ‘_’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/waitpid.c: scope_hint: In function ‘open_pidfds’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/waitpid.c:64:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_pids, 4) + i * 4’
util-linux-2.40.2-build/util-linux-2.40.2/include/strutils.h:52:64: note: in definition of macro ‘strtopid_or_err’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/waitpid.c:54:55: note: in expansion of macro ‘_’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def118]
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/wipefs.c: scope_hint: In function ‘get_desc_for_probe’
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/wipefs.c:350:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(*len)’ where non-null expected
util-linux-2.40.2-build/util-linux-2.40.2/misc-utils/wipefs.c:38: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/xalloc.h:20: included_from: Included from here.
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: COMPILER_WARNING: [#def119]
util-linux-2.40.2-build/util-linux-2.40.2/schedutils/chrt.c: scope_hint: In function ‘show_sched_pid_info’
util-linux-2.40.2-build/util-linux-2.40.2/schedutils/chrt.c:150:21: warning[-Wstringop-overflow=]: ‘sched_getattr’ writing 3136 bytes into a region of size 56 overflows the destination
util-linux-2.40.2-build/util-linux-2.40.2/schedutils/chrt.c:148:35: note: destination object ‘sa’ of size 56
/usr/include/sched.h:43: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/schedutils/chrt.c:25: included_from: Included from here.
/usr/include/bits/sched.h:152:5: note: in a call to function ‘sched_getattr’ declared with attribute ‘access (write_only, 2, 3)’
Error: COMPILER_WARNING: [#def120]
util-linux-2.40.2-build/util-linux-2.40.2/schedutils/uclampset.c: scope_hint: In function ‘show_uclamp_pid_info’
util-linux-2.40.2-build/util-linux-2.40.2/schedutils/uclampset.c:91:13: warning[-Wstringop-overflow=]: ‘sched_getattr’ writing 3136 bytes into a region of size 56 overflows the destination
util-linux-2.40.2-build/util-linux-2.40.2/schedutils/uclampset.c:84:27: note: destination object ‘sa’ of size 56
/usr/include/bits/sched.h:152:5: note: in a call to function ‘sched_getattr’ declared with attribute ‘access (write_only, 2, 3)’
Error: COMPILER_WARNING: [#def121]
util-linux-2.40.2-build/util-linux-2.40.2/schedutils/uclampset.c: scope_hint: In function ‘set_uclamp_one’
util-linux-2.40.2-build/util-linux-2.40.2/schedutils/uclampset.c:157:13: warning[-Wstringop-overflow=]: ‘sched_getattr’ writing 3136 bytes into a region of size 56 overflows the destination
util-linux-2.40.2-build/util-linux-2.40.2/schedutils/uclampset.c:155:27: note: destination object ‘sa’ of size 56
/usr/include/sched.h:43: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/schedutils/uclampset.c:23: included_from: Included from here.
/usr/include/bits/sched.h:152:5: note: in a call to function ‘sched_getattr’ declared with attribute ‘access (write_only, 2, 3)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def122]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/blkpr.c: scope_hint: In function ‘do_pr’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/blkpr.c:166:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 2)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def123]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/hwclock-rtc.c: scope_hint: In function ‘resolve_rtc_param_alias’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/hwclock-rtc.c:419:22: warning[-Wanalyzer-null-argument]: use of NULL ‘alias’ where non-null expected
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/hwclock-rtc.c:26: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/strutils.h:18: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/hwclock-rtc.c:25: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/strutils.h:10: 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-688): [#def124]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/irq-common.c: scope_hint: In function ‘get_scols_table’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/irq-common.c:549:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(size)’ where non-null expected
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/irq-common.c: scope_hint: In function ‘get_scols_table’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/ldattach.c: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/ldattach.c:390:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev, 258)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu-cpu.c: scope_hint: In function ‘lscpu_create_cpus’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu-cpu.c:68:40: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*cxt.cpus’
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu.h:15: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu-cpu.c:11: included_from: Included from here.
/usr/include/sched.h:44: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/cpuset.h:10: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu.h:17: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu.h:18: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu.h:24: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu.h:35:25: note: in expansion of macro ‘__UL_DBG’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu-cpu.c:27:9: note: in expansion of macro ‘DBG’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def127]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu-cputype.c: scope_hint: In function ‘cpuinfo_parse_cache’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/lscpu-cputype.c:428:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: CPPCHECK_WARNING (CWE-457): [#def128]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/mount.c:820: error[legacyUninitvar]: Uninitialized variable: path
Error: GCC_ANALYZER_WARNING (CWE-775): [#def129]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/nsenter.c: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/nsenter.c:175:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/nsenter.c:45: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def130]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/readprofile.c:230:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&defaultpro, 1)’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/readprofile.c:47: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:60:62: note: in definition of macro ‘ignore_result’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def131]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/readprofile.c:277:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(len)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def132]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/setpgid.c: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/setpgid.c:76:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524288)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/setpgid.c:78:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524288)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def134]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/setpgid.c:80:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524288)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def135]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/setpriv.c: scope_hint: In function ‘do_selinux_label’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/setpriv.c:632:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/attr/exec", 2)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/swapoff.c: scope_hint: In function ‘do_swapoff’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/swapoff.c:80:35: warning[-Wanalyzer-malloc-leak]: leak of ‘swapoff_resolve_tag(name, value, mntcache)’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/swapoff.c:24: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/swapoff.c:23: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-457): [#def137]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/umount.c:598: error[legacyUninitvar]: Uninitialized variable: path
Error: GCC_ANALYZER_WARNING (CWE-775): [#def138]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/unshare.c: scope_hint: In function ‘setgroups_control.part.0’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/unshare.c:118:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/setgroups", 1)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/unshare.c: scope_hint: In function ‘map_ids_internal’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/unshare.c:668:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524545)’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/unshare.c:46: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/unshare.c:48: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/unshare.c:40: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:148:32: note: in definition of macro ‘min’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/zramctl.c: scope_hint: In function ‘main’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/zramctl.c:710:33: warning[-Wanalyzer-malloc-leak]: leak of ‘new_zram(*<unknown>)’
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/zramctl.c:35: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/optutils.h:8: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/zramctl.c:37: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:18: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/sys-utils/zramctl.c:31: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def141]
util-linux-2.40.2-build/util-linux-2.40.2/term-utils/agetty.c: scope_hint: In function ‘issuefile_read_stream.part.0’
util-linux-2.40.2-build/util-linux-2.40.2/term-utils/agetty.c:1851:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
util-linux-2.40.2-build/util-linux-2.40.2/term-utils/agetty.c:14: included_from: Included from here.
/usr/include/stdio.h:612:12: note: argument 2 of ‘putc’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def142]
util-linux-2.40.2-build/util-linux-2.40.2/term-utils/agetty.c: scope_hint: In function ‘output_special_char’
util-linux-2.40.2-build/util-linux-2.40.2/term-utils/agetty.c:2711: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): [#def143]
util-linux-2.40.2-build/util-linux-2.40.2/term-utils/agetty.c:2786: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): [#def144]
util-linux-2.40.2-build/util-linux-2.40.2/term-utils/agetty.c:2881:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
/usr/include/stdio.h:612:12: note: argument 2 of ‘putc’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def145]
util-linux-2.40.2-build/util-linux-2.40.2/term-utils/wall.c: scope_hint: In function ‘makemsg’
util-linux-2.40.2-build/util-linux-2.40.2/term-utils/wall.c:361:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fs’ where non-null expected
util-linux-2.40.2-build/util-linux-2.40.2/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): [#def146]
util-linux-2.40.2-build/util-linux-2.40.2/term-utils/wall.c:370: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-688): [#def147]
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump-display.c:390:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘curp’ where non-null expected
/usr/include/string.h:64:12: note: argument 1 of ‘memcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def148]
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump-display.c: scope_hint: In function ‘get’
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump-display.c:390:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘savp’ where non-null expected
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump-display.c:44: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump-display.c:42: included_from: Included from here.
/usr/include/string.h:64:12: note: argument 2 of ‘memcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def149]
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump-parse.c: scope_hint: In function ‘rewrite_rules’
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump-parse.c:284:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p1’
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump-parse.c:238:9: note: in expansion of macro ‘list_for_each’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump-parse.c: scope_hint: In function ‘color_fmt’
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/hexdump-parse.c:492:21: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/more.c: scope_hint: In function ‘argscan’
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/more.c:284:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘as_argv’
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/more.c:83: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/c.h:22: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/include/strutils.h:18: included_from: Included from here.
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/more.c:81: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def152]
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/more.c:307: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.40.2-build/util-linux-2.40.2/text-utils/more.c:67: 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): [#def153]
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/rev.c: scope_hint: In function ‘reverse_str’
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/rev.c:93:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘str’
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/rev.c:62: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/rev.c: scope_hint: In function ‘write_line’
util-linux-2.40.2-build/util-linux-2.40.2/text-utils/rev.c:116:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘str’
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
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-32.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | util-linux-2.40.2-8.fc42 |
store-results-to | /tmp/tmpj6h87ruk/util-linux-2.40.2-8.fc42.tar.xz |
time-created | 2024-11-13 03:32:46 |
time-finished | 2024-11-13 03:40:40 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpj6h87ruk/util-linux-2.40.2-8.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpj6h87ruk/util-linux-2.40.2-8.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |