util-linux-2.42.2-3.fc45
List of Findings
Error: CPPCHECK_WARNING (CWE-457): [#def1]
util-linux-2.42.2/disk-utils/fdformat.c:68: error[uninitvar]: Uninitialized variable: current
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
util-linux-2.42.2/disk-utils/fdformat.c:129:45: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(track_size) + count’
util-linux-2.42.2/disk-utils/fdformat.c:81:13: enter_function: entry to ‘verify_disk’
util-linux-2.42.2/disk-utils/fdformat.c:89:16: call_function: calling ‘xmalloc’ from ‘verify_disk’
util-linux-2.42.2/disk-utils/fdformat.c:89:16: return_function: returning to ‘verify_disk’ from ‘xmalloc’
util-linux-2.42.2/disk-utils/fdformat.c:97:42: branch_true: following ‘true’ branch...
util-linux-2.42.2/disk-utils/fdformat.c:98:22: branch_true: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:109:36: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/fdformat.c:109:36: branch_false: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:128:49: branch_true: following ‘true’ branch (when ‘count < track_size’)...
util-linux-2.42.2/disk-utils/fdformat.c:129:49: branch_true: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:129:45: danger: ‘xmalloc(track_size) + count’ could be NULL: unchecked value from [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
util-linux-2.42.2/disk-utils/fdformat.c:129:45: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(track_size)’
util-linux-2.42.2/disk-utils/fdformat.c:177:5: enter_function: entry to ‘main’
util-linux-2.42.2/disk-utils/fdformat.c:203:16: branch_true: following ‘true’ branch (when ‘ch != -1’)...
util-linux-2.42.2/disk-utils/fdformat.c:204:17: branch_true: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:229:12: branch_false: following ‘false’ branch (when ‘argc > 0’)...
util-linux-2.42.2/disk-utils/fdformat.c:233:13: branch_false: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:233:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/fdformat.c:235:14: branch_false: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:235:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/fdformat.c:238:16: branch_false: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:239:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/fdformat.c:241:13: branch_false: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:241:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/fdformat.c:246:42: branch_false: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:248:12: branch_false: following ‘false’ branch (when ‘has_user_defined_track_to != 0’)...
util-linux-2.42.2/disk-utils/fdformat.c:251:27: branch_false: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:251:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/fdformat.c:253:12: branch_false: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:253:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/fdformat.c:255:12: branch_false: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:255:12: branch_false: following ‘false’ branch (when ‘track_to >= track_from’)...
util-linux-2.42.2/disk-utils/fdformat.c:258:9: branch_false: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:258:9: call_function: calling ‘format_disk’ from ‘main’
util-linux-2.42.2/disk-utils/fdformat.c:258:9: return_function: returning to ‘main’ from ‘format_disk’
util-linux-2.42.2/disk-utils/fdformat.c:260:12: branch_true: following ‘true’ branch (when ‘verify != 0’)...
util-linux-2.42.2/disk-utils/fdformat.c:261:17: branch_true: ...to here
util-linux-2.42.2/disk-utils/fdformat.c:261:17: call_function: calling ‘verify_disk’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def4]
util-linux-2.42.2/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.2/disk-utils/fdisk-menu.c:349:12: enter_function: entry to ‘menu_detect_collisions’
util-linux-2.42.2/disk-utils/fdisk-menu.c:354:21: call_function: calling ‘next_menu_entry’ from ‘menu_detect_collisions’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def5]
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:302:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(len + 257)’ where non-null expected
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:703:5: enter_function: entry to ‘main’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:795:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:799:23: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:813:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:815:14: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:816:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:819:13: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:819:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:822:22: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:822:22: call_function: calling ‘xcalloc’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:822:22: return_function: returning to ‘main’ from ‘xcalloc’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:827:28: call_function: calling ‘parse_directory’ from ‘main’
Error: CPPCHECK_WARNING (CWE-190): [#def6]
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:377: error[integerOverflow]: Signed integer overflow for expression '-(1<<24)'.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:861:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:703:5: enter_function: entry to ‘main’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:795:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:799:23: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:813:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:815:14: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:816:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:819:13: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:819:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:822:22: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:822:22: call_function: calling ‘xcalloc’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:822:22: return_function: returning to ‘main’ from ‘xcalloc’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:827:28: call_function: calling ‘parse_directory’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:827:28: return_function: returning to ‘main’ from ‘parse_directory’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:830:9: call_function: calling ‘eliminate_doubles’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:830:9: return_function: returning to ‘main’ from ‘eliminate_doubles’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:861:12: danger: ‘<unknown>’ leaks here; was allocated at [(30)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/29)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def8]
util-linux-2.42.2/disk-utils/mkfs.minix.c:570:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘inode_map’ where non-null expected
util-linux-2.42.2/disk-utils/mkfs.minix.c:760:5: enter_function: entry to ‘main’
util-linux-2.42.2/disk-utils/mkfs.minix.c:790:16: branch_true: following ‘true’ branch (when ‘i != -1’)...
util-linux-2.42.2/disk-utils/mkfs.minix.c:791:17: branch_true: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:836:12: branch_true: following ‘true’ branch (when ‘argc > 0’)...
util-linux-2.42.2/disk-utils/mkfs.minix.c:837:35: branch_true: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:841:12: branch_false: following ‘false’ branch (when ‘argc == 0’)...
util-linux-2.42.2/disk-utils/mkfs.minix.c:844:14: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:844:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:848:9: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:848:9: call_function: calling ‘check_user_instructions’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.minix.c:848:9: return_function: returning to ‘main’ from ‘check_user_instructions’
util-linux-2.42.2/disk-utils/mkfs.minix.c:849:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:852:13: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:852:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:854:25: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:855:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:857:57: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:857:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:859:9: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:859:9: call_function: calling ‘determine_device_blocks’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.minix.c:859:9: return_function: returning to ‘main’ from ‘determine_device_blocks’
util-linux-2.42.2/disk-utils/mkfs.minix.c:860:9: call_function: calling ‘setup_tables’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def9]
util-linux-2.42.2/disk-utils/mkfs.minix.c:571:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘zone_map’ where non-null expected
util-linux-2.42.2/disk-utils/mkfs.minix.c:760:5: enter_function: entry to ‘main’
util-linux-2.42.2/disk-utils/mkfs.minix.c:790:16: branch_true: following ‘true’ branch (when ‘i != -1’)...
util-linux-2.42.2/disk-utils/mkfs.minix.c:791:17: branch_true: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:836:12: branch_true: following ‘true’ branch (when ‘argc > 0’)...
util-linux-2.42.2/disk-utils/mkfs.minix.c:837:35: branch_true: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:841:12: branch_false: following ‘false’ branch (when ‘argc == 0’)...
util-linux-2.42.2/disk-utils/mkfs.minix.c:844:14: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:844:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:848:9: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:848:9: call_function: calling ‘check_user_instructions’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.minix.c:848:9: return_function: returning to ‘main’ from ‘check_user_instructions’
util-linux-2.42.2/disk-utils/mkfs.minix.c:849:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:852:13: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:852:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:854:25: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:855:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:857:57: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:857:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:859:9: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:859:9: call_function: calling ‘determine_device_blocks’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.minix.c:859:9: return_function: returning to ‘main’ from ‘determine_device_blocks’
util-linux-2.42.2/disk-utils/mkfs.minix.c:860:9: call_function: calling ‘setup_tables’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
util-linux-2.42.2/disk-utils/mkfs.minix.c:579:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘inode_buffer’ where non-null expected
util-linux-2.42.2/disk-utils/mkfs.minix.c:760:5: enter_function: entry to ‘main’
util-linux-2.42.2/disk-utils/mkfs.minix.c:790:16: branch_true: following ‘true’ branch (when ‘i != -1’)...
util-linux-2.42.2/disk-utils/mkfs.minix.c:791:17: branch_true: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:836:12: branch_true: following ‘true’ branch (when ‘argc > 0’)...
util-linux-2.42.2/disk-utils/mkfs.minix.c:837:35: branch_true: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:841:12: branch_false: following ‘false’ branch (when ‘argc == 0’)...
util-linux-2.42.2/disk-utils/mkfs.minix.c:844:14: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:844:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:848:9: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:848:9: call_function: calling ‘check_user_instructions’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.minix.c:848:9: return_function: returning to ‘main’ from ‘check_user_instructions’
util-linux-2.42.2/disk-utils/mkfs.minix.c:849:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:852:13: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:852:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:854:25: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:855:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:857:57: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:857:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.minix.c:859:9: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.minix.c:859:9: call_function: calling ‘determine_device_blocks’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.minix.c:859:9: return_function: returning to ‘main’ from ‘determine_device_blocks’
util-linux-2.42.2/disk-utils/mkfs.minix.c:860:9: call_function: calling ‘setup_tables’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def11]
util-linux-2.42.2/include/all-io.h:67:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
util-linux-2.42.2/disk-utils/fdisk.c:998:13: enter_function: entry to ‘dump_blkdev’
util-linux-2.42.2/disk-utils/fdisk.c:1006:9: branch_true: following ‘true’ branch...
util-linux-2.42.2/disk-utils/fdisk.c:1008:13: branch_true: ...to here
util-linux-2.42.2/disk-utils/fdisk.c:1008:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/fdisk.c:1011:38: branch_false: ...to here
util-linux-2.42.2/disk-utils/fdisk.c:1011:38: call_function: calling ‘xmalloc’ from ‘dump_blkdev’
util-linux-2.42.2/disk-utils/fdisk.c:1011:38: return_function: returning to ‘dump_blkdev’ from ‘xmalloc’
util-linux-2.42.2/disk-utils/fdisk.c:1013:21: call_function: calling ‘read_all’ from ‘dump_blkdev’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def12]
util-linux-2.42.2/include/all-io.h:97:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(file, 0)’
util-linux-2.42.2/sys-utils/setpriv.c:810:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/setpriv.c:1052:12: branch_false: following ‘false’ branch (when ‘dumplevel == 0’)...
util-linux-2.42.2/sys-utils/setpriv.c:1060:12: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1060:12: branch_false: following ‘false’ branch (when ‘list_caps == 0’)...
util-linux-2.42.2/sys-utils/setpriv.c:1068:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1068:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1071:14: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1087:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1097:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1097:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1100:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1100:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1102:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1104:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1105:17: branch_true: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1105:17: call_function: calling ‘do_seccomp_filter’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def13]
util-linux-2.42.2/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): [#def14]
util-linux-2.42.2/include/list.h:53:9: warning[-Wanalyzer-use-after-free]: use after 'free' of 'child'
util-linux-2.42.2/libsmartcols/src/line.c:242:5: enter_function: entry to 'scols_line_add_child'
util-linux-2.42.2/libsmartcols/src/line.c:244:12: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/line.c:247:9: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/line.c:248:9: call_function: calling 'scols_ref_line' from 'scols_line_add_child'
util-linux-2.42.2/libsmartcols/src/line.c:248:9: return_function: returning to 'scols_line_add_child' from 'scols_ref_line'
util-linux-2.42.2/libsmartcols/src/line.c:249:9: call_function: calling 'scols_ref_line' from 'scols_line_add_child'
util-linux-2.42.2/libsmartcols/src/line.c:249:9: return_function: returning to 'scols_line_add_child' from 'scols_ref_line'
util-linux-2.42.2/libsmartcols/src/line.c:252:12: branch_true: following 'true' branch...
util-linux-2.42.2/libsmartcols/src/line.c:253:17: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/line.c:253:17: call_function: calling 'scols_line_remove_child' from 'scols_line_add_child'
util-linux-2.42.2/libsmartcols/src/line.c:253:17: return_function: returning to 'scols_line_add_child' from 'scols_line_remove_child'
util-linux-2.42.2/libsmartcols/src/line.c:256:9: call_function: inlined call to 'list_add_tail' from 'scols_line_add_child'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def15]
util-linux-2.42.2/include/list.h:107:9: warning[-Wanalyzer-use-after-free]: use after 'free' of 'v'
util-linux-2.42.2/libblkid/src/probe.c:2126:13: enter_function: entry to 'blkid_probe_get_wholedisk_probe'
util-linux-2.42.2/libblkid/src/probe.c:2130:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/probe.c:2133:13: branch_false: ...to here
util-linux-2.42.2/libblkid/src/probe.c:2145:12: branch_true: following 'true' branch...
util-linux-2.42.2/libblkid/src/probe.c:2147:35: branch_true: ...to here
util-linux-2.42.2/libblkid/src/probe.c:2150:20: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/probe.c:2153:17: branch_false: ...to here
util-linux-2.42.2/libblkid/src/probe.c:2155:34: call_function: calling 'blkid_new_probe_from_filename' from 'blkid_probe_get_wholedisk_probe'
Error: GCC_ANALYZER_WARNING (CWE-835): [#def16]
util-linux-2.42.2/include/list.h:126:16: warning[-Wanalyzer-infinite-loop]: infinite loop
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
util-linux-2.42.2/include/strutils.h:277:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>)’
util-linux-2.42.2/disk-utils/partx.c:798:5: enter_function: entry to ‘main’
util-linux-2.42.2/disk-utils/partx.c:923:13: branch_true: following ‘true’ branch...
util-linux-2.42.2/disk-utils/partx.c:924:17: branch_true: ...to here
util-linux-2.42.2/disk-utils/partx.c:933:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/partx.c:943:23: branch_false: ...to here
util-linux-2.42.2/disk-utils/partx.c:943:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/disk-utils/partx.c:948:30: branch_true: ...to here
util-linux-2.42.2/disk-utils/partx.c:950:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
util-linux-2.42.2/disk-utils/partx.c:955:50: branch_false: ...to here
util-linux-2.42.2/disk-utils/partx.c:955:37: call_function: calling ‘xstrdup’ from ‘main’
util-linux-2.42.2/disk-utils/partx.c:955:37: return_function: returning to ‘main’ from ‘xstrdup’
util-linux-2.42.2/disk-utils/partx.c:957:53: call_function: calling ‘ul_startswith’ from ‘main’
util-linux-2.42.2/disk-utils/partx.c:957:53: return_function: returning to ‘main’ from ‘ul_startswith’
util-linux-2.42.2/include/strutils.h:277:13: danger: ‘xstrdup(*<unknown>)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
util-linux-2.42.2/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((*valuelen >> 1) + 1)’
util-linux-2.42.2/misc-utils/uuidgen.c:52:14: enter_function: entry to ‘unhex’
util-linux-2.42.2/misc-utils/uuidgen.c:57:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/uuidgen.c:63:26: branch_false: ...to here
util-linux-2.42.2/misc-utils/uuidgen.c:63:18: call_function: calling ‘xmalloc’ from ‘unhex’
util-linux-2.42.2/misc-utils/uuidgen.c:63:18: return_function: returning to ‘unhex’ from ‘xmalloc’
util-linux-2.42.2/misc-utils/uuidgen.c:65:25: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/uuidgen.c:66:26: branch_true: ...to here
util-linux-2.42.2/include/xalloc.h:32:13: danger: ‘xmalloc((*valuelen >> 1) + 1)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
util-linux-2.42.2/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)((cols + 1) * rows))’
util-linux-2.42.2/term-utils/setterm.c:772:13: enter_function: entry to ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: call_function: calling ‘open_snapshot_device’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: return_function: returning to ‘screendump’ from ‘open_snapshot_device’
util-linux-2.42.2/term-utils/setterm.c:784:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:786:39: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:787:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:790:13: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:790:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:792:16: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:794:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:797:25: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:797:17: call_function: calling ‘xmalloc’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:797:17: return_function: returning to ‘screendump’ from ‘xmalloc’
util-linux-2.42.2/term-utils/setterm.c:798:18: call_function: calling ‘xmalloc’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:798:18: return_function: returning to ‘screendump’ from ‘xmalloc’
util-linux-2.42.2/include/xalloc.h:32:13: danger: ‘xmalloc((long unsigned int)((cols + 1) * rows))’ leaks here; was allocated at [(27)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
util-linux-2.42.2/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)(rows * cols * 2))’
util-linux-2.42.2/term-utils/setterm.c:772:13: enter_function: entry to ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: call_function: calling ‘open_snapshot_device’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: return_function: returning to ‘screendump’ from ‘open_snapshot_device’
util-linux-2.42.2/term-utils/setterm.c:784:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:786:39: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:787:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:790:13: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:790:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:792:16: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:794:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:797:25: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:797:17: call_function: calling ‘xmalloc’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:797:17: return_function: returning to ‘screendump’ from ‘xmalloc’
util-linux-2.42.2/term-utils/setterm.c:798:18: call_function: calling ‘xmalloc’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:798:18: return_function: returning to ‘screendump’ from ‘xmalloc’
util-linux-2.42.2/include/xalloc.h:32:13: danger: ‘xmalloc((long unsigned int)(rows * cols * 2))’ leaks here; was allocated at [(22)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
util-linux-2.42.2/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)*ctl.pagesize)’
util-linux-2.42.2/disk-utils/mkswap.c:245:13: enter_function: entry to ‘check_blocks’
util-linux-2.42.2/disk-utils/mkswap.c:251:9: branch_true: following ‘true’ branch (when ‘ctl’ is non-NULL)...
util-linux-2.42.2/disk-utils/mkswap.c:252:9: branch_true: ...to here
util-linux-2.42.2/disk-utils/mkswap.c:252:9: branch_true: following ‘true’ branch...
util-linux-2.42.2/disk-utils/mkswap.c:254:26: branch_true: ...to here
util-linux-2.42.2/disk-utils/mkswap.c:254:18: call_function: calling ‘xmalloc’ from ‘check_blocks’
util-linux-2.42.2/disk-utils/mkswap.c:254:18: return_function: returning to ‘check_blocks’ from ‘xmalloc’
util-linux-2.42.2/disk-utils/mkswap.c:255:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/disk-utils/mkswap.c:257:32: branch_true: ...to here
util-linux-2.42.2/disk-utils/mkswap.c:259:20: branch_true: following ‘true’ branch (when ‘do_seek != 0’)...
util-linux-2.42.2/disk-utils/mkswap.c:259:32: branch_true: ...to here
util-linux-2.42.2/include/xalloc.h:32:13: danger: ‘xmalloc((long unsigned int)*ctl.pagesize)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
util-linux-2.42.2/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(24)’
util-linux-2.42.2/misc-utils/lsclocks.c:546:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/lsclocks.c:599:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/misc-utils/lsclocks.c:600:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsclocks.c:621:38: call_function: calling ‘xmalloc’ from ‘main’
util-linux-2.42.2/misc-utils/lsclocks.c:621:38: return_function: returning to ‘main’ from ‘xmalloc’
util-linux-2.42.2/include/xalloc.h:32:13: danger: ‘xmalloc(24)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
util-linux-2.42.2/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(32)’
util-linux-2.42.2/sys-utils/setpriv-landlock.c:132:6: enter_function: entry to ‘parse_landlock_rule’
util-linux-2.42.2/sys-utils/setpriv-landlock.c:134:44: call_function: calling ‘xmalloc’ from ‘parse_landlock_rule’
util-linux-2.42.2/sys-utils/setpriv-landlock.c:134:44: return_function: returning to ‘parse_landlock_rule’ from ‘xmalloc’
util-linux-2.42.2/sys-utils/setpriv-landlock.c:139:20: call_function: calling ‘ul_startswith’ from ‘parse_landlock_rule’
util-linux-2.42.2/sys-utils/setpriv-landlock.c:139:20: return_function: returning to ‘parse_landlock_rule’ from ‘ul_startswith’
util-linux-2.42.2/include/xalloc.h:32:13: danger: ‘xmalloc(32)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
util-linux-2.42.2/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(4096)’
util-linux-2.42.2/disk-utils/fsck.cramfs.c:679:5: enter_function: entry to ‘main’
util-linux-2.42.2/disk-utils/fsck.cramfs.c:727:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/fsck.cramfs.c:731:24: branch_false: ...to here
util-linux-2.42.2/disk-utils/fsck.cramfs.c:733:9: call_function: calling ‘test_super’ from ‘main’
util-linux-2.42.2/disk-utils/fsck.cramfs.c:733:9: return_function: returning to ‘main’ from ‘test_super’
util-linux-2.42.2/disk-utils/fsck.cramfs.c:734:9: call_function: calling ‘test_crc’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
util-linux-2.42.2/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(len + 257)’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:703:5: enter_function: entry to ‘main’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:795:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:799:23: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:813:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:815:14: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:816:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:819:13: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:819:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:822:22: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:822:22: call_function: calling ‘xcalloc’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:822:22: return_function: returning to ‘main’ from ‘xcalloc’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:827:28: call_function: calling ‘parse_directory’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
util-linux-2.42.2/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(len)’
util-linux-2.42.2/sys-utils/readprofile.c:146:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/readprofile.c:237:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/readprofile.c:262:23: branch_false: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:262:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/readprofile.c:263:29: branch_false: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:262:13: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/readprofile.c:264:17: branch_false: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:262:13: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/readprofile.c:266:12: branch_false: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:266:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
util-linux-2.42.2/sys-utils/readprofile.c:269:15: branch_false: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:269:15: call_function: calling ‘xmalloc’ from ‘main’
util-linux-2.42.2/sys-utils/readprofile.c:269:15: return_function: returning to ‘main’ from ‘xmalloc’
util-linux-2.42.2/include/xalloc.h:32:13: danger: ‘xmalloc(len)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
util-linux-2.42.2/include/xalloc.h:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrndup(a, (long unsigned int)(p2 - a))’
util-linux-2.42.2/text-utils/hexdump-parse.c:228:6: enter_function: entry to ‘rewrite_rules’
util-linux-2.42.2/text-utils/hexdump-parse.c:238:9: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:245:17: branch_true: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:246:24: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:247:30: branch_true: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:247:30: call_function: calling ‘xcalloc’ from ‘rewrite_rules’
util-linux-2.42.2/text-utils/hexdump-parse.c:247:30: return_function: returning to ‘rewrite_rules’ from ‘xcalloc’
util-linux-2.42.2/text-utils/hexdump-parse.c:253:32: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:257:28: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:257:28: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:267:29: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:267:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:270:38: branch_true: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:270:44: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:283:25: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:292:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:293:33: branch_true: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:294:33: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:295:41: branch_true: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:404:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:405:36: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:409:45: branch_true: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:411:44: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:412:65: call_function: calling ‘xstrndup’ from ‘rewrite_rules’
util-linux-2.42.2/text-utils/hexdump-parse.c:412:65: return_function: returning to ‘rewrite_rules’ from ‘xstrndup’
util-linux-2.42.2/text-utils/hexdump-parse.c:412:65: call_function: calling ‘color_fmt’ from ‘rewrite_rules’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
util-linux-2.42.2/include/xalloc.h:54:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
util-linux-2.42.2/sys-utils/irq-common.c:530:24: enter_function: entry to ‘get_scols_table’
util-linux-2.42.2/sys-utils/irq-common.c:546:16: call_function: calling ‘get_irqinfo’ from ‘get_scols_table’
Error: GCC_ANALYZER_WARNING (CWE-762): [#def29]
util-linux-2.42.2/include/xalloc.h:54:21: warning[-Wanalyzer-mismatching-deallocation]: ‘ptr’ should have been deallocated with ‘free’ but was deallocated with ‘reallocarray’
util-linux-2.42.2/text-utils/ul.c:566:5: enter_function: entry to ‘main’
util-linux-2.42.2/text-utils/ul.c:592:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/text-utils/ul.c:593:17: branch_true: ...to here
util-linux-2.42.2/text-utils/ul.c:630:9: call_function: calling ‘init_buffer’ from ‘main’
util-linux-2.42.2/text-utils/ul.c:630:9: return_function: returning to ‘main’ from ‘init_buffer’
util-linux-2.42.2/text-utils/ul.c:632:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/ul.c:633:17: branch_true: ...to here
util-linux-2.42.2/text-utils/ul.c:633:17: call_function: calling ‘filter’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘new_miscdev(minor, & name)’
util-linux-2.42.2/lsfd-cmd/cdev.c:145:13: enter_function: entry to ‘read_misc’
util-linux-2.42.2/lsfd-cmd/cdev.c:151:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/lsfd-cmd/cdev.c:154:21: branch_true: ...to here
util-linux-2.42.2/lsfd-cmd/cdev.c:157:27: call_function: calling ‘new_miscdev’ from ‘read_misc’
util-linux-2.42.2/lsfd-cmd/cdev.c:157:27: return_function: returning to ‘read_misc’ from ‘new_miscdev’
util-linux-2.42.2/include/xalloc.h:68:13: danger: ‘new_miscdev(minor, & name)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘new_nodev(minor, filesystem)’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2071:13: enter_function: entry to ‘read_process’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2080:16: call_function: calling ‘new_proc’ from ‘read_process’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2080:16: return_function: returning to ‘read_process’ from ‘new_proc’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2082:25: call_function: calling ‘xstrdup’ from ‘read_process’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2082:25: return_function: returning to ‘read_process’ from ‘xstrdup’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2085:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/lsfd-cmd/lsfd.c:2103:13: branch_false: ...to here
util-linux-2.42.2/lsfd-cmd/lsfd.c:2109:9: call_function: calling ‘collect_execve_file’ from ‘read_process’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2109:9: return_function: returning to ‘read_process’ from ‘collect_execve_file’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2111:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/lsfd-cmd/lsfd.c:2112:16: call_function: inlined call to ‘kcmp’ from ‘read_process’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2111:13: branch_false: following ‘false’ branch...
util-linux-2.42.2/lsfd-cmd/lsfd.c:2115:48: branch_false: ...to here
util-linux-2.42.2/lsfd-cmd/lsfd.c:2135:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/lsfd-cmd/lsfd.c:2141:13: branch_false: ...to here
util-linux-2.42.2/lsfd-cmd/lsfd.c:2143:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/lsfd-cmd/lsfd.c:2145:29: branch_true: ...to here
util-linux-2.42.2/lsfd-cmd/lsfd.c:2147:25: call_function: calling ‘read_mountinfo_in_mntns’ from ‘read_process’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘new_partition(__dev, & name)’
util-linux-2.42.2/lsfd-cmd/bdev.c:107:13: enter_function: entry to ‘read_partitions’
util-linux-2.42.2/lsfd-cmd/bdev.c:113:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/lsfd-cmd/bdev.c:116:21: branch_true: ...to here
util-linux-2.42.2/lsfd-cmd/bdev.c:118:29: call_function: calling ‘new_partition’ from ‘read_partitions’
util-linux-2.42.2/lsfd-cmd/bdev.c:118:29: return_function: returning to ‘read_partitions’ from ‘new_partition’
util-linux-2.42.2/include/xalloc.h:68:13: danger: ‘new_partition(__dev, & name)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘new_zram(*<unknown>)’
util-linux-2.42.2/sys-utils/zramctl.c:788:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/zramctl.c:881:12: branch_false: following ‘false’ branch (when ‘find == 0’)...
util-linux-2.42.2/sys-utils/zramctl.c:884:12: branch_false: ...to here
util-linux-2.42.2/sys-utils/zramctl.c:887:13: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/zramctl.c:890:14: branch_false: ...to here
util-linux-2.42.2/sys-utils/zramctl.c:890:13: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/zramctl.c:899:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/zramctl.c:900:25: branch_true: ...to here
util-linux-2.42.2/sys-utils/zramctl.c:910:20: branch_false: following ‘false’ branch (when ‘outarg’ is NULL)...
util-linux-2.42.2/sys-utils/zramctl.c:915:21: branch_false: ...to here
util-linux-2.42.2/sys-utils/zramctl.c:915:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/zramctl.c:916:46: branch_true: ...to here
util-linux-2.42.2/sys-utils/zramctl.c:916:32: call_function: calling ‘new_zram’ from ‘main’
util-linux-2.42.2/sys-utils/zramctl.c:916:32: return_function: returning to ‘main’ from ‘new_zram’
util-linux-2.42.2/sys-utils/zramctl.c:917:30: call_function: calling ‘zram_exist’ from ‘main’
util-linux-2.42.2/sys-utils/zramctl.c:917:30: return_function: returning to ‘main’ from ‘zram_exist’
util-linux-2.42.2/sys-utils/zramctl.c:917:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/zramctl.c:918:57: branch_true: ...to here
util-linux-2.42.2/include/xalloc.h:68:13: danger: ‘new_zram(*<unknown>)’ leaks here; was allocated at [(20)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 120)’
util-linux-2.42.2/login-utils/lslogins.c:1622:5: enter_function: entry to ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1627:40: call_function: calling ‘xcalloc’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1627:40: return_function: returning to ‘main’ from ‘xcalloc’
util-linux-2.42.2/login-utils/lslogins.c:1700:9: call_function: inlined call to ‘err_columns_index’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1700:9: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1701:9: call_function: inlined call to ‘err_columns_index’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1701:9: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1703:16: branch_false: following ‘false’ branch (when ‘c == -1’)...
util-linux-2.42.2/login-utils/lslogins.c:1841:12: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1841:12: branch_false: following ‘false’ branch (when ‘collist == 0’)...
util-linux-2.42.2/login-utils/lslogins.c:1844:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1844:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1850:19: branch_false: ...to here
util-linux-2.42.2/include/xalloc.h:68:13: danger: ‘xcalloc(1, 120)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 152)’
util-linux-2.42.2/lsfd-cmd/sock-xinfo.c:207:13: enter_function: entry to ‘load_sock_xinfo_with_fd’
util-linux-2.42.2/lsfd-cmd/sock-xinfo.c:210:17: call_function: calling ‘load_sock_xinfo_no_nsswitch’ from ‘load_sock_xinfo_with_fd’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 208)’
util-linux-2.42.2/login-utils/lslogins.c:1622:5: enter_function: entry to ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1627:40: call_function: calling ‘xcalloc’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1627:40: return_function: returning to ‘main’ from ‘xcalloc’
util-linux-2.42.2/login-utils/lslogins.c:1700:9: call_function: inlined call to ‘err_columns_index’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1700:9: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1701:9: call_function: inlined call to ‘err_columns_index’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1701:9: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1703:16: branch_false: following ‘false’ branch (when ‘c == -1’)...
util-linux-2.42.2/login-utils/lslogins.c:1841:12: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1841:12: branch_false: following ‘false’ branch (when ‘collist == 0’)...
util-linux-2.42.2/login-utils/lslogins.c:1844:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1844:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1845:21: branch_true: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1845:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1848:17: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1856:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1859:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1859:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1864:20: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1864:19: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1875:12: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1875:12: branch_false: following ‘false’ branch (when ‘outarg’ is NULL)...
util-linux-2.42.2/login-utils/lslogins.c:1879:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1879:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1883:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1883:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1886:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1886:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1889:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1889:13: call_function: calling ‘create_usertree’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 224)’
util-linux-2.42.2/sys-utils/lscpu.c:1254:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/lscpu.c:1309:15: call_function: inlined call to ‘lscpu_new_context’ from ‘main’
util-linux-2.42.2/sys-utils/lscpu.c:1309:15: call_function: inlined call to ‘lscpu_new_context’ from ‘main’
util-linux-2.42.2/sys-utils/lscpu.c:1311:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/sys-utils/lscpu.c:1313:17: branch_true: ...to here
util-linux-2.42.2/sys-utils/lscpu.c:1313:17: call_function: calling ‘err_exclusive_options’ from ‘main’
util-linux-2.42.2/sys-utils/lscpu.c:1313:17: return_function: returning to ‘main’ from ‘err_exclusive_options’
util-linux-2.42.2/include/xalloc.h:68:13: danger: ‘xcalloc(1, 224)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 24)’
util-linux-2.42.2/misc-utils/kill.c:629:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/kill.c:642:16: call_function: calling ‘parse_arguments’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 240)’
util-linux-2.42.2/disk-utils/fsck.c:1627:5: enter_function: entry to ‘main’
util-linux-2.42.2/disk-utils/fsck.c:1657:9: call_function: calling ‘parse_argv’ from ‘main’
util-linux-2.42.2/disk-utils/fsck.c:1657:9: return_function: returning to ‘main’ from ‘parse_argv’
util-linux-2.42.2/disk-utils/fsck.c:1659:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/disk-utils/fsck.c:1660:17: branch_true: ...to here
util-linux-2.42.2/disk-utils/fsck.c:1664:9: call_function: calling ‘load_fs_info’ from ‘main’
util-linux-2.42.2/disk-utils/fsck.c:1664:9: return_function: returning to ‘main’ from ‘load_fs_info’
util-linux-2.42.2/disk-utils/fsck.c:1666:21: call_function: calling ‘xstrdup’ from ‘main’
util-linux-2.42.2/disk-utils/fsck.c:1666:21: return_function: returning to ‘main’ from ‘xstrdup’
util-linux-2.42.2/disk-utils/fsck.c:1668:13: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/fsck.c:1671:13: branch_false: ...to here
util-linux-2.42.2/disk-utils/fsck.c:1671:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/fsck.c:1678:13: branch_false: ...to here
util-linux-2.42.2/disk-utils/fsck.c:1678:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/fsck.c:1681:13: branch_false: ...to here
util-linux-2.42.2/disk-utils/fsck.c:1681:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/disk-utils/fsck.c:1682:17: branch_true: ...to here
util-linux-2.42.2/disk-utils/fsck.c:1684:24: call_function: calling ‘check_all’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 32)’
util-linux-2.42.2/misc-utils/logger.c:1126:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/logger.c:1191:16: branch_true: following ‘true’ branch (when ‘ch != -1’)...
util-linux-2.42.2/misc-utils/logger.c:1193:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/logger.c:1280:30: call_function: calling ‘valid_structured_data_id’ from ‘main’
util-linux-2.42.2/misc-utils/logger.c:1280:30: return_function: returning to ‘main’ from ‘valid_structured_data_id’
util-linux-2.42.2/misc-utils/logger.c:1280:28: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/logger.c:1282:25: branch_false: ...to here
util-linux-2.42.2/misc-utils/logger.c:1282:25: call_function: calling ‘add_structured_data_id’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 40)’
util-linux-2.42.2/lsfd-cmd/sock-xinfo.c:207:13: enter_function: entry to ‘load_sock_xinfo_with_fd’
util-linux-2.42.2/lsfd-cmd/sock-xinfo.c:210:17: call_function: calling ‘load_sock_xinfo_no_nsswitch’ from ‘load_sock_xinfo_with_fd’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 48)’
util-linux-2.42.2/sys-utils/prlimit.c:508:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/prlimit.c:559:15: branch_true: following ‘true’ branch (when ‘opt != -1’)...
util-linux-2.42.2/sys-utils/prlimit.c:562:17: branch_true: ...to here
util-linux-2.42.2/sys-utils/prlimit.c:564:25: call_function: calling ‘add_prlim’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 64)’
util-linux-2.42.2/text-utils/hexdump-parse.c:479:26: enter_function: entry to ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:485:20: call_function: calling ‘xmalloc’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:485:20: return_function: returning to ‘color_fmt’ from ‘xmalloc’
util-linux-2.42.2/text-utils/hexdump-parse.c:486:23: call_function: calling ‘xcalloc’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:486:23: return_function: returning to ‘color_fmt’ from ‘xcalloc’
util-linux-2.42.2/text-utils/hexdump-parse.c:493:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:496:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:501:23: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:501:23: call_function: calling ‘xstrndup’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:501:23: return_function: returning to ‘color_fmt’ from ‘xstrndup’
util-linux-2.42.2/text-utils/hexdump-parse.c:506:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:510:21: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:510:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:552:25: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:556:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:559:28: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:563:29: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:563:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:564:33: branch_true: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:568:36: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:570:64: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:570:36: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:572:49: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:575:40: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:576:46: branch_true: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:576:46: call_function: calling ‘xcalloc’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:576:46: return_function: returning to ‘color_fmt’ from ‘xcalloc’
util-linux-2.42.2/include/xalloc.h:68:13: danger: ‘xcalloc(1, 64)’ leaks here; was allocated at [(41)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/40)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 72)’
util-linux-2.42.2/sys-utils/zramctl.c:788:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/zramctl.c:881:12: branch_false: following ‘false’ branch (when ‘find == 0’)...
util-linux-2.42.2/sys-utils/zramctl.c:884:12: branch_false: ...to here
util-linux-2.42.2/sys-utils/zramctl.c:887:13: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/zramctl.c:890:14: branch_false: ...to here
util-linux-2.42.2/sys-utils/zramctl.c:890:13: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/zramctl.c:899:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/zramctl.c:900:25: branch_true: ...to here
util-linux-2.42.2/sys-utils/zramctl.c:910:20: branch_false: following ‘false’ branch (when ‘outarg’ is NULL)...
util-linux-2.42.2/sys-utils/zramctl.c:915:21: branch_false: ...to here
util-linux-2.42.2/sys-utils/zramctl.c:915:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/zramctl.c:920:17: branch_false: ...to here
util-linux-2.42.2/sys-utils/zramctl.c:920:17: call_function: calling ‘status’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 8)’
util-linux-2.42.2/sys-utils/lsipc.c:1439:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/lsipc.c:1445:37: call_function: calling ‘xcalloc’ from ‘main’
util-linux-2.42.2/sys-utils/lsipc.c:1445:37: return_function: returning to ‘main’ from ‘xcalloc’
util-linux-2.42.2/sys-utils/lsipc.c:1504:16: branch_true: following ‘true’ branch (when ‘opt != -1’)...
util-linux-2.42.2/sys-utils/lsipc.c:1506:17: branch_true: ...to here
util-linux-2.42.2/sys-utils/lsipc.c:1506:17: call_function: calling ‘err_exclusive_options’ from ‘main’
util-linux-2.42.2/sys-utils/lsipc.c:1506:17: return_function: returning to ‘main’ from ‘err_exclusive_options’
util-linux-2.42.2/include/xalloc.h:68:13: danger: ‘xcalloc(1, 8)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(1, 96)’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:703:5: enter_function: entry to ‘main’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:795:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:799:23: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:813:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:815:14: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:816:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:819:13: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:819:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:822:22: branch_false: ...to here
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:822:22: call_function: calling ‘xcalloc’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:822:22: return_function: returning to ‘main’ from ‘xcalloc’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:827:28: call_function: calling ‘parse_directory’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:827:28: return_function: returning to ‘main’ from ‘parse_directory’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:830:9: call_function: calling ‘eliminate_doubles’ from ‘main’
util-linux-2.42.2/disk-utils/mkfs.cramfs.c:830:9: return_function: returning to ‘main’ from ‘eliminate_doubles’
util-linux-2.42.2/include/xalloc.h:68:13: danger: ‘xcalloc(1, 96)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
util-linux-2.42.2/include/xalloc.h:68:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(n_args, 8)’
util-linux-2.42.2/login-utils/su-common.c:793:13: enter_function: entry to ‘run_shell’
util-linux-2.42.2/login-utils/su-common.c:799:29: call_function: calling ‘xcalloc’ from ‘run_shell’
util-linux-2.42.2/login-utils/su-common.c:799:29: return_function: returning to ‘run_shell’ from ‘xcalloc’
util-linux-2.42.2/login-utils/su-common.c:807:15: call_function: calling ‘xstrdup’ from ‘run_shell’
util-linux-2.42.2/login-utils/su-common.c:807:15: return_function: returning to ‘run_shell’ from ‘xstrdup’
util-linux-2.42.2/login-utils/su-common.c:809:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/su-common.c:819:27: branch_false: ...to here
util-linux-2.42.2/include/xalloc.h:68:13: danger: ‘xcalloc(n_args, 8)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
util-linux-2.42.2/include/xalloc.h:70:16: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
util-linux-2.42.2/text-utils/hexdump-parse.c:479:26: enter_function: entry to ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:485:20: call_function: calling ‘xmalloc’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:485:20: return_function: returning to ‘color_fmt’ from ‘xmalloc’
util-linux-2.42.2/text-utils/hexdump-parse.c:486:23: call_function: calling ‘xcalloc’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:486:23: return_function: returning to ‘color_fmt’ from ‘xcalloc’
util-linux-2.42.2/include/xalloc.h:70:16: danger: ‘hcnext’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
util-linux-2.42.2/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.label’
util-linux-2.42.2/misc-utils/lsblk-properties.c:392:23: enter_function: entry to ‘lsblk_device_get_properties’
util-linux-2.42.2/misc-utils/lsblk-properties.c:398:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
util-linux-2.42.2/misc-utils/lsblk-properties.c:401:30: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:411:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: call_function: calling ‘get_properties_by_file’ from ‘lsblk_device_get_properties’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
util-linux-2.42.2/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.partlabel’
util-linux-2.42.2/misc-utils/lsblk-properties.c:392:23: enter_function: entry to ‘lsblk_device_get_properties’
util-linux-2.42.2/misc-utils/lsblk-properties.c:398:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
util-linux-2.42.2/misc-utils/lsblk-properties.c:401:30: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:411:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: call_function: calling ‘get_properties_by_file’ from ‘lsblk_device_get_properties’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
util-linux-2.42.2/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.ptuuid’
util-linux-2.42.2/misc-utils/lsblk-properties.c:392:23: enter_function: entry to ‘lsblk_device_get_properties’
util-linux-2.42.2/misc-utils/lsblk-properties.c:398:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
util-linux-2.42.2/misc-utils/lsblk-properties.c:401:30: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:411:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: call_function: calling ‘get_properties_by_file’ from ‘lsblk_device_get_properties’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
util-linux-2.42.2/include/xalloc.h:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.uuid’
util-linux-2.42.2/misc-utils/lsblk-properties.c:392:23: enter_function: entry to ‘lsblk_device_get_properties’
util-linux-2.42.2/misc-utils/lsblk-properties.c:398:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
util-linux-2.42.2/misc-utils/lsblk-properties.c:401:30: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:411:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: call_function: calling ‘get_properties_by_file’ from ‘lsblk_device_get_properties’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
util-linux-2.42.2/include/xalloc.h:110:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
util-linux-2.42.2/text-utils/hexdump-parse.c:479:26: enter_function: entry to ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:485:20: call_function: calling ‘xmalloc’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:485:20: return_function: returning to ‘color_fmt’ from ‘xmalloc’
util-linux-2.42.2/text-utils/hexdump-parse.c:486:23: call_function: calling ‘xcalloc’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:486:23: return_function: returning to ‘color_fmt’ from ‘xcalloc’
util-linux-2.42.2/text-utils/hexdump-parse.c:493:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:496:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:501:23: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:501:23: call_function: calling ‘xstrndup’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:501:23: return_function: returning to ‘color_fmt’ from ‘xstrndup’
util-linux-2.42.2/text-utils/hexdump-parse.c:506:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:507:32: branch_true: ...to here
util-linux-2.42.2/include/xalloc.h:110:16: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
util-linux-2.42.2/include/xalloc.h:110:16: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
util-linux-2.42.2/text-utils/hexdump-parse.c:479:26: enter_function: entry to ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:485:20: call_function: calling ‘xmalloc’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:485:20: return_function: returning to ‘color_fmt’ from ‘xmalloc’
util-linux-2.42.2/text-utils/hexdump-parse.c:486:23: call_function: calling ‘xcalloc’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:486:23: return_function: returning to ‘color_fmt’ from ‘xcalloc’
util-linux-2.42.2/text-utils/hexdump-parse.c:493:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:496:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:501:23: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:501:23: call_function: calling ‘xstrndup’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:501:23: return_function: returning to ‘color_fmt’ from ‘xstrndup’
util-linux-2.42.2/text-utils/hexdump-parse.c:506:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:507:32: branch_true: ...to here
util-linux-2.42.2/include/xalloc.h:110:16: danger: ‘hcnext’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def55]
util-linux-2.42.2/include/xalloc.h:186:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(sz)’ where non-null expected
util-linux-2.42.2/sys-utils/irqtop.c:458:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/irqtop.c:476:9: call_function: calling ‘parse_args’ from ‘main’
util-linux-2.42.2/sys-utils/irqtop.c:476:9: return_function: returning to ‘main’ from ‘parse_args’
util-linux-2.42.2/sys-utils/irqtop.c:478:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/irqtop.c:491:9: branch_true: ...to here
util-linux-2.42.2/sys-utils/irqtop.c:493:24: call_function: calling ‘xgethostname’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
util-linux-2.42.2/lib/colors.c:392:12: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(name)'
util-linux-2.42.2/lib/colors.c:683:13: enter_function: entry to 'color_scheme_get_sequence'
util-linux-2.42.2/lib/colors.c:690:14: call_function: calling 'colors_get_scheme' from 'color_scheme_get_sequence'
Error: GCC_ANALYZER_WARNING: [#def57]
util-linux-2.42.2/lib/pager.c:285:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
util-linux-2.42.2/lib/pager.c:265:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/lib/pager.c:268:9: branch_false: ...to here
util-linux-2.42.2/lib/pager.c:280:9: release_resource: closed here
util-linux-2.42.2/lib/pager.c:285:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def58]
util-linux-2.42.2/lib/pager.c:287:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
util-linux-2.42.2/lib/pager.c:265:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/lib/pager.c:268:9: branch_false: ...to here
util-linux-2.42.2/lib/pager.c:281:9: release_resource: closed here
util-linux-2.42.2/lib/pager.c:287:9: danger: ‘2’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-457): [#def59]
util-linux-2.42.2/lib/path.c:758:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
util-linux-2.42.2/lib/path.c:1143:5: enter_function: entry to 'ul_path_readf_cpulist'
util-linux-2.42.2/lib/path.c:1149:14: call_function: calling 'ul_path_cpuparse' from 'ul_path_readf_cpulist'
Error: GCC_ANALYZER_WARNING (CWE-465): [#def60]
util-linux-2.42.2/lib/pidutils.c:65:12: warning[-Wanalyzer-deref-before-check]: check of 'end' for NULL after already dereferencing it
util-linux-2.42.2/lib/pidutils.c:37:12: branch_false: following 'false' branch...
util-linux-2.42.2/lib/pidutils.c:44:12: branch_false: following 'false' branch...
util-linux-2.42.2/lib/pidutils.c:65:12: danger: pointer 'end' is checked for NULL here but it was already dereferenced at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
util-linux-2.42.2/lib/randutils.c:63:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'random_get_fd()'
util-linux-2.42.2/lib/randutils.c:100:5: enter_function: entry to 'ul_random_get_bytes'
util-linux-2.42.2/lib/randutils.c:127:12: branch_true: following 'true' branch...
util-linux-2.42.2/lib/randutils.c:135:26: branch_true: ...to here
util-linux-2.42.2/lib/randutils.c:135:26: call_function: calling 'random_get_fd' from 'ul_random_get_bytes'
util-linux-2.42.2/lib/randutils.c:135:26: return_function: returning to 'ul_random_get_bytes' from 'random_get_fd'
util-linux-2.42.2/lib/randutils.c:63:9: danger: 'random_get_fd()' leaks here; was opened at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
util-linux-2.42.2/libblkid/src/devname.c:80:33: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(devname)'
util-linux-2.42.2/libblkid/src/devname.c:611:5: enter_function: entry to 'blkid_probe_all_removable'
util-linux-2.42.2/libblkid/src/devname.c:616:15: call_function: calling 'sysfs_probe_all' from 'blkid_probe_all_removable'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def63]
util-linux-2.42.2/libblkid/src/partitions/partitions.c:331:9: warning[-Wanalyzer-use-after-free]: use after 'free' of 'tab'
util-linux-2.42.2/libblkid/src/partitions/partitions.c:594:12: enter_function: entry to 'partitions_probe'
util-linux-2.42.2/libblkid/src/partitions/partitions.c:607:12: branch_true: following 'true' branch...
util-linux-2.42.2/libblkid/src/partitions/partitions.c:608:17: branch_true: ...to here
util-linux-2.42.2/libblkid/src/partitions/partitions.c:608:17: call_function: calling 'partitions_init_data' from 'partitions_probe'
Error: GCC_ANALYZER_WARNING (CWE-415): [#def64]
util-linux-2.42.2/libblkid/src/probe.c:296:9: warning[-Wanalyzer-double-free]: double-'free' of '*v.data'
util-linux-2.42.2/libblkid/src/probe.c:2126:13: enter_function: entry to 'blkid_probe_get_wholedisk_probe'
util-linux-2.42.2/libblkid/src/probe.c:2130:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/probe.c:2133:13: branch_false: ...to here
util-linux-2.42.2/libblkid/src/probe.c:2145:12: branch_true: following 'true' branch...
util-linux-2.42.2/libblkid/src/probe.c:2147:35: branch_true: ...to here
util-linux-2.42.2/libblkid/src/probe.c:2150:20: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/probe.c:2153:17: branch_false: ...to here
util-linux-2.42.2/libblkid/src/probe.c:2155:34: call_function: calling 'blkid_new_probe_from_filename' from 'blkid_probe_get_wholedisk_probe'
Error: GCC_ANALYZER_WARNING (CWE-415): [#def65]
util-linux-2.42.2/libblkid/src/probe.c:2623: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.42.2/libblkid/src/probe.c:2126:13: enter_function: entry to 'blkid_probe_get_wholedisk_probe'
util-linux-2.42.2/libblkid/src/probe.c:2130:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/probe.c:2133:13: branch_false: ...to here
util-linux-2.42.2/libblkid/src/probe.c:2145:12: branch_true: following 'true' branch...
util-linux-2.42.2/libblkid/src/probe.c:2147:35: branch_true: ...to here
util-linux-2.42.2/libblkid/src/probe.c:2150:20: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/probe.c:2153:17: branch_false: ...to here
util-linux-2.42.2/libblkid/src/probe.c:2155:34: call_function: calling 'blkid_new_probe_from_filename' from 'blkid_probe_get_wholedisk_probe'
Error: GCC_ANALYZER_WARNING (CWE-415): [#def66]
util-linux-2.42.2/libblkid/src/probe.c:2624:17: warning[-Wanalyzer-double-free]: double-'free' of '((struct list_head *)pr)[8].next + -16'
util-linux-2.42.2/libblkid/src/probe.c:2126:13: enter_function: entry to 'blkid_probe_get_wholedisk_probe'
util-linux-2.42.2/libblkid/src/probe.c:2130:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/probe.c:2133:13: branch_false: ...to here
util-linux-2.42.2/libblkid/src/probe.c:2145:12: branch_true: following 'true' branch...
util-linux-2.42.2/libblkid/src/probe.c:2147:35: branch_true: ...to here
util-linux-2.42.2/libblkid/src/probe.c:2150:20: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/probe.c:2153:17: branch_false: ...to here
util-linux-2.42.2/libblkid/src/probe.c:2155:34: call_function: calling 'blkid_new_probe_from_filename' from 'blkid_probe_get_wholedisk_probe'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def67]
util-linux-2.42.2/libblkid/src/topology/dm.c:118:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[0]'
util-linux-2.42.2/libblkid/src/topology/dm.c:44:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/dm.c:46:14: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/dm.c:46:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/dm.c:46:12: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/dm.c:49:21: branch_true: following 'true' branch (when 'i != 3')...
util-linux-2.42.2/libblkid/src/topology/dm.c:51:26: branch_true: ...to here
util-linux-2.42.2/libblkid/src/topology/dm.c:57:12: branch_false: following 'false' branch (when 'cmd' is non-NULL)...
util-linux-2.42.2/libblkid/src/topology/dm.c:59:13: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/dm.c:59:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/dm.c:64:17: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/dm.c:123:17: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/dm.c:118:16: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/dm.c:118:16: danger: 'dmpipe[0]' leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
util-linux-2.42.2/libblkid/src/topology/dm.c:118:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dmpipe[1]'
util-linux-2.42.2/libblkid/src/topology/dm.c:44:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/dm.c:46:14: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/dm.c:46:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/dm.c:46:12: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/dm.c:49:21: branch_true: following 'true' branch (when 'i != 3')...
util-linux-2.42.2/libblkid/src/topology/dm.c:51:26: branch_true: ...to here
util-linux-2.42.2/libblkid/src/topology/dm.c:57:12: branch_false: following 'false' branch (when 'cmd' is non-NULL)...
util-linux-2.42.2/libblkid/src/topology/dm.c:59:13: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/dm.c:59:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/dm.c:64:17: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/dm.c:123:17: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/dm.c:118:16: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/dm.c:118:16: danger: 'dmpipe[1]' leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
util-linux-2.42.2/libblkid/src/topology/lvm.c:125:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[0]'
util-linux-2.42.2/libblkid/src/topology/lvm.c:49:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/lvm.c:51:14: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:51:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/lvm.c:51:12: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:54:21: branch_true: following 'true' branch (when 'i != 3')...
util-linux-2.42.2/libblkid/src/topology/lvm.c:56:26: branch_true: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:62:12: branch_false: following 'false' branch (when 'cmd' is non-NULL)...
util-linux-2.42.2/libblkid/src/topology/lvm.c:65:19: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:66:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/lvm.c:69:13: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:69:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/lvm.c:74:17: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:129:12: branch_false: following 'false' branch (when 'stream' is NULL)...
util-linux-2.42.2/libblkid/src/topology/lvm.c:131:18: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:131:17: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/lvm.c:133:13: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:133:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/lvm.c:125:16: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:125:16: danger: 'lvpipe[0]' leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def70]
util-linux-2.42.2/libblkid/src/topology/lvm.c:125:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'lvpipe[1]'
util-linux-2.42.2/libblkid/src/topology/lvm.c:49:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/lvm.c:51:14: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:51:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/lvm.c:51:12: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:54:21: branch_true: following 'true' branch (when 'i != 3')...
util-linux-2.42.2/libblkid/src/topology/lvm.c:56:26: branch_true: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:62:12: branch_false: following 'false' branch (when 'cmd' is non-NULL)...
util-linux-2.42.2/libblkid/src/topology/lvm.c:65:19: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:66:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/lvm.c:69:13: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:69:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/lvm.c:74:17: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:129:12: branch_false: following 'false' branch (when 'stream' is NULL)...
util-linux-2.42.2/libblkid/src/topology/lvm.c:131:18: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:131:17: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/lvm.c:133:13: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:133:12: branch_false: following 'false' branch...
util-linux-2.42.2/libblkid/src/topology/lvm.c:125:16: branch_false: ...to here
util-linux-2.42.2/libblkid/src/topology/lvm.c:125:16: danger: 'lvpipe[1]' leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
util-linux-2.42.2/liblastlog2/src/lastlog2.c:396:24: warning[-Wanalyzer-malloc-leak]: leak of 'tty'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:385:1: enter_function: entry to 'll2_update_login_time'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:395:12: branch_false: following 'false' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:398:18: branch_false: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:398:18: call_function: calling 'read_entry' from 'll2_update_login_time'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:398:18: return_function: returning to 'll2_update_login_time' from 'read_entry'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:399:12: branch_true: following 'true' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:400:17: branch_true: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:396:24: danger: 'tty' leaks here; was allocated at [(20)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def72]
util-linux-2.42.2/liblastlog2/src/lastlog2.c:404:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'pam_service'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:385:1: enter_function: entry to 'll2_update_login_time'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:395:12: branch_false: following 'false' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:398:18: branch_false: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:398:18: call_function: calling 'read_entry' from 'll2_update_login_time'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:398:18: return_function: returning to 'll2_update_login_time' from 'read_entry'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:399:12: branch_false: following 'false' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:404:18: branch_false: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:404:18: danger: use of uninitialized value 'pam_service' here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def73]
util-linux-2.42.2/liblastlog2/src/lastlog2.c:404:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'rhost'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:385:1: enter_function: entry to 'll2_update_login_time'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:395:12: branch_false: following 'false' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:398:18: branch_false: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:398:18: call_function: calling 'read_entry' from 'll2_update_login_time'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:398:18: return_function: returning to 'll2_update_login_time' from 'read_entry'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:399:12: branch_false: following 'false' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:404:18: branch_false: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:404:18: danger: use of uninitialized value 'rhost' here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
util-linux-2.42.2/liblastlog2/src/lastlog2.c:558:24: warning[-Wanalyzer-malloc-leak]: leak of 'pam_service'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:546:1: enter_function: entry to 'll2_rename_user'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:557:12: branch_false: following 'false' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:560:18: branch_false: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:560:18: call_function: calling 'read_entry' from 'll2_rename_user'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:560:18: return_function: returning to 'll2_rename_user' from 'read_entry'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:561:12: branch_false: following 'false' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:566:18: branch_false: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:566:18: call_function: calling 'write_entry' from 'll2_rename_user'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:566:18: return_function: returning to 'll2_rename_user' from 'write_entry'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:567:12: branch_true: following 'true' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:568:17: branch_true: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:558:24: danger: 'pam_service' leaks here; was allocated at [(26)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/25)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
util-linux-2.42.2/liblastlog2/src/lastlog2.c:558:24: warning[-Wanalyzer-malloc-leak]: leak of 'tty'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:546:1: enter_function: entry to 'll2_rename_user'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:557:12: branch_false: following 'false' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:560:18: branch_false: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:560:18: call_function: calling 'read_entry' from 'll2_rename_user'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:560:18: return_function: returning to 'll2_rename_user' from 'read_entry'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:561:12: branch_true: following 'true' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:562:17: branch_true: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:558:24: danger: 'tty' leaks here; was allocated at [(20)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def76]
util-linux-2.42.2/liblastlog2/src/lastlog2.c:566:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'pam_service'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:546:1: enter_function: entry to 'll2_rename_user'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:557:12: branch_false: following 'false' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:560:18: branch_false: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:560:18: call_function: calling 'read_entry' from 'll2_rename_user'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:560:18: return_function: returning to 'll2_rename_user' from 'read_entry'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:561:12: branch_false: following 'false' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:566:18: branch_false: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:566:18: danger: use of uninitialized value 'pam_service' here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def77]
util-linux-2.42.2/liblastlog2/src/lastlog2.c:566:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'rhost'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:546:1: enter_function: entry to 'll2_rename_user'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:557:12: branch_false: following 'false' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:560:18: branch_false: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:560:18: call_function: calling 'read_entry' from 'll2_rename_user'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:560:18: return_function: returning to 'll2_rename_user' from 'read_entry'
util-linux-2.42.2/liblastlog2/src/lastlog2.c:561:12: branch_false: following 'false' branch...
util-linux-2.42.2/liblastlog2/src/lastlog2.c:566:18: branch_false: ...to here
util-linux-2.42.2/liblastlog2/src/lastlog2.c:566:18: danger: use of uninitialized value 'rhost' here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
util-linux-2.42.2/libmount/src/fs.c:165:1: warning[-Wanalyzer-malloc-leak]: leak of '*m.mnt_dir'
util-linux-2.42.2/libmount/src/fs.c:2016:5: enter_function: entry to 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2021:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2024:9: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2025:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
util-linux-2.42.2/libmount/src/fs.c:2031:19: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2031:19: call_function: calling 'mnt_fs_get_source' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2031:19: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_source'
util-linux-2.42.2/libmount/src/fs.c:2031:19: call_function: calling 'update_str' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2031:19: return_function: returning to 'mnt_fs_to_mntent' from 'update_str'
util-linux-2.42.2/libmount/src/fs.c:2031:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2033:19: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2033:19: call_function: calling 'mnt_fs_get_target' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2033:19: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_target'
util-linux-2.42.2/libmount/src/fs.c:2033:19: call_function: calling 'update_str' from 'mnt_fs_to_mntent'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
util-linux-2.42.2/libmount/src/fs.c:165:1: warning[-Wanalyzer-malloc-leak]: leak of '*m.mnt_fsname'
util-linux-2.42.2/libmount/src/fs.c:2016:5: enter_function: entry to 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2021:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2024:9: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2025:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
util-linux-2.42.2/libmount/src/fs.c:2031:19: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2031:19: call_function: calling 'mnt_fs_get_source' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2031:19: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_source'
util-linux-2.42.2/libmount/src/fs.c:2031:19: call_function: calling 'update_str' from 'mnt_fs_to_mntent'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
util-linux-2.42.2/libmount/src/fs.c:165:1: warning[-Wanalyzer-malloc-leak]: leak of '*m.mnt_type'
util-linux-2.42.2/libmount/src/fs.c:2016:5: enter_function: entry to 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2021:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2024:9: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2025:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
util-linux-2.42.2/libmount/src/fs.c:2031:19: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2031:19: call_function: calling 'mnt_fs_get_source' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2031:19: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_source'
util-linux-2.42.2/libmount/src/fs.c:2031:19: call_function: calling 'update_str' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2031:19: return_function: returning to 'mnt_fs_to_mntent' from 'update_str'
util-linux-2.42.2/libmount/src/fs.c:2031:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2033:19: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2033:19: call_function: calling 'mnt_fs_get_target' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2033:19: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_target'
util-linux-2.42.2/libmount/src/fs.c:2033:19: call_function: calling 'update_str' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2033:19: return_function: returning to 'mnt_fs_to_mntent' from 'update_str'
util-linux-2.42.2/libmount/src/fs.c:2033:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2035:19: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2035:19: call_function: calling 'mnt_fs_get_fstype' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2035:19: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_fstype'
util-linux-2.42.2/libmount/src/fs.c:2035:19: call_function: calling 'update_str' from 'mnt_fs_to_mntent'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
util-linux-2.42.2/libmount/src/fs.c:2040:12: warning[-Wanalyzer-malloc-leak]: leak of '*m.mnt_opts'
util-linux-2.42.2/libmount/src/fs.c:2016:5: enter_function: entry to 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2021:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2024:9: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2025:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
util-linux-2.42.2/libmount/src/fs.c:2031:19: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2031:19: call_function: calling 'mnt_fs_get_source' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2031:19: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_source'
util-linux-2.42.2/libmount/src/fs.c:2031:19: call_function: calling 'update_str' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2031:19: return_function: returning to 'mnt_fs_to_mntent' from 'update_str'
util-linux-2.42.2/libmount/src/fs.c:2031:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2033:19: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2033:19: call_function: calling 'mnt_fs_get_target' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2033:19: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_target'
util-linux-2.42.2/libmount/src/fs.c:2033:19: call_function: calling 'update_str' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2033:19: return_function: returning to 'mnt_fs_to_mntent' from 'update_str'
util-linux-2.42.2/libmount/src/fs.c:2033:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2035:19: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2035:19: call_function: calling 'mnt_fs_get_fstype' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2035:19: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_fstype'
util-linux-2.42.2/libmount/src/fs.c:2035:19: call_function: calling 'update_str' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2035:19: return_function: returning to 'mnt_fs_to_mntent' from 'update_str'
util-linux-2.42.2/libmount/src/fs.c:2035:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2038:9: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2039:23: call_function: calling 'mnt_fs_strdup_options' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2039:23: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_strdup_options'
util-linux-2.42.2/libmount/src/fs.c:2040:12: danger: '*m.mnt_opts' leaks here; was allocated at [(61)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/60)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
util-linux-2.42.2/libmount/src/fs.c:2050:20: warning[-Wanalyzer-malloc-leak]: leak of '*m.mnt_fsname'
util-linux-2.42.2/libmount/src/fs.c:2016:5: enter_function: entry to 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2021:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2024:9: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2025:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
util-linux-2.42.2/libmount/src/fs.c:2031:19: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2031:19: call_function: calling 'mnt_fs_get_source' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2031:19: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_source'
util-linux-2.42.2/libmount/src/fs.c:2031:19: call_function: calling 'update_str' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2031:19: return_function: returning to 'mnt_fs_to_mntent' from 'update_str'
util-linux-2.42.2/libmount/src/fs.c:2031:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2033:19: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2033:19: call_function: calling 'mnt_fs_get_target' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2033:19: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_target'
util-linux-2.42.2/libmount/src/fs.c:2033:19: call_function: calling 'update_str' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2033:19: return_function: returning to 'mnt_fs_to_mntent' from 'update_str'
util-linux-2.42.2/libmount/src/fs.c:2033:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2035:19: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2035:19: call_function: calling 'mnt_fs_get_fstype' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2035:19: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_fstype'
util-linux-2.42.2/libmount/src/fs.c:2035:19: call_function: calling 'update_str' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2035:19: return_function: returning to 'mnt_fs_to_mntent' from 'update_str'
util-linux-2.42.2/libmount/src/fs.c:2035:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/fs.c:2038:9: branch_false: ...to here
util-linux-2.42.2/libmount/src/fs.c:2039:23: call_function: calling 'mnt_fs_strdup_options' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2039:23: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_strdup_options'
util-linux-2.42.2/libmount/src/fs.c:2045:23: call_function: calling 'mnt_fs_get_freq' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2045:23: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_freq'
util-linux-2.42.2/libmount/src/fs.c:2046:25: call_function: calling 'mnt_fs_get_passno' from 'mnt_fs_to_mntent'
util-linux-2.42.2/libmount/src/fs.c:2046:25: return_function: returning to 'mnt_fs_to_mntent' from 'mnt_fs_get_passno'
util-linux-2.42.2/libmount/src/fs.c:2048:12: branch_true: following 'true' branch...
util-linux-2.42.2/libmount/src/fs.c:2049:33: branch_true: ...to here
util-linux-2.42.2/libmount/src/fs.c:2049:33: acquire_memory: allocated here
util-linux-2.42.2/libmount/src/fs.c:2050:20: danger: '*m.mnt_fsname' leaks here; was allocated at [(70)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/69)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
util-linux-2.42.2/libmount/src/hook_idmap.c:480:25: warning[-Wanalyzer-malloc-leak]: leak of 'idmap'
util-linux-2.42.2/libmount/src/hook_idmap.c:394:12: enter_function: entry to 'hook_prepare_options'
util-linux-2.42.2/libmount/src/hook_idmap.c:407:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/hook_idmap.c:410:15: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:411:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/hook_idmap.c:414:17: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:415:12: branch_true: following 'true' branch...
util-linux-2.42.2/libmount/src/hook_idmap.c:416:25: branch_true: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:417:13: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/hook_idmap.c:420:14: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:420:14: call_function: calling 'new_hook_data' from 'hook_prepare_options'
util-linux-2.42.2/libmount/src/hook_idmap.c:420:14: return_function: returning to 'hook_prepare_options' from 'new_hook_data'
util-linux-2.42.2/libmount/src/hook_idmap.c:421:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/hook_idmap.c:425:12: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:425:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/hook_idmap.c:432:15: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:433:12: branch_false: following 'false' branch (when 'buf' is non-NULL)...
util-linux-2.42.2/libmount/src/hook_idmap.c:446:20: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:446:50: branch_true: following 'true' branch (when 'tok' is non-NULL)...
util-linux-2.42.2/libmount/src/hook_idmap.c:450:26: branch_true: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:452:21: call_function: calling 'ul_startswith' from 'hook_prepare_options'
util-linux-2.42.2/libmount/src/hook_idmap.c:452:21: return_function: returning to 'hook_prepare_options' from 'ul_startswith'
util-linux-2.42.2/libmount/src/hook_idmap.c:452:20: branch_true: following 'true' branch...
util-linux-2.42.2/libmount/src/hook_idmap.c:455:25: branch_true: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:477:20: branch_false: following 'false' branch (when 'rc == 3')...
util-linux-2.42.2/libmount/src/hook_idmap.c:480:25: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:480:25: acquire_memory: allocated here
util-linux-2.42.2/libmount/src/hook_idmap.c:481:20: branch_false: following 'false' branch (when 'idmap' is non-NULL)...
util-linux-2.42.2/libmount/src/hook_idmap.c:484:17: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:446:50: branch_true: following 'true' branch (when 'tok' is non-NULL)...
util-linux-2.42.2/libmount/src/hook_idmap.c:450:26: branch_true: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:452:21: call_function: calling 'ul_startswith' from 'hook_prepare_options'
util-linux-2.42.2/libmount/src/hook_idmap.c:452:21: return_function: returning to 'hook_prepare_options' from 'ul_startswith'
util-linux-2.42.2/libmount/src/hook_idmap.c:452:20: branch_true: following 'true' branch...
util-linux-2.42.2/libmount/src/hook_idmap.c:455:25: branch_true: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:477:20: branch_false: following 'false' branch (when 'rc == 3')...
util-linux-2.42.2/libmount/src/hook_idmap.c:480:25: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_idmap.c:480:25: danger: 'idmap' leaks here; was allocated at [(34)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/33)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
util-linux-2.42.2/libmount/src/hook_owner.c:91:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
util-linux-2.42.2/libmount/src/hook_owner.c:54:9: branch_true: following 'true' branch (when 'cxt' is non-NULL)...
util-linux-2.42.2/libmount/src/hook_owner.c:56:12: branch_true: ...to here
util-linux-2.42.2/libmount/src/hook_owner.c:56:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/hook_owner.c:60:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/hook_owner.c:65:13: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_owner.c:65:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/hook_owner.c:68:22: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_owner.c:68:22: acquire_resource: opened here
util-linux-2.42.2/libmount/src/hook_owner.c:70:12: branch_false: following 'false' branch (when 'fd >= 0')...
util-linux-2.42.2/libmount/src/hook_owner.c:73:13: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_owner.c:73:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/hook_owner.c:79:13: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/hook_owner.c:88:14: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_owner.c:88:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/hook_owner.c:88:12: branch_false: ...to here
util-linux-2.42.2/libmount/src/hook_owner.c:91:1: danger: 'fd' leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
util-linux-2.42.2/libmount/src/monitor.c:444:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
util-linux-2.42.2/libmount/src/monitor.c:425:5: enter_function: entry to 'mnt_monitor_next_change'
util-linux-2.42.2/libmount/src/monitor.c:432:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/monitor.c:435:9: release_memory: '*mn.last' is NULL
util-linux-2.42.2/libmount/src/monitor.c:437:14: call_function: calling 'get_active' from 'mnt_monitor_next_change'
util-linux-2.42.2/libmount/src/monitor.c:437:14: return_function: returning to 'mnt_monitor_next_change' from 'get_active'
util-linux-2.42.2/libmount/src/monitor.c:437:9: release_memory: 'me' is NULL
util-linux-2.42.2/libmount/src/monitor.c:438:12: branch_true: following 'true' branch...
util-linux-2.42.2/libmount/src/monitor.c:439:22: branch_true: ...to here
util-linux-2.42.2/libmount/src/monitor.c:439:22: call_function: calling 'read_epoll_events' from 'mnt_monitor_next_change'
util-linux-2.42.2/libmount/src/monitor.c:439:22: return_function: returning to 'mnt_monitor_next_change' from 'read_epoll_events'
util-linux-2.42.2/libmount/src/monitor.c:440:20: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/monitor.c:444:11: branch_false: ...to here
util-linux-2.42.2/libmount/src/monitor.c:444:11: release_memory: 'me' is NULL
util-linux-2.42.2/libmount/src/monitor.c:444:9: danger: dereference of NULL 'me'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
util-linux-2.42.2/libmount/src/optlist.c:428:9: warning[-Wanalyzer-malloc-leak]: leak of 'optlist_new_opt(mnt_new_optlist(), *opt.name, <unknown>, *opt.value, <unknown>, *opt.map, *opt.ent, 0)'
util-linux-2.42.2/libmount/src/optlist.c:1045:24: enter_function: entry to 'mnt_copy_optlist'
util-linux-2.42.2/libmount/src/optlist.c:1047:36: call_function: calling 'mnt_new_optlist' from 'mnt_copy_optlist'
util-linux-2.42.2/libmount/src/optlist.c:1047:36: return_function: returning to 'mnt_copy_optlist' from 'mnt_new_optlist'
util-linux-2.42.2/libmount/src/optlist.c:1052:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/optlist.c:1055:18: branch_false: ...to here
util-linux-2.42.2/libmount/src/optlist.c:1058:21: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/optlist.c:1060:9: branch_false: ...to here
util-linux-2.42.2/libmount/src/optlist.c:1064:16: call_function: calling 'mnt_optlist_next_opt' from 'mnt_copy_optlist'
util-linux-2.42.2/libmount/src/optlist.c:1064:16: return_function: returning to 'mnt_copy_optlist' from 'mnt_optlist_next_opt'
util-linux-2.42.2/libmount/src/optlist.c:1064:16: branch_true: following 'true' branch...
util-linux-2.42.2/libmount/src/optlist.c:1070:38: branch_true: ...to here
util-linux-2.42.2/libmount/src/optlist.c:1067:22: branch_true: following 'true' branch...
util-linux-2.42.2/libmount/src/optlist.c:1069:50: branch_true: ...to here
util-linux-2.42.2/libmount/src/optlist.c:1067:22: branch_true: following 'true' branch...
util-linux-2.42.2/libmount/src/optlist.c:1068:48: branch_true: ...to here
util-linux-2.42.2/libmount/src/optlist.c:1067:22: call_function: calling 'optlist_new_opt' from 'mnt_copy_optlist'
util-linux-2.42.2/libmount/src/optlist.c:1067:22: return_function: returning to 'mnt_copy_optlist' from 'optlist_new_opt'
util-linux-2.42.2/libmount/src/optlist.c:1071:20: branch_true: following 'true' branch...
util-linux-2.42.2/libmount/src/optlist.c:1072:38: branch_true: ...to here
util-linux-2.42.2/libmount/src/optlist.c:428:9: danger: 'optlist_new_opt(mnt_new_optlist(), *opt.name, <unknown>, *opt.value, <unknown>, *opt.map, *opt.ent, 0)' leaks here; was allocated at [(32)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/31)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
util-linux-2.42.2/libmount/src/tab.c:1196:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'fs'
util-linux-2.42.2/libmount/src/tab.c:1089:19: enter_function: entry to 'mnt_table_find_mountpoint'
util-linux-2.42.2/libmount/src/tab.c:1102:12: branch_false: following 'false' branch...
util-linux-2.42.2/libmount/src/tab.c:1105:15: branch_false: ...to here
util-linux-2.42.2/libmount/src/tab.c:1106:12: branch_false: following 'false' branch (when 'mnt' is non-NULL)...
util-linux-2.42.2/libmount/src/tab.c:1106:12: branch_false: ...to here
util-linux-2.42.2/libmount/src/tab.c:1113:22: call_function: calling 'mnt_table_find_target' from 'mnt_table_find_mountpoint'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def88]
util-linux-2.42.2/libmount/src/utils.c:576:31: warning[-Wanalyzer-use-after-free]: use after 'reallocarray' of 'p'
util-linux-2.42.2/libmount/src/utils.c:581:12: enter_function: entry to 'add_filesystem'
util-linux-2.42.2/libmount/src/utils.c:585:9: branch_true: following 'true' branch (when 'filesystems' is non-NULL)...
util-linux-2.42.2/libmount/src/utils.c:586:9: branch_true: ...to here
util-linux-2.42.2/libmount/src/utils.c:586:9: branch_true: following 'true' branch (when 'name' is non-NULL)...
util-linux-2.42.2/libmount/src/utils.c:588:13: branch_true: ...to here
util-linux-2.42.2/libmount/src/utils.c:600:28: release_memory: deallocated here
util-linux-2.42.2/libmount/src/utils.c:602:20: branch_true: following 'true' branch (when 'x' is NULL)...
util-linux-2.42.2/libmount/src/utils.c:603:25: branch_true: ...to here
util-linux-2.42.2/libmount/src/utils.c:613:9: call_function: calling 'mnt_free_filesystems' from 'add_filesystem'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1291:9: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1346:11: branch_false: following 'false' branch (when 'yychar != 256')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1358:17: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_true: following 'true' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1255:28: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1278:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1280:7: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1287:11: acquire_memory: allocated here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1289:12: branch_false: following 'false' branch (when 'yyptr' is non-NULL)...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1291:9: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1294:12: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1294:12: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1307:10: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_true: following 'true' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1255:28: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1278:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1280:7: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1291:9: danger: 'yyptr' leaks here; was allocated at [(35)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/34)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def90]
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1291:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyss'
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_true: following 'true' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1255:28: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1278:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1280:7: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1289:12: branch_false: following 'false' branch (when 'yyptr' is non-NULL)...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1291:9: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1291:9: danger: use of uninitialized value 'yyss' here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def91]
util-linux-2.42.2/libsmartcols/src/filter-parser.y:81:66: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyvsp[1152921504606846975].param'
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1346:11: branch_false: following 'false' branch (when 'yychar != 256')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1358:17: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1398:6: branch_false: following 'false' branch (when 'yyn != 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1400:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.y:81:66: danger: use of uninitialized value 'yyvsp[1152921504606846975].param' here
Error: GCC_ANALYZER_WARNING (CWE-127): [#def92]
util-linux-2.42.2/libsmartcols/src/filter-parser.y:82:64: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1346:11: branch_false: following 'false' branch (when 'yychar != 256')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1358:17: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1398:6: branch_false: following 'false' branch (when 'yyn != 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1400:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.y:82:64: danger: out-of-bounds read from byte -16 till byte -9 but 'yyvsa' starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-127): [#def93]
util-linux-2.42.2/libsmartcols/src/filter-parser.y:83:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1346:11: branch_false: following 'false' branch (when 'yychar != 256')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1358:17: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1398:6: branch_false: following 'false' branch (when 'yyn != 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1400:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.y:83:65: danger: out-of-bounds read from byte -16 till byte -9 but 'yyvsa' starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-127): [#def94]
util-linux-2.42.2/libsmartcols/src/filter-parser.y:85:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1346:11: branch_false: following 'false' branch (when 'yychar != 256')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1358:17: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1398:6: branch_false: following 'false' branch (when 'yyn != 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1400:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.y:85:65: danger: out-of-bounds read from byte -16 till byte -9 but 'yyvsa' starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-127): [#def95]
util-linux-2.42.2/libsmartcols/src/filter-parser.y:86:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1346:11: branch_false: following 'false' branch (when 'yychar != 256')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1358:17: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1398:6: branch_false: following 'false' branch (when 'yyn != 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1400:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.y:86:65: danger: out-of-bounds read from byte -16 till byte -9 but 'yyvsa' starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-127): [#def96]
util-linux-2.42.2/libsmartcols/src/filter-parser.y:87:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1346:11: branch_false: following 'false' branch (when 'yychar != 256')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1358:17: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1398:6: branch_false: following 'false' branch (when 'yyn != 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1400:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.y:87:65: danger: out-of-bounds read from byte -16 till byte -9 but 'yyvsa' starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-127): [#def97]
util-linux-2.42.2/libsmartcols/src/filter-parser.y:88:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1346:11: branch_false: following 'false' branch (when 'yychar != 256')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1358:17: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1398:6: branch_false: following 'false' branch (when 'yyn != 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1400:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.y:88:65: danger: out-of-bounds read from byte -16 till byte -9 but 'yyvsa' starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-127): [#def98]
util-linux-2.42.2/libsmartcols/src/filter-parser.y:89:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1346:11: branch_false: following 'false' branch (when 'yychar != 256')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1358:17: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1398:6: branch_false: following 'false' branch (when 'yyn != 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1400:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.y:89:65: danger: out-of-bounds read from byte -16 till byte -9 but 'yyvsa' starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-127): [#def99]
util-linux-2.42.2/libsmartcols/src/filter-parser.y:90:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1346:11: branch_false: following 'false' branch (when 'yychar != 256')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1358:17: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1398:6: branch_false: following 'false' branch (when 'yyn != 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1400:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.y:90:65: danger: out-of-bounds read from byte -16 till byte -9 but 'yyvsa' starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-127): [#def100]
util-linux-2.42.2/libsmartcols/src/filter-parser.y:95:33: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1346:11: branch_false: following 'false' branch (when 'yychar != 256')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1358:17: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1398:6: branch_false: following 'false' branch (when 'yyn != 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1400:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.y:93:20: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.y:95:33: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.y:95:33: danger: out-of-bounds read from byte -16 till byte -9 but 'yyvsa' starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-127): [#def101]
util-linux-2.42.2/libsmartcols/src/filter-parser.y:101:33: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1328:6: branch_false: following 'false' branch (when 'yyn != -8')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1334:6: branch_true: following 'true' branch (when 'yychar == -2')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1337:16: branch_true: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1346:11: branch_false: following 'false' branch (when 'yychar != 256')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1358:17: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1365:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1368:6: branch_false: following 'false' branch (when 'yyn > 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1378:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1385:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1249:6: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1313:6: branch_false: following 'false' branch (when 'yystate != 15')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1316:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1398:6: branch_false: following 'false' branch (when 'yyn != 0')...
util-linux-2.42.2/libsmartcols/src/filter-parser.c:1400:3: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.y:99:20: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-parser.y:101:33: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-parser.y:101:33: danger: out-of-bounds read from byte -16 till byte -9 but 'yyvsa' starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1490:54: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(64)'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1477:21: enter_function: entry to 'yy_create_buffer'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1481:24: call_function: inlined call to 'yyalloc' from 'yy_create_buffer'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1482:12: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1485:2: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1490:54: danger: 'malloc(64)' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1490:54: warning[-Wanalyzer-malloc-leak]: leak of 'yyalloc(64, yyscanner)'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1477:21: enter_function: entry to 'yy_create_buffer'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1481:24: call_function: calling 'yyalloc' from 'yy_create_buffer'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1481:24: return_function: returning to 'yy_create_buffer' from 'yyalloc'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1482:12: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1485:2: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1490:54: danger: 'yyalloc(64, yyscanner)' leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1533:2: warning[-Wanalyzer-null-dereference]: dereference of NULL 'b'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1412:10: enter_function: entry to 'yyrestart'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1417:16: call_function: calling 'yyensure_buffer_stack' from 'yyrestart'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1417:16: return_function: returning to 'yyrestart' from 'yyensure_buffer_stack'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1419:27: call_function: calling 'yy_create_buffer' from 'yyrestart'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1419:27: return_function: returning to 'yyrestart' from 'yy_create_buffer'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1422:2: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1422:2: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1422:2: call_function: calling 'yy_init_buffer' from 'yyrestart'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1751:26: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(n)'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1735:17: enter_function: entry to 'yy_scan_bytes'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1744:24: call_function: inlined call to 'yyalloc' from 'yy_scan_bytes'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1745:12: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1745:12: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1753:6: call_function: calling 'yy_scan_buffer' from 'yy_scan_bytes'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1751:26: warning[-Wanalyzer-malloc-leak]: leak of 'yyalloc(n, yyscanner)'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1735:17: enter_function: entry to 'yy_scan_bytes'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1744:24: call_function: calling 'yyalloc' from 'yy_scan_bytes'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1744:24: return_function: returning to 'yy_scan_bytes' from 'yyalloc'
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1745:12: branch_false: following 'false' branch...
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1745:12: branch_false: ...to here
util-linux-2.42.2/libsmartcols/src/filter-scanner.c:1753:6: call_function: calling 'yy_scan_buffer' from 'yy_scan_bytes'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def107]
util-linux-2.42.2/libsmartcols/src/print.c:544:71: warning[-Wanalyzer-null-dereference]: dereference of NULL 'data'
util-linux-2.42.2/libsmartcols/src/print.c:1153:12: enter_function: entry to 'print_tree_line'
util-linux-2.42.2/libsmartcols/src/print.c:1166:14: call_function: calling 'print_line' from 'print_tree_line'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def108]
util-linux-2.42.2/libsmartcols/src/print.c:548:42: warning[-Wanalyzer-null-dereference]: dereference of NULL 'data'
util-linux-2.42.2/libsmartcols/src/print.c:1153:12: enter_function: entry to 'print_tree_line'
util-linux-2.42.2/libsmartcols/src/print.c:1166:14: call_function: calling 'print_line' from 'print_tree_line'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
util-linux-2.42.2/login-utils/chfn.c:241:1: warning[-Wanalyzer-malloc-leak]: leak of ‘gecos’
util-linux-2.42.2/login-utils/chfn.c:422:5: enter_function: entry to ‘main’
util-linux-2.42.2/login-utils/chfn.c:444:9: call_function: calling ‘parse_argv_restricted’ from ‘main’
util-linux-2.42.2/login-utils/chfn.c:444:9: return_function: returning to ‘main’ from ‘parse_argv_restricted’
util-linux-2.42.2/login-utils/chfn.c:445:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/chfn.c:446:26: branch_true: ...to here
util-linux-2.42.2/login-utils/chfn.c:447:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/chfn.c:456:24: branch_false: ...to here
util-linux-2.42.2/login-utils/chfn.c:457:9: call_function: calling ‘parse_passwd’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def110]
util-linux-2.42.2/login-utils/last.c:195:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
util-linux-2.42.2/login-utils/last.c:970:5: enter_function: entry to ‘main’
util-linux-2.42.2/login-utils/last.c:1095:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/last.c:1098:12: branch_false: ...to here
util-linux-2.42.2/login-utils/last.c:1098:12: branch_true: following ‘true’ branch (when ‘files’ is NULL)...
util-linux-2.42.2/login-utils/last.c:1099:25: branch_true: ...to here
util-linux-2.42.2/login-utils/last.c:1099:25: call_function: calling ‘xmalloc’ from ‘main’
util-linux-2.42.2/login-utils/last.c:1099:25: return_function: returning to ‘main’ from ‘xmalloc’
util-linux-2.42.2/login-utils/last.c:1100:35: call_function: calling ‘xstrdup’ from ‘main’
util-linux-2.42.2/login-utils/last.c:1100:35: return_function: returning to ‘main’ from ‘xstrdup’
util-linux-2.42.2/login-utils/last.c:1103:21: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
util-linux-2.42.2/login-utils/last.c:1104:17: branch_true: ...to here
util-linux-2.42.2/login-utils/last.c:1105:17: call_function: calling ‘process_wtmp_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
util-linux-2.42.2/login-utils/last.c:195:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
util-linux-2.42.2/login-utils/last.c:970:5: enter_function: entry to ‘main’
util-linux-2.42.2/login-utils/last.c:1095:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/last.c:1098:12: branch_false: ...to here
util-linux-2.42.2/login-utils/last.c:1098:12: branch_true: following ‘true’ branch (when ‘files’ is NULL)...
util-linux-2.42.2/login-utils/last.c:1099:25: branch_true: ...to here
util-linux-2.42.2/login-utils/last.c:1099:25: call_function: calling ‘xmalloc’ from ‘main’
util-linux-2.42.2/login-utils/last.c:1099:25: return_function: returning to ‘main’ from ‘xmalloc’
util-linux-2.42.2/login-utils/last.c:1100:35: call_function: calling ‘xstrdup’ from ‘main’
util-linux-2.42.2/login-utils/last.c:1100:35: return_function: returning to ‘main’ from ‘xstrdup’
util-linux-2.42.2/login-utils/last.c:1103:21: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
util-linux-2.42.2/login-utils/last.c:1104:17: branch_true: ...to here
util-linux-2.42.2/login-utils/last.c:1105:17: call_function: calling ‘process_wtmp_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
util-linux-2.42.2/login-utils/last.c:1044:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘files’
util-linux-2.42.2/login-utils/last.c:970:5: enter_function: entry to ‘main’
util-linux-2.42.2/login-utils/last.c:1021:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/login-utils/last.c:1024:17: branch_true: ...to here
util-linux-2.42.2/login-utils/last.c:1024:17: call_function: calling ‘err_exclusive_options’ from ‘main’
util-linux-2.42.2/login-utils/last.c:1024:17: return_function: returning to ‘main’ from ‘err_exclusive_options’
util-linux-2.42.2/login-utils/last.c:1042:28: branch_true: following ‘true’ branch (when ‘files’ is NULL)...
util-linux-2.42.2/login-utils/last.c:1043:41: branch_true: ...to here
util-linux-2.42.2/login-utils/last.c:1043:41: call_function: calling ‘xmalloc’ from ‘main’
util-linux-2.42.2/login-utils/last.c:1043:41: return_function: returning to ‘main’ from ‘xmalloc’
util-linux-2.42.2/login-utils/last.c:1044:43: call_function: calling ‘xstrdup’ from ‘main’
util-linux-2.42.2/login-utils/last.c:1044:43: return_function: returning to ‘main’ from ‘xstrdup’
util-linux-2.42.2/login-utils/last.c:1044:25: danger: ‘files + nfiles * 8’ could be NULL: unchecked value from [(19)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
util-linux-2.42.2/login-utils/login.c:255:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘environ’
util-linux-2.42.2/login-utils/login.c:238:13: enter_function: entry to ‘process_title_init’
util-linux-2.42.2/login-utils/login.c:252:19: call_function: calling ‘xmalloc’ from ‘process_title_init’
util-linux-2.42.2/login-utils/login.c:252:19: return_function: returning to ‘process_title_init’ from ‘xmalloc’
util-linux-2.42.2/login-utils/login.c:254:21: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/login.c:255:24: branch_true: ...to here
util-linux-2.42.2/login-utils/login.c:255:30: call_function: calling ‘xstrdup’ from ‘process_title_init’
util-linux-2.42.2/login-utils/login.c:255:30: return_function: returning to ‘process_title_init’ from ‘xstrdup’
util-linux-2.42.2/login-utils/login.c:255:17: danger: ‘environ + (long unsigned int)i * 8’ could be NULL: unchecked value from [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def114]
util-linux-2.42.2/login-utils/login.c:256:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘environ’
util-linux-2.42.2/login-utils/login.c:1391:13: enter_function: entry to ‘initialize’
util-linux-2.42.2/login-utils/login.c:1413:9: call_function: calling ‘xasprintf’ from ‘initialize’
util-linux-2.42.2/login-utils/login.c:1413:9: return_function: returning to ‘initialize’ from ‘xasprintf’
util-linux-2.42.2/login-utils/login.c:1425:9: call_function: calling ‘process_title_init’ from ‘initialize’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def115]
util-linux-2.42.2/login-utils/login.c:477:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘i’
util-linux-2.42.2/login-utils/login.c:530:13: enter_function: entry to ‘init_tty’
util-linux-2.42.2/login-utils/login.c:550:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/login.c:550:13: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/login.c:552:14: branch_false: ...to here
util-linux-2.42.2/login-utils/login.c:550:13: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/login.c:550:13: branch_false: ...to here
util-linux-2.42.2/login-utils/login.c:550:13: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/login.c:569:13: branch_false: ...to here
util-linux-2.42.2/login-utils/login.c:597:9: release_resource: first ‘close’ here
util-linux-2.42.2/login-utils/login.c:606:9: call_function: calling ‘open_tty’ from ‘init_tty’
Error: GCC_ANALYZER_WARNING: [#def116]
util-linux-2.42.2/login-utils/login.c:480:25: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘i’
util-linux-2.42.2/login-utils/login.c:461:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/login.c:466:14: branch_false: ...to here
util-linux-2.42.2/login-utils/login.c:466:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/login.c:472:17: branch_false: ...to here
util-linux-2.42.2/login-utils/login.c:476:21: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/login.c:477:17: branch_true: ...to here
util-linux-2.42.2/login-utils/login.c:477:17: release_resource: closed here
util-linux-2.42.2/login-utils/login.c:476:21: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/login.c:476:21: branch_false: ...to here
util-linux-2.42.2/login-utils/login.c:478:21: branch_true: following ‘true’ branch (when ‘i != 3’)...
util-linux-2.42.2/login-utils/login.c:479:20: branch_true: ...to here
util-linux-2.42.2/login-utils/login.c:479:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/login.c:480:25: branch_true: ...to here
util-linux-2.42.2/login-utils/login.c:480:25: danger: ‘i’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
util-linux-2.42.2/login-utils/lslogins.c:530:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ary’
util-linux-2.42.2/login-utils/lslogins.c:496:12: enter_function: entry to ‘parse_utmpx’
util-linux-2.42.2/login-utils/lslogins.c:510:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/lslogins.c:511:30: branch_true: ...to here
util-linux-2.42.2/login-utils/lslogins.c:511:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/lslogins.c:512:25: branch_true: ...to here
util-linux-2.42.2/login-utils/lslogins.c:513:31: call_function: calling ‘xreallocarray’ from ‘parse_utmpx’
util-linux-2.42.2/login-utils/lslogins.c:513:31: return_function: returning to ‘parse_utmpx’ from ‘xreallocarray’
util-linux-2.42.2/login-utils/lslogins.c:523:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:528:20: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:528:20: branch_true: following ‘true’ branch (when ‘i == imax’)...
util-linux-2.42.2/login-utils/lslogins.c:529:50: branch_true: ...to here
util-linux-2.42.2/login-utils/lslogins.c:529:31: call_function: calling ‘xreallocarray’ from ‘parse_utmpx’
util-linux-2.42.2/login-utils/lslogins.c:529:31: return_function: returning to ‘parse_utmpx’ from ‘xreallocarray’
util-linux-2.42.2/login-utils/lslogins.c:530:17: danger: dereference of NULL ‘ary + i * 384’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
util-linux-2.42.2/login-utils/lslogins.c:815:13: warning[-Wanalyzer-malloc-leak]: leak of ‘get_next_user(ctl)’
util-linux-2.42.2/login-utils/lslogins.c:1622:5: enter_function: entry to ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1627:40: call_function: calling ‘xcalloc’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1627:40: return_function: returning to ‘main’ from ‘xcalloc’
util-linux-2.42.2/login-utils/lslogins.c:1700:9: call_function: inlined call to ‘err_columns_index’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1700:9: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1701:9: call_function: inlined call to ‘err_columns_index’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1701:9: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1703:16: branch_false: following ‘false’ branch (when ‘c == -1’)...
util-linux-2.42.2/login-utils/lslogins.c:1841:12: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1841:12: branch_false: following ‘false’ branch (when ‘collist == 0’)...
util-linux-2.42.2/login-utils/lslogins.c:1844:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1844:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1845:21: branch_true: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1845:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1848:17: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1856:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1859:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1859:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1864:20: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1864:19: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1875:12: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1875:12: branch_false: following ‘false’ branch (when ‘outarg’ is NULL)...
util-linux-2.42.2/login-utils/lslogins.c:1879:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1879:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1883:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1883:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1886:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1886:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1889:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1889:13: call_function: calling ‘create_usertree’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
util-linux-2.42.2/login-utils/lslogins.c:849:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
util-linux-2.42.2/login-utils/lslogins.c:1622:5: enter_function: entry to ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1627:40: call_function: calling ‘xcalloc’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1627:40: return_function: returning to ‘main’ from ‘xcalloc’
util-linux-2.42.2/login-utils/lslogins.c:1700:9: call_function: inlined call to ‘err_columns_index’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1700:9: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1701:9: call_function: inlined call to ‘err_columns_index’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1701:9: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1703:16: branch_false: following ‘false’ branch (when ‘c == -1’)...
util-linux-2.42.2/login-utils/lslogins.c:1841:12: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1841:12: branch_false: following ‘false’ branch (when ‘collist == 0’)...
util-linux-2.42.2/login-utils/lslogins.c:1844:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1844:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1845:21: branch_true: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1845:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1848:17: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1856:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1859:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1859:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1864:20: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1864:19: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1875:12: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1875:12: branch_false: following ‘false’ branch (when ‘outarg’ is NULL)...
util-linux-2.42.2/login-utils/lslogins.c:1879:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1879:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1883:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1883:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1886:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1886:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1889:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1889:13: call_function: calling ‘create_usertree’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
util-linux-2.42.2/login-utils/lslogins.c:866:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
util-linux-2.42.2/login-utils/lslogins.c:1622:5: enter_function: entry to ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1627:40: call_function: calling ‘xcalloc’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1627:40: return_function: returning to ‘main’ from ‘xcalloc’
util-linux-2.42.2/login-utils/lslogins.c:1700:9: call_function: inlined call to ‘err_columns_index’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1700:9: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1701:9: call_function: inlined call to ‘err_columns_index’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1701:9: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1703:16: branch_false: following ‘false’ branch (when ‘c == -1’)...
util-linux-2.42.2/login-utils/lslogins.c:1841:12: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1841:12: branch_false: following ‘false’ branch (when ‘collist == 0’)...
util-linux-2.42.2/login-utils/lslogins.c:1844:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1844:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1845:21: branch_true: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1845:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1848:17: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1856:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1859:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1859:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1864:20: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1864:19: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1875:12: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1875:12: branch_false: following ‘false’ branch (when ‘outarg’ is NULL)...
util-linux-2.42.2/login-utils/lslogins.c:1879:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1879:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1883:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1883:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1886:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1886:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1889:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1889:13: call_function: calling ‘create_usertree’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
util-linux-2.42.2/login-utils/lslogins.c:1077:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
util-linux-2.42.2/login-utils/lslogins.c:1622:5: enter_function: entry to ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1627:40: call_function: calling ‘xcalloc’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1627:40: return_function: returning to ‘main’ from ‘xcalloc’
util-linux-2.42.2/login-utils/lslogins.c:1700:9: call_function: inlined call to ‘err_columns_index’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1700:9: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1701:9: call_function: inlined call to ‘err_columns_index’ from ‘main’
util-linux-2.42.2/login-utils/lslogins.c:1701:9: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1703:16: branch_false: following ‘false’ branch (when ‘c == -1’)...
util-linux-2.42.2/login-utils/lslogins.c:1841:12: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1841:12: branch_false: following ‘false’ branch (when ‘collist == 0’)...
util-linux-2.42.2/login-utils/lslogins.c:1844:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1844:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1845:21: branch_true: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1845:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1848:17: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1856:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1859:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1859:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1864:20: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1864:19: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1875:12: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1875:12: branch_false: following ‘false’ branch (when ‘outarg’ is NULL)...
util-linux-2.42.2/login-utils/lslogins.c:1879:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1879:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1883:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1883:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1886:13: branch_false: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1886:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/lslogins.c:1887:17: branch_true: ...to here
util-linux-2.42.2/login-utils/lslogins.c:1887:17: call_function: calling ‘get_ulist’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
util-linux-2.42.2/login-utils/su-common.c:815:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(strlen(shell_basename) + 2)’
util-linux-2.42.2/login-utils/su-common.c:793:13: enter_function: entry to ‘run_shell’
util-linux-2.42.2/login-utils/su-common.c:799:29: call_function: calling ‘xcalloc’ from ‘run_shell’
util-linux-2.42.2/login-utils/su-common.c:799:29: return_function: returning to ‘run_shell’ from ‘xcalloc’
util-linux-2.42.2/login-utils/su-common.c:807:15: call_function: calling ‘xstrdup’ from ‘run_shell’
util-linux-2.42.2/login-utils/su-common.c:807:15: return_function: returning to ‘run_shell’ from ‘xstrdup’
util-linux-2.42.2/login-utils/su-common.c:809:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/su-common.c:813:34: branch_true: ...to here
util-linux-2.42.2/login-utils/su-common.c:814:24: call_function: calling ‘xmalloc’ from ‘run_shell’
util-linux-2.42.2/login-utils/su-common.c:814:24: return_function: returning to ‘run_shell’ from ‘xmalloc’
util-linux-2.42.2/login-utils/su-common.c:815:17: danger: ‘xmalloc(strlen(shell_basename) + 2)’ could be NULL: unchecked value from [(18)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING: [#def123]
util-linux-2.42.2/login-utils/sulogin.c:726:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
util-linux-2.42.2/login-utils/sulogin.c:696:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/sulogin.c:698:13: branch_false: ...to here
util-linux-2.42.2/login-utils/sulogin.c:698:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/sulogin.c:701:19: branch_false: ...to here
util-linux-2.42.2/login-utils/sulogin.c:707:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/sulogin.c:708:28: branch_true: ...to here
util-linux-2.42.2/login-utils/sulogin.c:718:20: branch_true: following ‘true’ branch (when ‘fd > 0’)...
util-linux-2.42.2/login-utils/sulogin.c:718:41: branch_true: ...to here
util-linux-2.42.2/login-utils/sulogin.c:718:41: release_resource: closed here
util-linux-2.42.2/login-utils/sulogin.c:719:20: branch_false: following ‘false’ branch (when ‘fd == 1’)...
util-linux-2.42.2/login-utils/sulogin.c:722:17: branch_false: ...to here
util-linux-2.42.2/login-utils/sulogin.c:726:9: danger: ‘0’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def124]
util-linux-2.42.2/login-utils/sulogin.c:727:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
util-linux-2.42.2/login-utils/sulogin.c:696:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/sulogin.c:698:13: branch_false: ...to here
util-linux-2.42.2/login-utils/sulogin.c:698:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/sulogin.c:701:19: branch_false: ...to here
util-linux-2.42.2/login-utils/sulogin.c:707:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/sulogin.c:708:28: branch_true: ...to here
util-linux-2.42.2/login-utils/sulogin.c:718:20: branch_true: following ‘true’ branch (when ‘fd > 0’)...
util-linux-2.42.2/login-utils/sulogin.c:718:41: branch_true: ...to here
util-linux-2.42.2/login-utils/sulogin.c:719:20: branch_true: following ‘true’ branch (when ‘fd != 1’)...
util-linux-2.42.2/login-utils/sulogin.c:719:41: branch_true: ...to here
util-linux-2.42.2/login-utils/sulogin.c:719:41: release_resource: closed here
util-linux-2.42.2/login-utils/sulogin.c:720:20: branch_false: following ‘false’ branch (when ‘fd <= 2’)...
util-linux-2.42.2/login-utils/sulogin.c:722:17: branch_false: ...to here
util-linux-2.42.2/login-utils/sulogin.c:727:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def125]
util-linux-2.42.2/login-utils/sulogin.c:728:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
util-linux-2.42.2/login-utils/sulogin.c:696:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/sulogin.c:698:13: branch_false: ...to here
util-linux-2.42.2/login-utils/sulogin.c:698:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/login-utils/sulogin.c:701:19: branch_false: ...to here
util-linux-2.42.2/login-utils/sulogin.c:707:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/login-utils/sulogin.c:708:28: branch_true: ...to here
util-linux-2.42.2/login-utils/sulogin.c:718:20: branch_true: following ‘true’ branch (when ‘fd > 0’)...
util-linux-2.42.2/login-utils/sulogin.c:718:41: branch_true: ...to here
util-linux-2.42.2/login-utils/sulogin.c:719:20: branch_true: following ‘true’ branch (when ‘fd != 1’)...
util-linux-2.42.2/login-utils/sulogin.c:719:41: branch_true: ...to here
util-linux-2.42.2/login-utils/sulogin.c:720:20: branch_true: following ‘true’ branch (when ‘fd > 2’)...
util-linux-2.42.2/login-utils/sulogin.c:720:41: branch_true: ...to here
util-linux-2.42.2/login-utils/sulogin.c:720:41: release_resource: closed here
util-linux-2.42.2/login-utils/sulogin.c:728:9: danger: ‘2’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
util-linux-2.42.2/lsfd-cmd/cdev.c:225:50: warning[-Wanalyzer-malloc-leak]: leak of ‘read_ttydrv(&line)’
util-linux-2.42.2/lsfd-cmd/cdev.c:228:13: enter_function: entry to ‘read_tty_drivers’
util-linux-2.42.2/lsfd-cmd/cdev.c:232:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/lsfd-cmd/cdev.c:233:41: branch_true: ...to here
util-linux-2.42.2/lsfd-cmd/cdev.c:233:41: call_function: calling ‘read_ttydrv’ from ‘read_tty_drivers’
util-linux-2.42.2/lsfd-cmd/cdev.c:233:41: return_function: returning to ‘read_tty_drivers’ from ‘read_ttydrv’
util-linux-2.42.2/lsfd-cmd/cdev.c:234:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/lsfd-cmd/cdev.c:235:25: branch_true: ...to here
util-linux-2.42.2/lsfd-cmd/cdev.c:225:50: danger: ‘read_ttydrv(&line)’ leaks here; was allocated at [(18)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def127]
util-linux-2.42.2/lsfd-cmd/lsfd.c:747:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, *class.size)’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2071:13: enter_function: entry to ‘read_process’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2080:16: call_function: calling ‘new_proc’ from ‘read_process’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2080:16: return_function: returning to ‘read_process’ from ‘new_proc’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2082:25: call_function: calling ‘xstrdup’ from ‘read_process’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2082:25: return_function: returning to ‘read_process’ from ‘xstrdup’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2085:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/lsfd-cmd/lsfd.c:2103:13: branch_false: ...to here
util-linux-2.42.2/lsfd-cmd/lsfd.c:2109:9: call_function: calling ‘collect_execve_file’ from ‘read_process’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
util-linux-2.42.2/lsfd-cmd/lsfd.c:768:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, *error_class.size)’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2071:13: enter_function: entry to ‘read_process’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2080:16: call_function: calling ‘new_proc’ from ‘read_process’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2080:16: return_function: returning to ‘read_process’ from ‘new_proc’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2082:25: call_function: calling ‘xstrdup’ from ‘read_process’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2082:25: return_function: returning to ‘read_process’ from ‘xstrdup’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2085:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/lsfd-cmd/lsfd.c:2103:13: branch_false: ...to here
util-linux-2.42.2/lsfd-cmd/lsfd.c:2109:9: call_function: calling ‘collect_execve_file’ from ‘read_process’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
util-linux-2.42.2/lsfd-cmd/lsfd.c:2225:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘outarg’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2651:5: enter_function: entry to ‘main’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2656:16: release_memory: ‘filter_expr’ is NULL
util-linux-2.42.2/lsfd-cmd/lsfd.c:2705:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/lsfd-cmd/lsfd.c:2706:17: branch_true: ...to here
util-linux-2.42.2/lsfd-cmd/lsfd.c:2726:25: call_function: calling ‘parse_pids’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
util-linux-2.42.2/lsfd-cmd/lsfd.c:2418:13: warning[-Wanalyzer-malloc-leak]: leak of ‘new_counter_spec(optarg)’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2651:5: enter_function: entry to ‘main’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2705:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/lsfd-cmd/lsfd.c:2706:17: branch_true: ...to here
util-linux-2.42.2/lsfd-cmd/lsfd.c:2752:50: call_function: calling ‘new_counter_spec’ from ‘main’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2752:50: return_function: returning to ‘main’ from ‘new_counter_spec’
util-linux-2.42.2/lsfd-cmd/lsfd.c:2418:13: danger: ‘new_counter_spec(optarg)’ leaks here; was allocated at [(22)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def131]
util-linux-2.42.2/misc-utils/blkid.c:882:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)(argc - optind), 8)’
util-linux-2.42.2/misc-utils/blkid.c:682:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/blkid.c:855:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/blkid.c:859:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/blkid.c:860:35: branch_true: ...to here
util-linux-2.42.2/misc-utils/blkid.c:860:27: call_function: calling ‘xcalloc’ from ‘main’
util-linux-2.42.2/misc-utils/blkid.c:860:27: return_function: returning to ‘main’ from ‘xcalloc’
util-linux-2.42.2/misc-utils/blkid.c:861:24: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/blkid.c:862:42: branch_true: ...to here
util-linux-2.42.2/misc-utils/blkid.c:865:28: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/blkid.c:867:34: branch_false: ...to here
util-linux-2.42.2/misc-utils/blkid.c:882:25: danger: dereference of NULL ‘xcalloc((long unsigned int)(argc - optind), 8) + (long unsigned int)numdev * 8’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def132]
util-linux-2.42.2/misc-utils/cal.c:1099:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)*ctl.months_in_row, 208)’
util-linux-2.42.2/misc-utils/cal.c:1130:13: enter_function: entry to ‘yearly’
util-linux-2.42.2/misc-utils/cal.c:1144:9: call_function: calling ‘monthly’ from ‘yearly’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def133]
util-linux-2.42.2/misc-utils/copyfilerange.c:224:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘range_files’
util-linux-2.42.2/misc-utils/copyfilerange.c:198:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/copyfilerange.c:219:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/misc-utils/copyfilerange.c:220:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/copyfilerange.c:222:28: branch_true: following ‘true’ branch (when ‘range_files’ is NULL)...
util-linux-2.42.2/misc-utils/copyfilerange.c:223:47: branch_true: ...to here
util-linux-2.42.2/misc-utils/copyfilerange.c:223:47: call_function: calling ‘xmalloc’ from ‘main’
util-linux-2.42.2/misc-utils/copyfilerange.c:223:47: return_function: returning to ‘main’ from ‘xmalloc’
util-linux-2.42.2/misc-utils/copyfilerange.c:224:55: call_function: calling ‘xstrdup’ from ‘main’
util-linux-2.42.2/misc-utils/copyfilerange.c:224:55: return_function: returning to ‘main’ from ‘xstrdup’
util-linux-2.42.2/misc-utils/copyfilerange.c:224:25: danger: ‘range_files + nrange_files * 8’ could be NULL: unchecked value from [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
util-linux-2.42.2/misc-utils/enosys.c:117:36: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_block(optarg, 25, & ioctls, 1)’
util-linux-2.42.2/misc-utils/enosys.c:157:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/enosys.c:185:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/misc-utils/enosys.c:186:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/enosys.c:195:35: call_function: calling ‘parse_block’ from ‘main’
util-linux-2.42.2/misc-utils/enosys.c:195:35: return_function: returning to ‘main’ from ‘parse_block’
util-linux-2.42.2/misc-utils/enosys.c:117:36: danger: ‘parse_block(optarg, 25, & ioctls, 1)’ leaks here; was allocated at [(24)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/23)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
util-linux-2.42.2/misc-utils/enosys.c:117:36: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_block(optarg, 38, & syscalls, 385)’
util-linux-2.42.2/misc-utils/enosys.c:157:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/enosys.c:185:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/misc-utils/enosys.c:186:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/enosys.c:188:35: call_function: calling ‘parse_block’ from ‘main’
util-linux-2.42.2/misc-utils/enosys.c:188:35: return_function: returning to ‘main’ from ‘parse_block’
util-linux-2.42.2/misc-utils/enosys.c:117:36: danger: ‘parse_block(optarg, 38, & syscalls, 385)’ leaks here; was allocated at [(24)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/23)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
util-linux-2.42.2/misc-utils/enosys.c:137:42: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_block(optarg, 25, & ioctls, 1)’
util-linux-2.42.2/misc-utils/enosys.c:157:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/enosys.c:185:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/misc-utils/enosys.c:186:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/enosys.c:195:35: call_function: calling ‘parse_block’ from ‘main’
util-linux-2.42.2/misc-utils/enosys.c:195:35: return_function: returning to ‘main’ from ‘parse_block’
util-linux-2.42.2/misc-utils/enosys.c:137:42: danger: ‘parse_block(optarg, 25, & ioctls, 1)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
util-linux-2.42.2/misc-utils/enosys.c:137:42: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_block(optarg, 38, & syscalls, 385)’
util-linux-2.42.2/misc-utils/enosys.c:157:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/enosys.c:185:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/misc-utils/enosys.c:186:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/enosys.c:188:35: call_function: calling ‘parse_block’ from ‘main’
util-linux-2.42.2/misc-utils/enosys.c:188:35: return_function: returning to ‘main’ from ‘parse_block’
util-linux-2.42.2/misc-utils/enosys.c:137:42: danger: ‘parse_block(optarg, 38, & syscalls, 385)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
util-linux-2.42.2/misc-utils/enosys.c:154:16: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
util-linux-2.42.2/misc-utils/enosys.c:157:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/enosys.c:185:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/misc-utils/enosys.c:186:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/enosys.c:188:35: call_function: calling ‘parse_block’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def139]
util-linux-2.42.2/misc-utils/getopt.c:436:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ctl.optstr’ where non-null expected
util-linux-2.42.2/misc-utils/getopt.c:382:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/getopt.c:418:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
util-linux-2.42.2/misc-utils/getopt.c:430:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/getopt.c:430:9: call_function: calling ‘add_longopt’ from ‘main’
util-linux-2.42.2/misc-utils/getopt.c:430:9: return_function: returning to ‘main’ from ‘add_longopt’
util-linux-2.42.2/misc-utils/getopt.c:435:30: call_function: calling ‘xmalloc’ from ‘main’
util-linux-2.42.2/misc-utils/getopt.c:435:30: return_function: returning to ‘main’ from ‘xmalloc’
util-linux-2.42.2/misc-utils/getopt.c:436:17: danger: argument 1 (‘xmalloc(strlen(argv[1]) + 1)’) from [(18)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/17) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def140]
util-linux-2.42.2/misc-utils/hardlink.c:532:9: warning[-Wanalyzer-null-argument]: use of NULL ‘xcalloc((long unsigned int)n, 8)’ where non-null expected
util-linux-2.42.2/misc-utils/hardlink.c:1074:13: enter_function: entry to ‘visitor’
util-linux-2.42.2/misc-utils/hardlink.c:1082:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/hardlink.c:1082:12: branch_false: ...to here
util-linux-2.42.2/misc-utils/hardlink.c:1085:16: branch_true: following ‘true’ branch (when ‘master’ is non-NULL)...
util-linux-2.42.2/misc-utils/hardlink.c:1089:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/hardlink.c:1090:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/hardlink.c:1090:20: branch_false: ...to here
util-linux-2.42.2/misc-utils/hardlink.c:1094:26: call_function: inlined call to ‘count_nodes’ from ‘visitor’
util-linux-2.42.2/misc-utils/hardlink.c:1095:20: branch_false: following ‘false’ branch (when ‘ct != 0’)...
util-linux-2.42.2/misc-utils/hardlink.c:1099:26: branch_false: ...to here
util-linux-2.42.2/misc-utils/hardlink.c:1101:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/hardlink.c:1108:21: branch_true: ...to here
util-linux-2.42.2/misc-utils/hardlink.c:1115:44: branch_true: following ‘true’ branch (when ‘other’ is non-NULL)...
util-linux-2.42.2/misc-utils/hardlink.c:1118:25: branch_true: ...to here
util-linux-2.42.2/misc-utils/hardlink.c:1120:25: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/hardlink.c:1121:25: branch_true: ...to here
util-linux-2.42.2/misc-utils/hardlink.c:1121:25: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/hardlink.c:1123:30: branch_true: ...to here
util-linux-2.42.2/misc-utils/hardlink.c:1123:28: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/hardlink.c:1127:30: branch_false: ...to here
util-linux-2.42.2/misc-utils/hardlink.c:1127:30: call_function: calling ‘file_may_link_to’ from ‘visitor’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
util-linux-2.42.2/misc-utils/kill.c:405:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
util-linux-2.42.2/misc-utils/kill.c:629:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/kill.c:642:16: call_function: calling ‘parse_arguments’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
util-linux-2.42.2/misc-utils/look.c:337:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
util-linux-2.42.2/misc-utils/look.c:170:1: enter_function: entry to ‘look’
util-linux-2.42.2/misc-utils/look.c:176:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/look.c:177:30: branch_true: ...to here
util-linux-2.42.2/misc-utils/look.c:186:21: call_function: calling ‘xmalloc’ from ‘look’
util-linux-2.42.2/misc-utils/look.c:186:21: return_function: returning to ‘look’ from ‘xmalloc’
util-linux-2.42.2/misc-utils/look.c:188:17: call_function: calling ‘binary_search’ from ‘look’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def143]
util-linux-2.42.2/misc-utils/look.c:342:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
util-linux-2.42.2/misc-utils/look.c:170:1: enter_function: entry to ‘look’
util-linux-2.42.2/misc-utils/look.c:176:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/look.c:177:30: branch_true: ...to here
util-linux-2.42.2/misc-utils/look.c:186:21: call_function: calling ‘xmalloc’ from ‘look’
util-linux-2.42.2/misc-utils/look.c:186:21: return_function: returning to ‘look’ from ‘xmalloc’
util-linux-2.42.2/misc-utils/look.c:188:17: call_function: calling ‘binary_search’ from ‘look’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def144]
util-linux-2.42.2/misc-utils/lsblk-devtree.c:536:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘a’
util-linux-2.42.2/misc-utils/lsblk-devtree.c:541:5: enter_function: entry to ‘lsblk_devtree_deduplicate_devices’
util-linux-2.42.2/misc-utils/lsblk-devtree.c:547:9: call_function: calling ‘list_sort’ from ‘lsblk_devtree_deduplicate_devices’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
util-linux-2.42.2/misc-utils/lsblk-properties.c:257:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.pttype’
util-linux-2.42.2/misc-utils/lsblk-properties.c:392:23: enter_function: entry to ‘lsblk_device_get_properties’
util-linux-2.42.2/misc-utils/lsblk-properties.c:398:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
util-linux-2.42.2/misc-utils/lsblk-properties.c:401:30: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:411:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: call_function: calling ‘get_properties_by_file’ from ‘lsblk_device_get_properties’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
util-linux-2.42.2/misc-utils/lsblk-properties.c:258:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.fstype’
util-linux-2.42.2/misc-utils/lsblk-properties.c:392:23: enter_function: entry to ‘lsblk_device_get_properties’
util-linux-2.42.2/misc-utils/lsblk-properties.c:398:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
util-linux-2.42.2/misc-utils/lsblk-properties.c:401:30: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:411:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: call_function: calling ‘get_properties_by_file’ from ‘lsblk_device_get_properties’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
util-linux-2.42.2/misc-utils/lsblk-properties.c:259:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.fsversion’
util-linux-2.42.2/misc-utils/lsblk-properties.c:392:23: enter_function: entry to ‘lsblk_device_get_properties’
util-linux-2.42.2/misc-utils/lsblk-properties.c:398:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
util-linux-2.42.2/misc-utils/lsblk-properties.c:401:30: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:411:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: branch_true: ...to here
util-linux-2.42.2/misc-utils/lsblk-properties.c:412:40: call_function: calling ‘get_properties_by_file’ from ‘lsblk_device_get_properties’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def148]
util-linux-2.42.2/misc-utils/mcookie.c:126:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
util-linux-2.42.2/misc-utils/mcookie.c:139:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/mcookie.c:185:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/mcookie.c:188:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/mcookie.c:189:9: call_function: calling ‘randomness_from_files’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def149]
util-linux-2.42.2/misc-utils/mcookie.c:137:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
util-linux-2.42.2/misc-utils/mcookie.c:139:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/mcookie.c:185:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/mcookie.c:188:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/mcookie.c:189:9: call_function: calling ‘randomness_from_files’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
util-linux-2.42.2/misc-utils/mcookie.c:169:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ctl.files’
util-linux-2.42.2/misc-utils/mcookie.c:139:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/mcookie.c:161:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/misc-utils/mcookie.c:162:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/mcookie.c:167:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/mcookie.c:168:45: branch_true: ...to here
util-linux-2.42.2/misc-utils/mcookie.c:168:45: call_function: calling ‘xmalloc’ from ‘main’
util-linux-2.42.2/misc-utils/mcookie.c:168:45: return_function: returning to ‘main’ from ‘xmalloc’
util-linux-2.42.2/misc-utils/mcookie.c:169:25: danger: ‘ctl.files + ctl.nfiles * 8’ could be NULL: unchecked value from [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def151]
util-linux-2.42.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.42.2/misc-utils/namei.c:399:1: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/namei.c:448:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/namei.c:453:18: branch_false: ...to here
util-linux-2.42.2/misc-utils/namei.c:454:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/namei.c:456:18: branch_false: ...to here
util-linux-2.42.2/misc-utils/namei.c:457:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/namei.c:457:12: branch_false: ...to here
util-linux-2.42.2/misc-utils/namei.c:460:15: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/namei.c:461:34: branch_true: ...to here
util-linux-2.42.2/misc-utils/namei.c:465:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/namei.c:465:20: branch_true: ...to here
util-linux-2.42.2/misc-utils/namei.c:468:22: call_function: calling ‘add_namei’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def152]
util-linux-2.42.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
util-linux-2.42.2/misc-utils/namei.c:399:1: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/namei.c:448:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/namei.c:453:18: branch_false: ...to here
util-linux-2.42.2/misc-utils/namei.c:454:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/namei.c:456:18: branch_false: ...to here
util-linux-2.42.2/misc-utils/namei.c:457:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/namei.c:457:12: branch_false: ...to here
util-linux-2.42.2/misc-utils/namei.c:460:15: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/namei.c:461:34: branch_true: ...to here
util-linux-2.42.2/misc-utils/namei.c:465:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/namei.c:465:20: branch_true: ...to here
util-linux-2.42.2/misc-utils/namei.c:468:22: call_function: calling ‘add_namei’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def153]
util-linux-2.42.2/misc-utils/namei.c:142:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(len + 4)’ where non-null expected
util-linux-2.42.2/misc-utils/namei.c:399:1: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/namei.c:448:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/namei.c:453:18: branch_false: ...to here
util-linux-2.42.2/misc-utils/namei.c:454:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/namei.c:456:18: branch_false: ...to here
util-linux-2.42.2/misc-utils/namei.c:457:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/namei.c:457:12: branch_false: ...to here
util-linux-2.42.2/misc-utils/namei.c:460:15: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/namei.c:461:34: branch_true: ...to here
util-linux-2.42.2/misc-utils/namei.c:465:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/namei.c:465:20: branch_true: ...to here
util-linux-2.42.2/misc-utils/namei.c:468:22: call_function: calling ‘add_namei’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
util-linux-2.42.2/misc-utils/rename.c:91:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
util-linux-2.42.2/misc-utils/rename.c:274:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/rename.c:343:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
util-linux-2.42.2/misc-utils/rename.c:348:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:351:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
util-linux-2.42.2/misc-utils/rename.c:354:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:355:12: branch_false: following ‘false’ branch (when ‘interactive == 0’)...
util-linux-2.42.2/misc-utils/rename.c:362:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:362:21: branch_true: following ‘true’ branch (when ‘i < argc’)...
util-linux-2.42.2/misc-utils/rename.c:363:48: branch_true: ...to here
util-linux-2.42.2/misc-utils/rename.c:363:24: call_function: calling ‘do_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
util-linux-2.42.2/misc-utils/rename.c:94:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
util-linux-2.42.2/misc-utils/rename.c:274:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/rename.c:343:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
util-linux-2.42.2/misc-utils/rename.c:348:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:351:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
util-linux-2.42.2/misc-utils/rename.c:354:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:355:12: branch_false: following ‘false’ branch (when ‘interactive == 0’)...
util-linux-2.42.2/misc-utils/rename.c:362:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:362:21: branch_true: following ‘true’ branch (when ‘i < argc’)...
util-linux-2.42.2/misc-utils/rename.c:363:48: branch_true: ...to here
util-linux-2.42.2/misc-utils/rename.c:363:24: call_function: calling ‘do_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def156]
util-linux-2.42.2/misc-utils/rename.c:104:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
util-linux-2.42.2/misc-utils/rename.c:274:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/rename.c:306:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/misc-utils/rename.c:307:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/rename.c:307:17: call_function: calling ‘err_exclusive_options’ from ‘main’
util-linux-2.42.2/misc-utils/rename.c:307:17: return_function: returning to ‘main’ from ‘err_exclusive_options’
util-linux-2.42.2/misc-utils/rename.c:306:16: branch_false: following ‘false’ branch (when ‘c == -1’)...
util-linux-2.42.2/misc-utils/rename.c:340:14: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:343:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
util-linux-2.42.2/misc-utils/rename.c:348:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:351:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
util-linux-2.42.2/misc-utils/rename.c:354:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:355:12: branch_false: following ‘false’ branch (when ‘interactive == 0’)...
util-linux-2.42.2/misc-utils/rename.c:362:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:362:21: branch_true: following ‘true’ branch (when ‘i < argc’)...
util-linux-2.42.2/misc-utils/rename.c:363:48: branch_true: ...to here
util-linux-2.42.2/misc-utils/rename.c:363:24: call_function: calling ‘do_symlink’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def157]
util-linux-2.42.2/misc-utils/rename.c:105:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
util-linux-2.42.2/misc-utils/rename.c:274:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/rename.c:306:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/misc-utils/rename.c:307:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/rename.c:307:17: call_function: calling ‘err_exclusive_options’ from ‘main’
util-linux-2.42.2/misc-utils/rename.c:307:17: return_function: returning to ‘main’ from ‘err_exclusive_options’
util-linux-2.42.2/misc-utils/rename.c:306:16: branch_false: following ‘false’ branch (when ‘c == -1’)...
util-linux-2.42.2/misc-utils/rename.c:340:14: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:343:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
util-linux-2.42.2/misc-utils/rename.c:348:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:351:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
util-linux-2.42.2/misc-utils/rename.c:354:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:355:12: branch_false: following ‘false’ branch (when ‘interactive == 0’)...
util-linux-2.42.2/misc-utils/rename.c:362:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:362:21: branch_true: following ‘true’ branch (when ‘i < argc’)...
util-linux-2.42.2/misc-utils/rename.c:363:48: branch_true: ...to here
util-linux-2.42.2/misc-utils/rename.c:363:24: call_function: calling ‘do_symlink’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def158]
util-linux-2.42.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.42.2/misc-utils/rename.c:274:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/rename.c:306:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/misc-utils/rename.c:307:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/rename.c:307:17: call_function: calling ‘err_exclusive_options’ from ‘main’
util-linux-2.42.2/misc-utils/rename.c:307:17: return_function: returning to ‘main’ from ‘err_exclusive_options’
util-linux-2.42.2/misc-utils/rename.c:306:16: branch_false: following ‘false’ branch (when ‘c == -1’)...
util-linux-2.42.2/misc-utils/rename.c:340:14: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:343:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
util-linux-2.42.2/misc-utils/rename.c:348:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:351:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
util-linux-2.42.2/misc-utils/rename.c:354:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:355:12: branch_false: following ‘false’ branch (when ‘interactive == 0’)...
util-linux-2.42.2/misc-utils/rename.c:362:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/rename.c:362:21: branch_true: following ‘true’ branch (when ‘i < argc’)...
util-linux-2.42.2/misc-utils/rename.c:363:48: branch_true: ...to here
util-linux-2.42.2/misc-utils/rename.c:363:24: call_function: calling ‘do_symlink’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-666): [#def159]
util-linux-2.42.2/misc-utils/uuidd.c:283:21: warning[-Wanalyzer-fd-phase-mismatch]: ‘dup’ on file descriptor ‘s’ in wrong phase
util-linux-2.42.2/misc-utils/uuidd.c:705:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/uuidd.c:719:9: call_function: calling ‘parse_options’ from ‘main’
util-linux-2.42.2/misc-utils/uuidd.c:719:9: return_function: returning to ‘main’ from ‘parse_options’
util-linux-2.42.2/misc-utils/uuidd.c:721:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/uuidd.c:724:14: branch_false: ...to here
util-linux-2.42.2/misc-utils/uuidd.c:767:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/uuidd.c:786:13: branch_false: ...to here
util-linux-2.42.2/misc-utils/uuidd.c:786:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/uuidd.c:807:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/uuidd.c:807:9: call_function: calling ‘server_loop’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def160]
util-linux-2.42.2/misc-utils/uuidd.c:305:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
util-linux-2.42.2/misc-utils/uuidd.c:705:5: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/uuidd.c:719:9: call_function: calling ‘parse_options’ from ‘main’
util-linux-2.42.2/misc-utils/uuidd.c:719:9: return_function: returning to ‘main’ from ‘parse_options’
util-linux-2.42.2/misc-utils/uuidd.c:721:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/uuidd.c:724:14: branch_false: ...to here
util-linux-2.42.2/misc-utils/uuidd.c:767:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/uuidd.c:786:13: branch_false: ...to here
util-linux-2.42.2/misc-utils/uuidd.c:786:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/uuidd.c:807:9: branch_false: ...to here
util-linux-2.42.2/misc-utils/uuidd.c:807:9: call_function: calling ‘server_loop’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def161]
util-linux-2.42.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.42.2/misc-utils/wipefs.c:665:1: enter_function: entry to ‘main’
util-linux-2.42.2/misc-utils/wipefs.c:703:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/misc-utils/wipefs.c:705:17: branch_true: ...to here
util-linux-2.42.2/misc-utils/wipefs.c:705:17: call_function: calling ‘err_exclusive_options’ from ‘main’
util-linux-2.42.2/misc-utils/wipefs.c:705:17: return_function: returning to ‘main’ from ‘err_exclusive_options’
util-linux-2.42.2/misc-utils/wipefs.c:769:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/misc-utils/wipefs.c:775:13: branch_false: ...to here
util-linux-2.42.2/misc-utils/wipefs.c:820:24: branch_true: following ‘true’ branch...
util-linux-2.42.2/misc-utils/wipefs.c:821:44: branch_true: ...to here
util-linux-2.42.2/misc-utils/wipefs.c:822:25: call_function: calling ‘do_wipe’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def162]
util-linux-2.42.2/sys-utils/blkpr.c:272:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 2)’
util-linux-2.42.2/sys-utils/blkpr.c:268:14: acquire_resource: opened here
util-linux-2.42.2/sys-utils/blkpr.c:269:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/blkpr.c:272:9: branch_false: ...to here
util-linux-2.42.2/sys-utils/blkpr.c:272:9: danger: ‘open(path, 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def163]
util-linux-2.42.2/sys-utils/hwclock-parse-date.c:1576:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(__time_t *)<unknown>’
util-linux-2.42.2/sys-utils/hwclock-parse-date.y:1265:5: enter_function: entry to ‘parse_date’
util-linux-2.42.2/sys-utils/hwclock-parse-date.y:1282:12: branch_false: following ‘false’ branch (when ‘now’ is non-NULL)...
util-linux-2.42.2/sys-utils/hwclock-parse-date.y:1289:9: branch_false: ...to here
util-linux-2.42.2/sys-utils/hwclock-parse-date.y:1293:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
util-linux-2.42.2/sys-utils/hwclock-parse-date.y:1293:12: branch_false: ...to here
util-linux-2.42.2/sys-utils/hwclock-parse-date.y:1388:35: branch_true: following ‘true’ branch (when ‘quarter != 4’)...
util-linux-2.42.2/sys-utils/hwclock-parse-date.y:1389:48: branch_true: ...to here
util-linux-2.42.2/sys-utils/hwclock-parse-date.y:1391:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/hwclock-parse-date.y:1439:13: call_function: calling ‘yyparse’ from ‘parse_date’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def164]
util-linux-2.42.2/sys-utils/irq-common.c:552:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xmalloc(size)’ where non-null expected
util-linux-2.42.2/sys-utils/irq-common.c:530:24: enter_function: entry to ‘get_scols_table’
util-linux-2.42.2/sys-utils/irq-common.c:546:16: call_function: calling ‘get_irqinfo’ from ‘get_scols_table’
util-linux-2.42.2/sys-utils/irq-common.c:546:16: return_function: returning to ‘get_scols_table’ from ‘get_irqinfo’
util-linux-2.42.2/sys-utils/irq-common.c:547:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/irq-common.c:550:42: branch_false: ...to here
util-linux-2.42.2/sys-utils/irq-common.c:551:18: call_function: calling ‘xmalloc’ from ‘get_scols_table’
util-linux-2.42.2/sys-utils/irq-common.c:551:18: return_function: returning to ‘get_scols_table’ from ‘xmalloc’
util-linux-2.42.2/sys-utils/irq-common.c:552:9: danger: argument 1 (‘xmalloc(size)’) from [(32)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/31) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def165]
util-linux-2.42.2/sys-utils/ldattach.c:398:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev, 258)’
util-linux-2.42.2/sys-utils/ldattach.c:281:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/ldattach.c:322:12: branch_false: following ‘false’ branch (when ‘argc != 0’)...
util-linux-2.42.2/sys-utils/ldattach.c:322:12: branch_false: ...to here
util-linux-2.42.2/sys-utils/ldattach.c:372:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/ldattach.c:377:44: branch_false: ...to here
util-linux-2.42.2/sys-utils/ldattach.c:377:17: call_function: calling ‘lookup_table’ from ‘main’
util-linux-2.42.2/sys-utils/ldattach.c:377:17: return_function: returning to ‘main’ from ‘lookup_table’
util-linux-2.42.2/sys-utils/ldattach.c:378:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/ldattach.c:382:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/ldattach.c:396:23: acquire_resource: opened here
util-linux-2.42.2/sys-utils/ldattach.c:396:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/ldattach.c:398:14: branch_false: ...to here
util-linux-2.42.2/sys-utils/ldattach.c:398:12: danger: ‘open(dev, 258)’ leaks here; was opened at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def166]
util-linux-2.42.2/sys-utils/lscpu-arm.c:562: warning[nullPointer]: Possible null pointer dereference: parts
Error: CPPCHECK_WARNING (CWE-476): [#def167]
util-linux-2.42.2/sys-utils/lscpu-arm.c:592: warning[nullPointer]: Possible null pointer dereference: parts
Error: GCC_ANALYZER_WARNING (CWE-476): [#def168]
util-linux-2.42.2/sys-utils/lscpu-cpu.c:68:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*cxt.cpus’
util-linux-2.42.2/sys-utils/lscpu-cpu.c:57:5: enter_function: entry to ‘lscpu_create_cpus’
util-linux-2.42.2/sys-utils/lscpu-cpu.c:61:9: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/lscpu-cpu.c:63:27: branch_true: ...to here
util-linux-2.42.2/sys-utils/lscpu-cpu.c:64:21: call_function: calling ‘xcalloc’ from ‘lscpu_create_cpus’
util-linux-2.42.2/sys-utils/lscpu-cpu.c:64:21: return_function: returning to ‘lscpu_create_cpus’ from ‘xcalloc’
util-linux-2.42.2/sys-utils/lscpu-cpu.c:66:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/lscpu-cpu.c:67:21: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/lscpu-cpu.c:68:42: call_function: calling ‘lscpu_new_cpu’ from ‘lscpu_create_cpus’
util-linux-2.42.2/sys-utils/lscpu-cpu.c:68:42: return_function: returning to ‘lscpu_create_cpus’ from ‘lscpu_new_cpu’
util-linux-2.42.2/sys-utils/lscpu-cpu.c:68:25: danger: ‘*cxt.cpus + i * 8’ could be NULL: unchecked value from [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: CPPCHECK_WARNING (CWE-457): [#def169]
util-linux-2.42.2/sys-utils/mount.c:898: warning[uninitvar]: Uninitialized variable: path
Error: GCC_ANALYZER_WARNING (CWE-775): [#def170]
util-linux-2.42.2/sys-utils/nsenter.c:185:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*((struct namespace_file (*)[9])n)[preserve_cred].fd’
util-linux-2.42.2/sys-utils/nsenter.c:593:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/nsenter.c:657:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/sys-utils/nsenter.c:661:17: branch_true: ...to here
util-linux-2.42.2/sys-utils/nsenter.c:661:17: call_function: calling ‘err_exclusive_options’ from ‘main’
util-linux-2.42.2/sys-utils/nsenter.c:661:17: return_function: returning to ‘main’ from ‘err_exclusive_options’
util-linux-2.42.2/sys-utils/nsenter.c:692:25: call_function: calling ‘enable_namespace’ from ‘main’
Error: CPPCHECK_WARNING (CWE-682): [#def171]
util-linux-2.42.2/sys-utils/nsenter.c:482: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def172]
util-linux-2.42.2/sys-utils/readprofile.c:255:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&defaultpro, 1)’
util-linux-2.42.2/sys-utils/readprofile.c:194:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
util-linux-2.42.2/sys-utils/readprofile.c:195:17: branch_true: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:237:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/readprofile.c:243:20: branch_true: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:243:20: branch_false: following ‘false’ branch (when ‘has_mult == 0’)...
util-linux-2.42.2/sys-utils/readprofile.c:246:25: branch_false: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:252:22: acquire_resource: opened here
util-linux-2.42.2/sys-utils/readprofile.c:253:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/readprofile.c:255:21: branch_false: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:255:21: danger: ‘open(&defaultpro, 1)’ leaks here; was opened at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
util-linux-2.42.2/sys-utils/readprofile.c:302:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc(len)’
util-linux-2.42.2/sys-utils/readprofile.c:146:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/readprofile.c:237:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/readprofile.c:262:23: branch_false: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:262:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/readprofile.c:263:29: branch_false: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:262:13: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/readprofile.c:264:17: branch_false: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:262:13: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/readprofile.c:266:12: branch_false: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:266:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
util-linux-2.42.2/sys-utils/readprofile.c:269:15: branch_false: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:269:15: call_function: calling ‘xmalloc’ from ‘main’
util-linux-2.42.2/sys-utils/readprofile.c:269:15: return_function: returning to ‘main’ from ‘xmalloc’
util-linux-2.42.2/sys-utils/readprofile.c:272:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/readprofile.c:274:9: branch_false: ...to here
util-linux-2.42.2/sys-utils/readprofile.c:302:9: danger: ‘xmalloc(len)’ could be NULL: unchecked value from [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def174]
util-linux-2.42.2/sys-utils/setpgid.c:76:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524288)’
util-linux-2.42.2/sys-utils/setpgid.c:65:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpgid.c:70:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:70:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpgid.c:73:12: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:73:12: branch_true: following ‘true’ branch (when ‘foreground != 0’)...
util-linux-2.42.2/sys-utils/setpgid.c:74:22: branch_true: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:74:22: acquire_resource: opened here
util-linux-2.42.2/sys-utils/setpgid.c:75:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/setpgid.c:76:29: branch_true: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:76:28: danger: ‘open("/dev/tty", 524288)’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def175]
util-linux-2.42.2/sys-utils/setpgid.c:78:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524288)’
util-linux-2.42.2/sys-utils/setpgid.c:65:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpgid.c:70:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:70:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpgid.c:73:12: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:73:12: branch_true: following ‘true’ branch (when ‘foreground != 0’)...
util-linux-2.42.2/sys-utils/setpgid.c:74:22: branch_true: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:74:22: acquire_resource: opened here
util-linux-2.42.2/sys-utils/setpgid.c:75:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/setpgid.c:76:29: branch_true: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:76:28: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpgid.c:78:29: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:78:28: danger: ‘open("/dev/tty", 524288)’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def176]
util-linux-2.42.2/sys-utils/setpgid.c:80:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524288)’
util-linux-2.42.2/sys-utils/setpgid.c:65:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpgid.c:70:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:70:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpgid.c:73:12: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:73:12: branch_true: following ‘true’ branch (when ‘foreground != 0’)...
util-linux-2.42.2/sys-utils/setpgid.c:74:22: branch_true: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:74:22: acquire_resource: opened here
util-linux-2.42.2/sys-utils/setpgid.c:75:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/setpgid.c:76:29: branch_true: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:76:28: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpgid.c:78:29: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:78:28: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpgid.c:80:29: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpgid.c:80:28: danger: ‘open("/dev/tty", 524288)’ leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def177]
util-linux-2.42.2/sys-utils/setpriv.c:654:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/attr/exec", 2)’
util-linux-2.42.2/sys-utils/setpriv.c:810:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/setpriv.c:1052:12: branch_false: following ‘false’ branch (when ‘dumplevel == 0’)...
util-linux-2.42.2/sys-utils/setpriv.c:1060:12: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1060:12: branch_false: following ‘false’ branch (when ‘list_caps == 0’)...
util-linux-2.42.2/sys-utils/setpriv.c:1068:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1068:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1071:14: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1087:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1097:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1097:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1100:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1100:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1101:17: branch_true: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1101:17: call_function: calling ‘do_selinux_label’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def178]
util-linux-2.42.2/sys-utils/setpriv.c:704:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(file, 0)’
util-linux-2.42.2/sys-utils/setpriv.c:810:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/setpriv.c:1052:12: branch_false: following ‘false’ branch (when ‘dumplevel == 0’)...
util-linux-2.42.2/sys-utils/setpriv.c:1060:12: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1060:12: branch_false: following ‘false’ branch (when ‘list_caps == 0’)...
util-linux-2.42.2/sys-utils/setpriv.c:1068:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1068:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1071:14: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1087:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1097:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1097:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1100:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1100:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1102:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1104:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/setpriv.c:1105:17: branch_true: ...to here
util-linux-2.42.2/sys-utils/setpriv.c:1105:17: call_function: calling ‘do_seccomp_filter’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def179]
util-linux-2.42.2/sys-utils/swapoff.c:89:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘path’
util-linux-2.42.2/sys-utils/swapoff.c:240:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/swapoff.c:295:21: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/swapoff.c:296:27: branch_true: ...to here
util-linux-2.42.2/sys-utils/swapoff.c:296:27: call_function: calling ‘swapoff_by’ from ‘main’
Error: CPPCHECK_WARNING (CWE-457): [#def180]
util-linux-2.42.2/sys-utils/swapoff.c:94: warning[uninitvar]: Uninitialized variable: path
Error: GCC_ANALYZER_WARNING (CWE-457): [#def181]
util-linux-2.42.2/sys-utils/swapoff.c:95:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘<return-value>’
util-linux-2.42.2/sys-utils/swapoff.c:240:5: enter_function: entry to ‘main’
util-linux-2.42.2/sys-utils/swapoff.c:295:21: branch_true: following ‘true’ branch...
util-linux-2.42.2/sys-utils/swapoff.c:296:27: branch_true: ...to here
util-linux-2.42.2/sys-utils/swapoff.c:296:27: call_function: calling ‘swapoff_by’ from ‘main’
Error: CPPCHECK_WARNING (CWE-457): [#def182]
util-linux-2.42.2/sys-utils/umount.c:598: warning[uninitvar]: Uninitialized variable: path
Error: GCC_ANALYZER_WARNING (CWE-775): [#def183]
util-linux-2.42.2/sys-utils/unshare.c:120:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/setgroups", 1)’
util-linux-2.42.2/sys-utils/unshare.c:113:14: acquire_resource: opened here
util-linux-2.42.2/sys-utils/unshare.c:114:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/sys-utils/unshare.c:120:13: branch_false: ...to here
util-linux-2.42.2/sys-utils/unshare.c:120:12: danger: ‘open("/proc/self/setgroups", 1)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def184]
util-linux-2.42.2/term-utils/agetty.c:1802:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
util-linux-2.42.2/term-utils/agetty.c:1791:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1792:22: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1795:30: acquire_memory: this call could return NULL
util-linux-2.42.2/term-utils/agetty.c:1798:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1799:20: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1799:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/agetty.c:1802:25: branch_false: ...to here
util-linux-2.42.2/term-utils/agetty.c:1802:25: danger: argument 2 (‘*ie.output’) from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def185]
util-linux-2.42.2/term-utils/agetty.c:2748:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
util-linux-2.42.2/term-utils/agetty.c:1781:12: enter_function: entry to ‘issuefile_read_stream’
util-linux-2.42.2/term-utils/agetty.c:1791:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1792:22: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1795:30: acquire_memory: this call could return NULL
util-linux-2.42.2/term-utils/agetty.c:1798:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1799:20: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1799:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1800:49: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1800:25: call_function: calling ‘output_special_char’ from ‘issuefile_read_stream’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def186]
util-linux-2.42.2/term-utils/agetty.c:2760:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
util-linux-2.42.2/term-utils/agetty.c:1781:12: enter_function: entry to ‘issuefile_read_stream’
util-linux-2.42.2/term-utils/agetty.c:1791:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1792:22: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1795:30: acquire_memory: this call could return NULL
util-linux-2.42.2/term-utils/agetty.c:1798:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1799:20: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1799:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1800:49: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1800:25: call_function: calling ‘output_special_char’ from ‘issuefile_read_stream’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def187]
util-linux-2.42.2/term-utils/agetty.c:2820:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
util-linux-2.42.2/term-utils/agetty.c:1781:12: enter_function: entry to ‘issuefile_read_stream’
util-linux-2.42.2/term-utils/agetty.c:1791:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1792:22: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1795:30: acquire_memory: this call could return NULL
util-linux-2.42.2/term-utils/agetty.c:1798:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1799:20: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1799:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1800:49: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1800:25: call_function: calling ‘output_special_char’ from ‘issuefile_read_stream’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def188]
util-linux-2.42.2/term-utils/agetty.c:2895:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
util-linux-2.42.2/term-utils/agetty.c:1781:12: enter_function: entry to ‘issuefile_read_stream’
util-linux-2.42.2/term-utils/agetty.c:1791:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1792:22: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1795:30: acquire_memory: this call could return NULL
util-linux-2.42.2/term-utils/agetty.c:1798:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1799:20: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1799:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1800:49: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1800:25: call_function: calling ‘output_special_char’ from ‘issuefile_read_stream’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def189]
util-linux-2.42.2/term-utils/agetty.c:3011:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
util-linux-2.42.2/term-utils/agetty.c:1781:12: enter_function: entry to ‘issuefile_read_stream’
util-linux-2.42.2/term-utils/agetty.c:1791:12: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1792:22: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1795:30: acquire_memory: this call could return NULL
util-linux-2.42.2/term-utils/agetty.c:1798:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1799:20: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1799:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/agetty.c:1800:49: branch_true: ...to here
util-linux-2.42.2/term-utils/agetty.c:1800:25: call_function: calling ‘output_special_char’ from ‘issuefile_read_stream’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def190]
util-linux-2.42.2/term-utils/setterm.c:729:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_snapshot_device(ctl)’
util-linux-2.42.2/term-utils/setterm.c:772:13: enter_function: entry to ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: call_function: calling ‘open_snapshot_device’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: return_function: returning to ‘screendump’ from ‘open_snapshot_device’
util-linux-2.42.2/term-utils/setterm.c:784:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:786:39: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:729:13: danger: ‘open_snapshot_device(ctl)’ leaks here; was opened at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def191]
util-linux-2.42.2/term-utils/setterm.c:790:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*ctl.opt_sn_name, <unknown>)’
util-linux-2.42.2/term-utils/setterm.c:772:13: enter_function: entry to ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: call_function: calling ‘open_snapshot_device’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: return_function: returning to ‘screendump’ from ‘open_snapshot_device’
util-linux-2.42.2/term-utils/setterm.c:784:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:786:39: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:786:15: acquire_resource: opened here
util-linux-2.42.2/term-utils/setterm.c:787:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:790:13: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:790:12: danger: ‘fopen(*ctl.opt_sn_name, <unknown>)’ leaks here; was opened at [(14)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
util-linux-2.42.2/term-utils/setterm.c:790:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*ctl.opt_sn_name, <unknown>)’
util-linux-2.42.2/term-utils/setterm.c:772:13: enter_function: entry to ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: call_function: calling ‘open_snapshot_device’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: return_function: returning to ‘screendump’ from ‘open_snapshot_device’
util-linux-2.42.2/term-utils/setterm.c:784:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:786:39: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:786:15: acquire_memory: allocated here
util-linux-2.42.2/term-utils/setterm.c:787:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:790:13: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:790:12: danger: ‘fopen(*ctl.opt_sn_name, <unknown>)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def193]
util-linux-2.42.2/term-utils/setterm.c:792:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*ctl.opt_sn_name, <unknown>)’
util-linux-2.42.2/term-utils/setterm.c:772:13: enter_function: entry to ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: call_function: calling ‘open_snapshot_device’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: return_function: returning to ‘screendump’ from ‘open_snapshot_device’
util-linux-2.42.2/term-utils/setterm.c:784:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:786:39: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:786:15: acquire_resource: opened here
util-linux-2.42.2/term-utils/setterm.c:787:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:790:13: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:790:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:792:16: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:792:16: danger: ‘fopen(*ctl.opt_sn_name, <unknown>)’ leaks here; was opened at [(14)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
util-linux-2.42.2/term-utils/setterm.c:792:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*ctl.opt_sn_name, <unknown>)’
util-linux-2.42.2/term-utils/setterm.c:772:13: enter_function: entry to ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: call_function: calling ‘open_snapshot_device’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: return_function: returning to ‘screendump’ from ‘open_snapshot_device’
util-linux-2.42.2/term-utils/setterm.c:784:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:786:39: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:786:15: acquire_memory: allocated here
util-linux-2.42.2/term-utils/setterm.c:787:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:790:13: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:790:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:792:16: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:792:16: danger: ‘fopen(*ctl.opt_sn_name, <unknown>)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def195]
util-linux-2.42.2/term-utils/setterm.c:808:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
util-linux-2.42.2/term-utils/setterm.c:772:13: enter_function: entry to ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: call_function: calling ‘open_snapshot_device’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: return_function: returning to ‘screendump’ from ‘open_snapshot_device’
util-linux-2.42.2/term-utils/setterm.c:784:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:786:39: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:787:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:790:13: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:790:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:792:16: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:794:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:797:25: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:797:17: call_function: calling ‘xmalloc’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:797:17: return_function: returning to ‘screendump’ from ‘xmalloc’
util-linux-2.42.2/term-utils/setterm.c:798:18: call_function: calling ‘xmalloc’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:798:18: return_function: returning to ‘screendump’ from ‘xmalloc’
util-linux-2.42.2/term-utils/setterm.c:801:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:806:21: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/setterm.c:806:21: branch_true: ...to here
util-linux-2.42.2/term-utils/setterm.c:807:29: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/setterm.c:808:26: branch_true: ...to here
util-linux-2.42.2/term-utils/setterm.c:808:25: danger: ‘q’ could be NULL: unchecked value from [(27)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def196]
util-linux-2.42.2/term-utils/setterm.c:808:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
util-linux-2.42.2/term-utils/setterm.c:772:13: enter_function: entry to ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: call_function: calling ‘open_snapshot_device’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: return_function: returning to ‘screendump’ from ‘open_snapshot_device’
util-linux-2.42.2/term-utils/setterm.c:784:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:786:39: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:787:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:790:13: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:790:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:792:16: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:794:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:797:25: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:797:17: call_function: calling ‘xmalloc’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:797:17: return_function: returning to ‘screendump’ from ‘xmalloc’
util-linux-2.42.2/term-utils/setterm.c:798:18: call_function: calling ‘xmalloc’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:798:18: return_function: returning to ‘screendump’ from ‘xmalloc’
util-linux-2.42.2/term-utils/setterm.c:801:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:806:21: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/setterm.c:806:21: branch_true: ...to here
util-linux-2.42.2/term-utils/setterm.c:807:29: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/setterm.c:808:26: branch_true: ...to here
util-linux-2.42.2/term-utils/setterm.c:808:32: danger: ‘p’ could be NULL: unchecked value from [(22)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def197]
util-linux-2.42.2/term-utils/setterm.c:813:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
util-linux-2.42.2/term-utils/setterm.c:772:13: enter_function: entry to ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: call_function: calling ‘open_snapshot_device’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:783:14: return_function: returning to ‘screendump’ from ‘open_snapshot_device’
util-linux-2.42.2/term-utils/setterm.c:784:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:786:39: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:787:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:790:13: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:790:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:792:16: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:794:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:797:25: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:797:17: call_function: calling ‘xmalloc’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:797:17: return_function: returning to ‘screendump’ from ‘xmalloc’
util-linux-2.42.2/term-utils/setterm.c:798:18: call_function: calling ‘xmalloc’ from ‘screendump’
util-linux-2.42.2/term-utils/setterm.c:798:18: return_function: returning to ‘screendump’ from ‘xmalloc’
util-linux-2.42.2/term-utils/setterm.c:801:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:806:21: branch_true: following ‘true’ branch...
util-linux-2.42.2/term-utils/setterm.c:806:21: branch_true: ...to here
util-linux-2.42.2/term-utils/setterm.c:807:29: branch_false: following ‘false’ branch...
util-linux-2.42.2/term-utils/setterm.c:807:29: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:811:24: branch_false: following ‘false’ branch (when ‘j == 0’)...
util-linux-2.42.2/term-utils/setterm.c:813:18: branch_false: ...to here
util-linux-2.42.2/term-utils/setterm.c:813:17: danger: ‘q’ could be NULL: unchecked value from [(27)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def198]
util-linux-2.42.2/term-utils/wall.c:380:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fs’ where non-null expected
util-linux-2.42.2/term-utils/wall.c:345:14: enter_function: entry to ‘makemsg’
util-linux-2.42.2/term-utils/wall.c:349:21: acquire_memory: this call could return NULL
util-linux-2.42.2/term-utils/wall.c:351:16: call_function: calling ‘xmalloc’ from ‘makemsg’
util-linux-2.42.2/term-utils/wall.c:351:16: return_function: returning to ‘makemsg’ from ‘xmalloc’
util-linux-2.42.2/term-utils/wall.c:353:12: branch_true: following ‘true’ branch (when ‘print_banner == 1’)...
util-linux-2.42.2/term-utils/wall.c:354:34: branch_true: ...to here
util-linux-2.42.2/term-utils/wall.c:354:34: call_function: calling ‘xgethostname’ from ‘makemsg’
util-linux-2.42.2/term-utils/wall.c:354:34: return_function: returning to ‘makemsg’ from ‘xgethostname’
util-linux-2.42.2/term-utils/wall.c:380:17: danger: argument 1 (‘fs’) from [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def199]
util-linux-2.42.2/term-utils/wall.c:389:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fs’ where non-null expected
util-linux-2.42.2/term-utils/wall.c:345:14: enter_function: entry to ‘makemsg’
util-linux-2.42.2/term-utils/wall.c:349:21: acquire_memory: this call could return NULL
util-linux-2.42.2/term-utils/wall.c:351:16: call_function: calling ‘xmalloc’ from ‘makemsg’
util-linux-2.42.2/term-utils/wall.c:351:16: return_function: returning to ‘makemsg’ from ‘xmalloc’
util-linux-2.42.2/term-utils/wall.c:353:12: branch_false: following ‘false’ branch (when ‘print_banner != 1’)...
util-linux-2.42.2/term-utils/wall.c:389:9: branch_false: ...to here
util-linux-2.42.2/term-utils/wall.c:389:9: danger: argument 1 (‘fs’) from [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def200]
util-linux-2.42.2/text-utils/bits.c:326:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argv’
util-linux-2.42.2/text-utils/bits.c:246:16: release_memory: ‘stdin_lines’ is NULL
util-linux-2.42.2/text-utils/bits.c:301:12: branch_true: following ‘true’ branch (when ‘argc == 0’)...
util-linux-2.42.2/text-utils/bits.c:303:23: branch_true: ...to here
util-linux-2.42.2/text-utils/bits.c:306:24: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/bits.c:312:17: branch_false: ...to here
util-linux-2.42.2/text-utils/bits.c:314:24: release_memory: ‘stdin_lines’ is NULL
util-linux-2.42.2/text-utils/bits.c:315:17: release_memory: ‘stdin_lines’ is NULL
util-linux-2.42.2/text-utils/bits.c:319:12: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/bits.c:323:9: branch_false: ...to here
util-linux-2.42.2/text-utils/bits.c:325:16: branch_true: following ‘true’ branch (when ‘argc > 0’)...
util-linux-2.42.2/text-utils/bits.c:326:17: branch_true: ...to here
util-linux-2.42.2/text-utils/bits.c:326:17: danger: dereference of NULL ‘argv’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
util-linux-2.42.2/text-utils/hexdump-parse.c:606:1: warning[-Wanalyzer-malloc-leak]: leak of ‘hcnext’
util-linux-2.42.2/text-utils/hexdump-parse.c:479:26: enter_function: entry to ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:485:20: call_function: calling ‘xmalloc’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:485:20: return_function: returning to ‘color_fmt’ from ‘xmalloc’
util-linux-2.42.2/text-utils/hexdump-parse.c:486:23: call_function: calling ‘xcalloc’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:486:23: return_function: returning to ‘color_fmt’ from ‘xcalloc’
util-linux-2.42.2/text-utils/hexdump-parse.c:493:16: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:496:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:501:23: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:501:23: call_function: calling ‘xstrndup’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:501:23: return_function: returning to ‘color_fmt’ from ‘xstrndup’
util-linux-2.42.2/text-utils/hexdump-parse.c:506:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:510:21: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:556:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:559:28: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:563:29: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:563:28: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:564:33: branch_true: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:568:36: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:570:64: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:570:36: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:572:49: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:575:40: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:593:21: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:593:20: branch_false: following ‘false’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:597:21: branch_false: ...to here
util-linux-2.42.2/text-utils/hexdump-parse.c:597:20: branch_true: following ‘true’ branch...
util-linux-2.42.2/text-utils/hexdump-parse.c:600:34: call_function: calling ‘xcalloc’ from ‘color_fmt’
util-linux-2.42.2/text-utils/hexdump-parse.c:600:34: return_function: returning to ‘color_fmt’ from ‘xcalloc’
util-linux-2.42.2/text-utils/hexdump-parse.c:606:1: danger: ‘hcnext’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def202]
util-linux-2.42.2/text-utils/more.c:293:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘as_argv’
util-linux-2.42.2/text-utils/more.c:2117:5: enter_function: entry to ‘main’
util-linux-2.42.2/text-utils/more.c:2147:12: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
util-linux-2.42.2/text-utils/more.c:2148:17: branch_true: ...to here
util-linux-2.42.2/text-utils/more.c:2148:17: call_function: calling ‘env_argscan’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def203]
util-linux-2.42.2/text-utils/more.c:316:21: warning[-Wanalyzer-null-argument]: use of NULL ‘as_argv’ where non-null expected
util-linux-2.42.2/text-utils/more.c:2117:5: enter_function: entry to ‘main’
util-linux-2.42.2/text-utils/more.c:2147:12: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
util-linux-2.42.2/text-utils/more.c:2148:17: branch_true: ...to here
util-linux-2.42.2/text-utils/more.c:2148:17: call_function: calling ‘env_argscan’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def204]
util-linux-2.42.2/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.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-50.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | util-linux-2.42.2-3.fc45 |
| store-results-to | /tmp/tmp67rg965q/util-linux-2.42.2-3.fc45.tar.xz |
| time-created | 2026-08-03 21:35:46 |
| time-finished | 2026-08-03 21:43:51 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp67rg965q/util-linux-2.42.2-3.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp67rg965q/util-linux-2.42.2-3.fc45.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |