libinput-1.31.0-1.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libinput-1.31.0/src/evdev-frame.h:444:9: warning[-Wanalyzer-malloc-leak]: leak of ‘plugin_queued_event_new(frame, device)’
libinput-1.31.0/src/libinput-plugin.c:741:1: enter_function: entry to ‘plugin_system_notify_evdev_frame’
libinput-1.31.0/src/libinput-plugin.c:754:49: call_function: calling ‘plugin_queued_event_new’ from ‘plugin_system_notify_evdev_frame’
libinput-1.31.0/src/libinput-plugin.c:754:49: return_function: returning to ‘plugin_system_notify_evdev_frame’ from ‘plugin_queued_event_new’
libinput-1.31.0/src/evdev-frame.h:444:9: danger: ‘plugin_queued_event_new(frame, device)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libinput-1.31.0/src/evdev-frame.h:618:51: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(56)’
libinput-1.31.0/test/test-utils.c:2977:1: enter_function: entry to ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:2984:47: call_function: inlined call to ‘evdev_frame_new’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:2984:47: call_function: inlined call to ‘evdev_frame_new’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:2987:17: call_function: calling ‘evdev_frame_ref’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:2987:17: return_function: returning to ‘evdev_frames’ from ‘evdev_frame_ref’
libinput-1.31.0/test/test-utils.c:2987:17: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:2988:17: branch_false: ...to here
libinput-1.31.0/test/test-utils.c:2988:17: call_function: calling ‘evdev_frame_unref’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:2988:17: return_function: returning to ‘evdev_frames’ from ‘evdev_frame_unref’
libinput-1.31.0/test/test-utils.c:2984:39: call_function: inlined call to ‘evdev_frame_unrefp’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:2984:39: call_function: inlined call to ‘evdev_frame_unrefp’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:2991:47: call_function: inlined call to ‘evdev_frame_new’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:2991:47: call_function: inlined call to ‘evdev_frame_new’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:3011:26: call_function: calling ‘evdev_frame_set’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:3011:26: return_function: returning to ‘evdev_frames’ from ‘evdev_frame_set’
libinput-1.31.0/test/test-utils.c:3012:17: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:2991:39: call_function: inlined call to ‘evdev_frame_unrefp’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:2991:39: call_function: inlined call to ‘evdev_frame_unrefp’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:3030:47: call_function: inlined call to ‘evdev_frame_new’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:3030:47: call_function: inlined call to ‘evdev_frame_new’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:3031:26: call_function: calling ‘evdev_frame_set’ from ‘evdev_frames’
libinput-1.31.0/test/test-utils.c:3031:26: return_function: returning to ‘evdev_frames’ from ‘evdev_frame_set’
libinput-1.31.0/test/test-utils.c:3032:17: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:3032:17: branch_true: ...to here
libinput-1.31.0/src/evdev-frame.h:618:51: danger: ‘zalloc(56)’ leaks here; was allocated at [(74)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/73)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libinput-1.31.0/src/evdev-tablet-pad-leds.c:233:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(24)’
libinput-1.31.0/src/evdev-tablet-pad-leds.c:607:1: enter_function: entry to ‘pad_init_leds’
libinput-1.31.0/src/evdev-tablet-pad-leds.c:613:12: branch_false: following ‘false’ branch...
libinput-1.31.0/src/evdev-tablet-pad-leds.c:622:14: branch_false: ...to here
libinput-1.31.0/src/evdev-tablet-pad-leds.c:622:14: call_function: calling ‘pad_init_leds_from_libwacom’ from ‘pad_init_leds’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libinput-1.31.0/src/evdev-totem.c:840:44: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.31.0/src/evdev-totem.c:826:1: enter_function: entry to ‘evdev_totem_create’
libinput-1.31.0/src/evdev-totem.c:832:12: branch_false: following ‘false’ branch...
libinput-1.31.0/src/evdev-totem.c:835:17: branch_false: ...to here
libinput-1.31.0/src/evdev-totem.c:835:17: call_function: calling ‘zalloc’ from ‘evdev_totem_create’
libinput-1.31.0/src/evdev-totem.c:835:17: return_function: returning to ‘evdev_totem_create’ from ‘zalloc’
libinput-1.31.0/src/evdev-totem.c:841:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/evdev-totem.c:842:17: branch_true: ...to here
libinput-1.31.0/src/evdev-totem.c:840:44: danger: ‘zalloc(104)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libinput-1.31.0/src/filter-custom.c:46:13: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.31.0/src/filter-custom.c:425:1: enter_function: entry to ‘create_custom_accelerator_filter’
libinput-1.31.0/src/filter-custom.c:427:40: call_function: calling ‘zalloc’ from ‘create_custom_accelerator_filter’
libinput-1.31.0/src/filter-custom.c:427:40: return_function: returning to ‘create_custom_accelerator_filter’ from ‘zalloc’
libinput-1.31.0/src/filter-custom.c:435:29: call_function: calling ‘create_custom_accel_function’ from ‘create_custom_accelerator_filter’
libinput-1.31.0/src/filter-custom.c:435:29: return_function: returning to ‘create_custom_accelerator_filter’ from ‘create_custom_accel_function’
libinput-1.31.0/src/filter-custom.c:46:13: danger: ‘zalloc(40)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
libinput-1.31.0/src/filter-flat.c:152:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.31.0/src/filter-flat.c:144:1: enter_function: entry to ‘create_pointer_accelerator_filter_flat’
libinput-1.31.0/src/filter-flat.c:148:18: call_function: calling ‘zalloc’ from ‘create_pointer_accelerator_filter_flat’
libinput-1.31.0/src/filter-flat.c:148:18: return_function: returning to ‘create_pointer_accelerator_filter_flat’ from ‘zalloc’
libinput-1.31.0/src/filter-flat.c:152:16: danger: ‘zalloc(32)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
libinput-1.31.0/src/filter-tablet.c:163:50: warning[-Wanalyzer-malloc-leak]: leak of ‘create_tablet_filter_flat(xres, yres)’
libinput-1.31.0/src/filter-tablet.c:170:1: enter_function: entry to ‘create_pointer_accelerator_filter_tablet’
libinput-1.31.0/src/filter-tablet.c:174:18: call_function: calling ‘create_tablet_filter_flat’ from ‘create_pointer_accelerator_filter_tablet’
libinput-1.31.0/src/filter-tablet.c:174:18: return_function: returning to ‘create_pointer_accelerator_filter_tablet’ from ‘create_tablet_filter_flat’
libinput-1.31.0/src/filter-tablet.c:163:50: danger: ‘create_tablet_filter_flat(xres, yres)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
libinput-1.31.0/src/filter-touchpad-flat.c:155:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.31.0/src/filter-touchpad-flat.c:147:1: enter_function: entry to ‘create_pointer_accelerator_filter_touchpad_flat’
libinput-1.31.0/src/filter-touchpad-flat.c:151:18: call_function: calling ‘zalloc’ from ‘create_pointer_accelerator_filter_touchpad_flat’
libinput-1.31.0/src/filter-touchpad-flat.c:151:18: return_function: returning to ‘create_pointer_accelerator_filter_touchpad_flat’ from ‘zalloc’
libinput-1.31.0/src/filter-touchpad-flat.c:155:16: danger: ‘zalloc(32)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libinput-1.31.0/src/filter-trackpoint-flat.c:168:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.31.0/src/filter-trackpoint-flat.c:160:1: enter_function: entry to ‘create_pointer_accelerator_filter_trackpoint_flat’
libinput-1.31.0/src/filter-trackpoint-flat.c:164:18: call_function: calling ‘zalloc’ from ‘create_pointer_accelerator_filter_trackpoint_flat’
libinput-1.31.0/src/filter-trackpoint-flat.c:164:18: return_function: returning to ‘create_pointer_accelerator_filter_trackpoint_flat’ from ‘zalloc’
libinput-1.31.0/src/filter-trackpoint-flat.c:168:16: danger: ‘zalloc(32)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libinput-1.31.0/src/libinput-plugin-lua.c:186:33: warning[-Wanalyzer-malloc-leak]: leak of ‘udev_property_new(udev_list_entry_get_name(e), udev_list_entry_get_value(e))’
libinput-1.31.0/src/libinput-plugin-lua.c:343:1: enter_function: entry to ‘libinput_lua_plugin_device_new’
libinput-1.31.0/src/libinput-plugin-lua.c:352:9: call_function: calling ‘lua_push_evdev_device’ from ‘libinput_lua_plugin_device_new’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
libinput-1.31.0/src/libinput-plugin-tablet-double-tool.c:351:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.31.0/src/libinput-plugin-tablet-double-tool.c:338:1: enter_function: entry to ‘double_tool_plugin_device_added’
libinput-1.31.0/src/libinput-plugin-tablet-double-tool.c:349:36: call_function: calling ‘zalloc’ from ‘double_tool_plugin_device_added’
libinput-1.31.0/src/libinput-plugin-tablet-double-tool.c:349:36: return_function: returning to ‘double_tool_plugin_device_added’ from ‘zalloc’
libinput-1.31.0/src/libinput-plugin-tablet-double-tool.c:351:9: danger: ‘zalloc(40)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libinput-1.31.0/src/libinput-plugin-tablet-forced-tool.c:235:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.31.0/src/libinput-plugin-tablet-forced-tool.c:224:1: enter_function: entry to ‘forced_tool_plugin_device_added’
libinput-1.31.0/src/libinput-plugin-tablet-forced-tool.c:233:36: call_function: calling ‘zalloc’ from ‘forced_tool_plugin_device_added’
libinput-1.31.0/src/libinput-plugin-tablet-forced-tool.c:233:36: return_function: returning to ‘forced_tool_plugin_device_added’ from ‘zalloc’
libinput-1.31.0/src/libinput-plugin-tablet-forced-tool.c:235:9: danger: ‘zalloc(40)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def13]
libinput-1.31.0/src/libinput-util.h:84:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘evdev’
libinput-1.31.0/test/test-switch.c:831:1: enter_function: entry to ‘lid_update_hw_on_key_multiple_keyboards’
libinput-1.31.0/test/test-switch.c:840:12: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-switch.c:836:28: call_function: inlined call to ‘libevdev_freep’ from ‘lid_update_hw_on_key_multiple_keyboards’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libinput-1.31.0/src/libinput.c:1753:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(216)’
libinput-1.31.0/src/libinput.c:2845:1: enter_function: entry to ‘tablet_notify_proximity’
libinput-1.31.0/src/libinput.c:2856:27: call_function: calling ‘zalloc’ from ‘tablet_notify_proximity’
libinput-1.31.0/src/libinput.c:2856:27: return_function: returning to ‘tablet_notify_proximity’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:1753:9: danger: ‘zalloc(216)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
libinput-1.31.0/src/libinput.c:2391:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(16)’
libinput-1.31.0/src/libinput.c:2382:1: enter_function: entry to ‘notify_added_device’
libinput-1.31.0/src/libinput.c:2389:30: call_function: calling ‘zalloc’ from ‘notify_added_device’
libinput-1.31.0/src/libinput.c:2389:30: return_function: returning to ‘notify_added_device’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2391:9: danger: ‘zalloc(16)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libinput-1.31.0/src/libinput.c:2410:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(16)’
libinput-1.31.0/src/libinput.c:2401:1: enter_function: entry to ‘notify_removed_device’
libinput-1.31.0/src/libinput.c:2408:32: call_function: calling ‘zalloc’ from ‘notify_removed_device’
libinput-1.31.0/src/libinput.c:2408:32: return_function: returning to ‘notify_removed_device’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2410:9: danger: ‘zalloc(16)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
libinput-1.31.0/src/libinput.c:2475:26: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.31.0/src/libinput.c:2462:1: enter_function: entry to ‘keyboard_notify_key’
libinput-1.31.0/src/libinput.c:2470:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:2473:21: branch_true: ...to here
libinput-1.31.0/src/libinput.c:2473:21: call_function: calling ‘zalloc’ from ‘keyboard_notify_key’
libinput-1.31.0/src/libinput.c:2473:21: return_function: returning to ‘keyboard_notify_key’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2475:26: call_function: calling ‘update_seat_key_count’ from ‘keyboard_notify_key’
libinput-1.31.0/src/libinput.c:2475:26: return_function: returning to ‘keyboard_notify_key’ from ‘update_seat_key_count’
libinput-1.31.0/src/libinput.c:2475:26: danger: ‘zalloc(40)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libinput-1.31.0/src/libinput.c:2506:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.31.0/src/libinput.c:2488:1: enter_function: entry to ‘pointer_notify_motion’
libinput-1.31.0/src/libinput.c:2495:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:2498:24: branch_true: ...to here
libinput-1.31.0/src/libinput.c:2498:24: call_function: calling ‘zalloc’ from ‘pointer_notify_motion’
libinput-1.31.0/src/libinput.c:2498:24: return_function: returning to ‘pointer_notify_motion’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2506:9: danger: ‘zalloc(104)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
libinput-1.31.0/src/libinput.c:2529:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.31.0/src/libinput.c:2513:1: enter_function: entry to ‘pointer_notify_motion_absolute’
libinput-1.31.0/src/libinput.c:2519:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:2522:33: branch_true: ...to here
libinput-1.31.0/src/libinput.c:2522:33: call_function: calling ‘zalloc’ from ‘pointer_notify_motion_absolute’
libinput-1.31.0/src/libinput.c:2522:33: return_function: returning to ‘pointer_notify_motion_absolute’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2529:9: danger: ‘zalloc(104)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
libinput-1.31.0/src/libinput.c:2549:29: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.31.0/src/libinput.c:2536:1: enter_function: entry to ‘pointer_notify_button’
libinput-1.31.0/src/libinput.c:2544:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:2547:24: branch_true: ...to here
libinput-1.31.0/src/libinput.c:2547:24: call_function: calling ‘zalloc’ from ‘pointer_notify_button’
libinput-1.31.0/src/libinput.c:2547:24: return_function: returning to ‘pointer_notify_button’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2549:29: call_function: calling ‘update_seat_button_count’ from ‘pointer_notify_button’
libinput-1.31.0/src/libinput.c:2549:29: return_function: returning to ‘pointer_notify_button’ from ‘update_seat_button_count’
libinput-1.31.0/src/libinput.c:2549:29: danger: ‘zalloc(104)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
libinput-1.31.0/src/libinput.c:2590:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.31.0/src/libinput.c:2565:1: enter_function: entry to ‘pointer_notify_axis_finger’
libinput-1.31.0/src/libinput.c:2574:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:2577:22: branch_true: ...to here
libinput-1.31.0/src/libinput.c:2577:22: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_finger’
libinput-1.31.0/src/libinput.c:2577:22: return_function: returning to ‘pointer_notify_axis_finger’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2578:29: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_finger’
libinput-1.31.0/src/libinput.c:2578:29: return_function: returning to ‘pointer_notify_axis_finger’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2590:9: danger: ‘zalloc(104)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
libinput-1.31.0/src/libinput.c:2626:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.31.0/src/libinput.c:2601:1: enter_function: entry to ‘pointer_notify_axis_continuous’
libinput-1.31.0/src/libinput.c:2610:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:2613:22: branch_true: ...to here
libinput-1.31.0/src/libinput.c:2613:22: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_continuous’
libinput-1.31.0/src/libinput.c:2613:22: return_function: returning to ‘pointer_notify_axis_continuous’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2614:29: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_continuous’
libinput-1.31.0/src/libinput.c:2614:29: return_function: returning to ‘pointer_notify_axis_continuous’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2626:9: danger: ‘zalloc(104)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libinput-1.31.0/src/libinput.c:2660:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.31.0/src/libinput.c:2637:1: enter_function: entry to ‘pointer_notify_axis_legacy_wheel’
libinput-1.31.0/src/libinput.c:2646:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:2649:22: branch_true: ...to here
libinput-1.31.0/src/libinput.c:2649:22: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_legacy_wheel’
libinput-1.31.0/src/libinput.c:2649:22: return_function: returning to ‘pointer_notify_axis_legacy_wheel’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2660:9: danger: ‘zalloc(104)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
libinput-1.31.0/src/libinput.c:2687:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.31.0/src/libinput.c:2664:1: enter_function: entry to ‘pointer_notify_axis_wheel’
libinput-1.31.0/src/libinput.c:2672:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:2675:22: branch_true: ...to here
libinput-1.31.0/src/libinput.c:2675:22: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_wheel’
libinput-1.31.0/src/libinput.c:2675:22: return_function: returning to ‘pointer_notify_axis_wheel’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2687:9: danger: ‘zalloc(104)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libinput-1.31.0/src/libinput.c:2716:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.31.0/src/libinput.c:2696:1: enter_function: entry to ‘touch_notify_touch_down’
libinput-1.31.0/src/libinput.c:2704:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:2707:23: branch_true: ...to here
libinput-1.31.0/src/libinput.c:2707:23: call_function: calling ‘zalloc’ from ‘touch_notify_touch_down’
libinput-1.31.0/src/libinput.c:2707:23: return_function: returning to ‘touch_notify_touch_down’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2716:9: danger: ‘zalloc(40)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libinput-1.31.0/src/libinput.c:2740:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.31.0/src/libinput.c:2720:1: enter_function: entry to ‘touch_notify_touch_motion’
libinput-1.31.0/src/libinput.c:2728:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:2731:23: branch_true: ...to here
libinput-1.31.0/src/libinput.c:2731:23: call_function: calling ‘zalloc’ from ‘touch_notify_touch_motion’
libinput-1.31.0/src/libinput.c:2731:23: return_function: returning to ‘touch_notify_touch_motion’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2740:9: danger: ‘zalloc(40)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
libinput-1.31.0/src/libinput.c:2765:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.31.0/src/libinput.c:2747:1: enter_function: entry to ‘touch_notify_touch_up’
libinput-1.31.0/src/libinput.c:2754:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:2757:23: branch_true: ...to here
libinput-1.31.0/src/libinput.c:2757:23: call_function: calling ‘zalloc’ from ‘touch_notify_touch_up’
libinput-1.31.0/src/libinput.c:2757:23: return_function: returning to ‘touch_notify_touch_up’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2765:9: danger: ‘zalloc(40)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libinput-1.31.0/src/libinput.c:2787:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.31.0/src/libinput.c:2769:1: enter_function: entry to ‘touch_notify_touch_cancel’
libinput-1.31.0/src/libinput.c:2776:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:2779:23: branch_true: ...to here
libinput-1.31.0/src/libinput.c:2779:23: call_function: calling ‘zalloc’ from ‘touch_notify_touch_cancel’
libinput-1.31.0/src/libinput.c:2779:23: return_function: returning to ‘touch_notify_touch_cancel’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2787:9: danger: ‘zalloc(40)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libinput-1.31.0/src/libinput.c:2807:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.31.0/src/libinput.c:2794:1: enter_function: entry to ‘touch_notify_frame’
libinput-1.31.0/src/libinput.c:2798:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:2801:23: branch_true: ...to here
libinput-1.31.0/src/libinput.c:2801:23: call_function: calling ‘zalloc’ from ‘touch_notify_frame’
libinput-1.31.0/src/libinput.c:2801:23: return_function: returning to ‘touch_notify_frame’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2807:9: danger: ‘zalloc(40)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libinput-1.31.0/src/libinput.c:2924:29: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(216)’
libinput-1.31.0/src/libinput.c:2909:1: enter_function: entry to ‘tablet_notify_button’
libinput-1.31.0/src/libinput.c:2922:24: call_function: calling ‘zalloc’ from ‘tablet_notify_button’
libinput-1.31.0/src/libinput.c:2922:24: return_function: returning to ‘tablet_notify_button’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:2924:29: call_function: calling ‘update_seat_button_count’ from ‘tablet_notify_button’
libinput-1.31.0/src/libinput.c:2924:29: return_function: returning to ‘tablet_notify_button’ from ‘update_seat_button_count’
libinput-1.31.0/src/libinput.c:2924:29: danger: ‘zalloc(216)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libinput-1.31.0/src/libinput.c:3071:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
libinput-1.31.0/src/libinput.c:3062:1: enter_function: entry to ‘tablet_pad_notify_key’
libinput-1.31.0/src/libinput.c:3069:21: call_function: calling ‘zalloc’ from ‘tablet_pad_notify_key’
libinput-1.31.0/src/libinput.c:3069:21: return_function: returning to ‘tablet_pad_notify_key’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:3071:9: danger: ‘zalloc(120)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libinput-1.31.0/src/libinput.c:3101:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(80)’
libinput-1.31.0/src/libinput.c:3084:1: enter_function: entry to ‘gesture_notify’
libinput-1.31.0/src/libinput.c:3096:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:3099:25: branch_true: ...to here
libinput-1.31.0/src/libinput.c:3099:25: call_function: calling ‘zalloc’ from ‘gesture_notify’
libinput-1.31.0/src/libinput.c:3099:25: return_function: returning to ‘gesture_notify’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:3101:9: danger: ‘zalloc(80)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libinput-1.31.0/src/libinput.c:3239:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.31.0/src/libinput.c:3221:1: enter_function: entry to ‘switch_notify_toggle’
libinput-1.31.0/src/libinput.c:3228:12: branch_true: following ‘true’ branch...
libinput-1.31.0/src/libinput.c:3231:24: branch_true: ...to here
libinput-1.31.0/src/libinput.c:3231:24: call_function: calling ‘zalloc’ from ‘switch_notify_toggle’
libinput-1.31.0/src/libinput.c:3231:24: return_function: returning to ‘switch_notify_toggle’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:3239:9: danger: ‘zalloc(32)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
libinput-1.31.0/src/libinput.c:3548:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
libinput-1.31.0/src/libinput.c:2974:1: enter_function: entry to ‘tablet_pad_notify_dial’
libinput-1.31.0/src/libinput.c:2983:22: call_function: calling ‘zalloc’ from ‘tablet_pad_notify_dial’
libinput-1.31.0/src/libinput.c:2983:22: return_function: returning to ‘tablet_pad_notify_dial’ from ‘zalloc’
libinput-1.31.0/src/libinput.c:3548:16: danger: ‘zalloc(120)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
libinput-1.31.0/src/util-bits.h:262:17: warning[-Wanalyzer-malloc-leak]: leak of ‘m.mask’
libinput-1.31.0/src/util-bits.h:408:1: enter_function: entry to ‘_infmask_from_bits’
libinput-1.31.0/src/util-bits.h:411:9: call_function: calling ‘infmask_set_bit’ from ‘_infmask_from_bits’
libinput-1.31.0/src/util-bits.h:411:9: return_function: returning to ‘_infmask_from_bits’ from ‘infmask_set_bit’
libinput-1.31.0/src/util-bits.h:417:16: branch_true: following ‘true’ branch (when ‘v != 4294967295’)...
libinput-1.31.0/src/util-bits.h:418:17: branch_true: ...to here
libinput-1.31.0/src/util-bits.h:418:17: call_function: calling ‘infmask_set_bit’ from ‘_infmask_from_bits’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
libinput-1.31.0/src/util-bits.h:265:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/src/util-bits.h:408:1: enter_function: entry to ‘_infmask_from_bits’
libinput-1.31.0/src/util-bits.h:410:23: release_memory: ‘m.mask’ is NULL
libinput-1.31.0/src/util-bits.h:411:9: call_function: calling ‘infmask_set_bit’ from ‘_infmask_from_bits’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
libinput-1.31.0/src/util-bits.h:265:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘empty.mask’
libinput-1.31.0/test/test-utils.c:3174:1: enter_function: entry to ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3177:27: release_memory: ‘empty.mask’ is NULL
libinput-1.31.0/test/test-utils.c:3178:9: call_function: calling ‘infmask_is_empty’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3178:9: return_function: returning to ‘infmask_test’ from ‘infmask_is_empty’
libinput-1.31.0/test/test-utils.c:3178:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:3184:28: branch_true: ...to here
libinput-1.31.0/test/test-utils.c:3184:28: release_memory: ‘empty.mask’ is NULL
libinput-1.31.0/test/test-utils.c:3185:9: call_function: calling ‘infmask_set_bit’ from ‘infmask_test’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
libinput-1.31.0/src/util-bits.h:265:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘high.mask’
libinput-1.31.0/test/test-utils.c:3174:1: enter_function: entry to ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3177:27: release_memory: ‘empty.mask’ is NULL
libinput-1.31.0/test/test-utils.c:3178:9: call_function: calling ‘infmask_is_empty’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3178:9: return_function: returning to ‘infmask_test’ from ‘infmask_is_empty’
libinput-1.31.0/test/test-utils.c:3178:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:3184:28: branch_true: ...to here
libinput-1.31.0/test/test-utils.c:3184:28: release_memory: ‘empty.mask’ is NULL
libinput-1.31.0/test/test-utils.c:3185:9: call_function: calling ‘infmask_set_bit’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3185:9: return_function: returning to ‘infmask_test’ from ‘infmask_set_bit’
libinput-1.31.0/test/test-utils.c:3185:9: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:3186:9: call_function: inlined call to ‘infmask_bit_is_set’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3186:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:3187:9: call_function: inlined call to ‘infmask_bit_is_set’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3187:9: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:3188:9: call_function: inlined call to ‘infmask_bit_is_set’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3188:9: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:3189:9: branch_false: ...to here
libinput-1.31.0/test/test-utils.c:3189:9: call_function: calling ‘infmask_is_empty’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3189:9: return_function: returning to ‘infmask_test’ from ‘infmask_is_empty’
libinput-1.31.0/test/test-utils.c:3189:9: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:3190:9: branch_false: ...to here
libinput-1.31.0/test/test-utils.c:3190:9: call_function: calling ‘infmask_clear_bit’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3190:9: return_function: returning to ‘infmask_test’ from ‘infmask_clear_bit’
libinput-1.31.0/test/test-utils.c:3190:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:3191:9: call_function: inlined call to ‘infmask_bit_is_set’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3191:9: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:3192:9: branch_false: ...to here
libinput-1.31.0/test/test-utils.c:3192:9: call_function: calling ‘infmask_is_empty’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3192:9: return_function: returning to ‘infmask_test’ from ‘infmask_is_empty’
libinput-1.31.0/test/test-utils.c:3196:30: call_function: calling ‘infmask_from_bit’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3196:30: return_function: returning to ‘infmask_test’ from ‘infmask_from_bit’
libinput-1.31.0/test/test-utils.c:3197:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:3198:9: call_function: inlined call to ‘infmask_bit_is_set’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3198:9: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:3199:9: call_function: inlined call to ‘infmask_bit_is_set’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3199:9: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:3200:9: call_function: inlined call to ‘infmask_reset’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3203:31: call_function: calling ‘_infmask_from_bits’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3203:31: return_function: returning to ‘infmask_test’ from ‘_infmask_from_bits’
libinput-1.31.0/test/test-utils.c:3204:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:3205:9: call_function: inlined call to ‘infmask_bit_is_set’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3205:9: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:3206:9: call_function: inlined call to ‘infmask_bit_is_set’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3206:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:3207:9: call_function: inlined call to ‘infmask_bit_is_set’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3207:9: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:3208:9: call_function: inlined call to ‘infmask_bit_is_set’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3208:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:3209:9: call_function: inlined call to ‘infmask_reset’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3212:26: release_memory: ‘high.mask’ is NULL
libinput-1.31.0/test/test-utils.c:3213:9: call_function: calling ‘infmask_set_bit’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3213:9: return_function: returning to ‘infmask_test’ from ‘infmask_set_bit’
libinput-1.31.0/test/test-utils.c:3217:9: call_function: calling ‘infmask_clear_bit’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3217:9: return_function: returning to ‘infmask_test’ from ‘infmask_clear_bit’
libinput-1.31.0/test/test-utils.c:3222:27: call_function: calling ‘_infmask_from_bits’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3222:27: return_function: returning to ‘infmask_test’ from ‘_infmask_from_bits’
libinput-1.31.0/test/test-utils.c:3223:27: call_function: calling ‘_infmask_from_bits’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3223:27: return_function: returning to ‘infmask_test’ from ‘_infmask_from_bits’
libinput-1.31.0/test/test-utils.c:3224:27: call_function: calling ‘_infmask_from_bits’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3224:27: return_function: returning to ‘infmask_test’ from ‘_infmask_from_bits’
libinput-1.31.0/test/test-utils.c:3226:9: call_function: calling ‘infmask_any’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3226:9: return_function: returning to ‘infmask_test’ from ‘infmask_any’
libinput-1.31.0/test/test-utils.c:3226:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:3227:9: branch_true: ...to here
libinput-1.31.0/test/test-utils.c:3227:9: call_function: calling ‘infmask_all’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3227:9: return_function: returning to ‘infmask_test’ from ‘infmask_all’
libinput-1.31.0/test/test-utils.c:3227:9: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:3228:9: branch_false: ...to here
libinput-1.31.0/test/test-utils.c:3228:9: call_function: calling ‘infmask_all’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3228:9: return_function: returning to ‘infmask_test’ from ‘infmask_all’
libinput-1.31.0/test/test-utils.c:3229:9: call_function: calling ‘infmask_any’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3229:9: return_function: returning to ‘infmask_test’ from ‘infmask_any’
libinput-1.31.0/test/test-utils.c:3229:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:3231:9: call_function: inlined call to ‘infmask_reset’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3236:28: call_function: calling ‘_infmask_from_bits’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3236:28: return_function: returning to ‘infmask_test’ from ‘_infmask_from_bits’
libinput-1.31.0/test/test-utils.c:3237:28: call_function: calling ‘_infmask_from_bits’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3237:28: return_function: returning to ‘infmask_test’ from ‘_infmask_from_bits’
libinput-1.31.0/test/test-utils.c:3238:9: call_function: calling ‘infmask_merge’ from ‘infmask_test’
libinput-1.31.0/test/test-utils.c:3238:9: return_function: returning to ‘infmask_test’ from ‘infmask_merge’
libinput-1.31.0/test/test-utils.c:3246:28: call_function: calling ‘_infmask_from_bits’ from ‘infmask_test’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def39]
libinput-1.31.0/src/util-files.c:43:14: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libinput-1.31.0/src/util-files.c:85:1: enter_function: entry to ‘list_files’
libinput-1.31.0/src/util-files.c:89:12: branch_false: following ‘false’ branch (when ‘directories’ is non-NULL)...
libinput-1.31.0/src/util-files.c:89:12: branch_false: ...to here
libinput-1.31.0/src/util-files.c:96:16: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:97:29: branch_true: ...to here
libinput-1.31.0/src/util-files.c:98:17: call_function: calling ‘filenames’ from ‘list_files’
libinput-1.31.0/src/util-files.c:98:17: return_function: returning to ‘list_files’ from ‘filenames’
libinput-1.31.0/src/util-files.c:101:17: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:103:25: branch_true: ...to here
libinput-1.31.0/src/util-files.c:103:25: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:104:59: branch_true: ...to here
libinput-1.31.0/src/util-files.c:105:41: call_function: calling ‘file_destroy’ from ‘list_files’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def40]
libinput-1.31.0/src/util-files.c:44:14: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libinput-1.31.0/src/util-files.c:85:1: enter_function: entry to ‘list_files’
libinput-1.31.0/src/util-files.c:89:12: branch_false: following ‘false’ branch (when ‘directories’ is non-NULL)...
libinput-1.31.0/src/util-files.c:89:12: branch_false: ...to here
libinput-1.31.0/src/util-files.c:96:16: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:97:29: branch_true: ...to here
libinput-1.31.0/src/util-files.c:98:17: call_function: calling ‘filenames’ from ‘list_files’
libinput-1.31.0/src/util-files.c:98:17: return_function: returning to ‘list_files’ from ‘filenames’
libinput-1.31.0/src/util-files.c:101:17: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:103:25: branch_true: ...to here
libinput-1.31.0/src/util-files.c:103:25: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:104:59: branch_true: ...to here
libinput-1.31.0/src/util-files.c:105:41: call_function: calling ‘file_destroy’ from ‘list_files’
Error: GCC_ANALYZER_WARNING (CWE-590): [#def41]
libinput-1.31.0/src/util-files.c:45:9: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘f’ which points to memory on the stack
libinput-1.31.0/src/util-files.c:85:1: enter_function: entry to ‘list_files’
libinput-1.31.0/src/util-files.c:89:12: branch_false: following ‘false’ branch (when ‘directories’ is non-NULL)...
libinput-1.31.0/src/util-files.c:89:12: branch_false: ...to here
libinput-1.31.0/src/util-files.c:96:16: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:97:29: branch_true: ...to here
libinput-1.31.0/src/util-files.c:98:17: call_function: calling ‘filenames’ from ‘list_files’
libinput-1.31.0/src/util-files.c:98:17: return_function: returning to ‘list_files’ from ‘filenames’
libinput-1.31.0/src/util-files.c:101:17: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:103:25: branch_true: ...to here
libinput-1.31.0/src/util-files.c:103:25: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:104:59: branch_true: ...to here
libinput-1.31.0/src/util-files.c:105:41: call_function: calling ‘file_destroy’ from ‘list_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
libinput-1.31.0/src/util-files.c:71:17: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.31.0/src/util-files.c:85:1: enter_function: entry to ‘list_files’
libinput-1.31.0/src/util-files.c:89:12: branch_false: following ‘false’ branch (when ‘directories’ is non-NULL)...
libinput-1.31.0/src/util-files.c:89:12: branch_false: ...to here
libinput-1.31.0/src/util-files.c:96:16: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:97:29: branch_true: ...to here
libinput-1.31.0/src/util-files.c:98:17: call_function: calling ‘filenames’ from ‘list_files’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def43]
libinput-1.31.0/src/util-files.c:104:43: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libinput-1.31.0/src/util-files.c:85:1: enter_function: entry to ‘list_files’
libinput-1.31.0/src/util-files.c:89:12: branch_false: following ‘false’ branch (when ‘directories’ is non-NULL)...
libinput-1.31.0/src/util-files.c:89:12: branch_false: ...to here
libinput-1.31.0/src/util-files.c:96:16: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:97:29: branch_true: ...to here
libinput-1.31.0/src/util-files.c:98:17: call_function: calling ‘filenames’ from ‘list_files’
libinput-1.31.0/src/util-files.c:98:17: return_function: returning to ‘list_files’ from ‘filenames’
libinput-1.31.0/src/util-files.c:101:17: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:103:25: branch_true: ...to here
libinput-1.31.0/src/util-files.c:103:25: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:104:59: branch_true: ...to here
libinput-1.31.0/src/util-files.c:104:43: danger: out-of-bounds read from byte 16 till byte 23 but ‘files’ ends at byte 16
Error: GCC_ANALYZER_WARNING (CWE-126): [#def44]
libinput-1.31.0/src/util-files.c:104:59: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libinput-1.31.0/src/util-files.c:85:1: enter_function: entry to ‘list_files’
libinput-1.31.0/src/util-files.c:89:12: branch_false: following ‘false’ branch (when ‘directories’ is non-NULL)...
libinput-1.31.0/src/util-files.c:89:12: branch_false: ...to here
libinput-1.31.0/src/util-files.c:96:16: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:97:29: branch_true: ...to here
libinput-1.31.0/src/util-files.c:98:17: call_function: calling ‘filenames’ from ‘list_files’
libinput-1.31.0/src/util-files.c:98:17: return_function: returning to ‘list_files’ from ‘filenames’
libinput-1.31.0/src/util-files.c:101:17: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:103:25: branch_true: ...to here
libinput-1.31.0/src/util-files.c:103:25: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-files.c:104:59: branch_true: ...to here
libinput-1.31.0/src/util-files.c:104:59: danger: out-of-bounds read from byte 16 till byte 23 but ‘new_files’ ends at byte 16
Error: GCC_ANALYZER_WARNING (CWE-835): [#def45]
libinput-1.31.0/src/util-files.c:120:9: warning[-Wanalyzer-infinite-loop]: infinite loop
libinput-1.31.0/src/util-files.c:120:9: danger: infinite loop here
libinput-1.31.0/src/util-files.c:120:9: branch_true: if it ever follows ‘true’ branch, it will always do so...
libinput-1.31.0/src/util-files.c:121:17: branch_true: ...to here
Error: COMPILER_WARNING (CWE-457): [#def46]
libinput-1.31.0/src/util-mem.h:80:9: warning[-Wmaybe-uninitialized]: ‘abs’ may be used uninitialized
libinput-1.31.0/test/litest.c: scope_hint: In function ‘litest_create’
libinput-1.31.0/test/litest.c:2072:42: note: ‘abs’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def47]
libinput-1.31.0/src/util-mem.h:80:9: warning[-Wmaybe-uninitialized]: ‘events’ may be used uninitialized
libinput-1.31.0/test/litest.c: scope_hint: In function ‘litest_create’
libinput-1.31.0/test/litest.c:2073:25: note: ‘events’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def48]
libinput-1.31.0/src/util-mem.h:131:20: warning[-Wmaybe-uninitialized]: ‘udev_device’ may be used uninitialized
libinput-1.31.0/test/litest.c: scope_hint: In function ‘grab_device’
libinput-1.31.0/test/litest.c:672:32: note: ‘udev_device’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def49]
libinput-1.31.0/src/util-prop-parsers.c:416:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&evs’
libinput-1.31.0/src/util-prop-parsers.c:364:1: enter_function: entry to ‘parse_evcode_property’
libinput-1.31.0/src/util-prop-parsers.c:374:12: branch_false: following ‘false’ branch...
libinput-1.31.0/src/util-prop-parsers.c:378:30: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-prop-parsers.c:382:25: branch_true: ...to here
libinput-1.31.0/src/util-prop-parsers.c:397:20: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-prop-parsers.c:398:30: branch_true: ...to here
libinput-1.31.0/src/util-prop-parsers.c:398:30: call_function: calling ‘parse_evcode_string’ from ‘parse_evcode_property’
libinput-1.31.0/src/util-prop-parsers.c:398:30: return_function: returning to ‘parse_evcode_property’ from ‘parse_evcode_string’
libinput-1.31.0/src/util-prop-parsers.c:398:28: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-prop-parsers.c:411:17: branch_true: ...to here
libinput-1.31.0/src/util-prop-parsers.c:378:30: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-prop-parsers.c:382:25: branch_true: ...to here
libinput-1.31.0/src/util-prop-parsers.c:397:20: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-prop-parsers.c:398:30: branch_true: ...to here
libinput-1.31.0/src/util-prop-parsers.c:398:30: call_function: calling ‘parse_evcode_string’ from ‘parse_evcode_property’
libinput-1.31.0/src/util-prop-parsers.c:398:30: return_function: returning to ‘parse_evcode_property’ from ‘parse_evcode_string’
libinput-1.31.0/src/util-prop-parsers.c:398:28: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-prop-parsers.c:411:17: branch_true: ...to here
libinput-1.31.0/src/util-prop-parsers.c:378:30: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-prop-parsers.c:382:25: branch_true: ...to here
libinput-1.31.0/src/util-prop-parsers.c:397:20: branch_false: following ‘false’ branch...
libinput-1.31.0/src/util-prop-parsers.c:402:30: branch_false: ...to here
libinput-1.31.0/src/util-prop-parsers.c:404:28: branch_false: following ‘false’ branch...
libinput-1.31.0/src/util-prop-parsers.c:405:29: branch_false: ...to here
libinput-1.31.0/src/util-prop-parsers.c:404:29: branch_false: following ‘false’ branch...
libinput-1.31.0/src/util-prop-parsers.c:406:37: branch_false: ...to here
libinput-1.31.0/src/util-prop-parsers.c:404:29: branch_false: following ‘false’ branch...
libinput-1.31.0/src/util-prop-parsers.c:407:29: branch_false: ...to here
libinput-1.31.0/src/util-prop-parsers.c:404:29: branch_false: following ‘false’ branch...
libinput-1.31.0/src/util-prop-parsers.c:407:48: branch_false: ...to here
libinput-1.31.0/src/util-prop-parsers.c:404:29: branch_false: following ‘false’ branch...
libinput-1.31.0/src/util-prop-parsers.c:423:1: branch_false: ...to here
libinput-1.31.0/src/util-prop-parsers.c:378:30: branch_false: following ‘false’ branch...
libinput-1.31.0/src/util-prop-parsers.c:416:9: branch_false: ...to here
libinput-1.31.0/src/util-prop-parsers.c:416:9: danger: use of uninitialized value ‘&evs’ here
Error: CPPCHECK_WARNING (CWE-476): [#def50]
libinput-1.31.0/src/util-stringbuf.h:42: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def51]
libinput-1.31.0/src/util-stringbuf.h:43: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def52]
libinput-1.31.0/src/util-stringbuf.h:44: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
libinput-1.31.0/src/util-strings.c:145:20: warning[-Wanalyzer-malloc-leak]: leak of ‘safe_strdup(*<unknown>)’
libinput-1.31.0/src/util-strings.c:132:1: enter_function: entry to ‘strv_from_argv’
libinput-1.31.0/src/util-strings.c:136:9: branch_true: following ‘true’ branch (when ‘argc >= 0’)...
libinput-1.31.0/src/util-strings.c:137:9: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:137:9: branch_true: following ‘true’ branch (when ‘argv’ is non-NULL)...
libinput-1.31.0/src/util-strings.c:139:12: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:139:12: branch_false: following ‘false’ branch (when ‘argc != 0’)...
libinput-1.31.0/src/util-strings.c:142:23: branch_false: ...to here
libinput-1.31.0/src/util-strings.c:142:16: call_function: calling ‘zalloc’ from ‘strv_from_argv’
libinput-1.31.0/src/util-strings.c:142:16: return_function: returning to ‘strv_from_argv’ from ‘zalloc’
libinput-1.31.0/src/util-strings.c:143:25: branch_true: following ‘true’ branch (when ‘i < argc’)...
libinput-1.31.0/src/util-strings.c:144:46: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:144:30: call_function: calling ‘safe_strdup’ from ‘strv_from_argv’
libinput-1.31.0/src/util-strings.c:144:30: return_function: returning to ‘strv_from_argv’ from ‘safe_strdup’
libinput-1.31.0/src/util-strings.c:145:20: branch_false: following ‘false’ branch...
libinput-1.31.0/src/util-strings.c:149:21: branch_false: ...to here
libinput-1.31.0/src/util-strings.c:143:25: branch_true: following ‘true’ branch (when ‘i < argc’)...
libinput-1.31.0/src/util-strings.c:144:46: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:144:30: call_function: calling ‘safe_strdup’ from ‘strv_from_argv’
libinput-1.31.0/src/util-strings.c:144:30: return_function: returning to ‘strv_from_argv’ from ‘safe_strdup’
libinput-1.31.0/src/util-strings.c:145:20: branch_false: following ‘false’ branch...
libinput-1.31.0/src/util-strings.c:149:21: branch_false: ...to here
libinput-1.31.0/src/util-strings.c:143:25: branch_true: following ‘true’ branch (when ‘i < argc’)...
libinput-1.31.0/src/util-strings.c:144:46: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:144:30: call_function: calling ‘safe_strdup’ from ‘strv_from_argv’
libinput-1.31.0/src/util-strings.c:144:30: return_function: returning to ‘strv_from_argv’ from ‘safe_strdup’
libinput-1.31.0/src/util-strings.c:145:20: branch_false: following ‘false’ branch...
libinput-1.31.0/src/util-strings.c:149:21: branch_false: ...to here
libinput-1.31.0/src/util-strings.c:143:25: branch_true: following ‘true’ branch (when ‘i < argc’)...
libinput-1.31.0/src/util-strings.c:144:46: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:144:30: call_function: calling ‘safe_strdup’ from ‘strv_from_argv’
libinput-1.31.0/src/util-strings.c:144:30: return_function: returning to ‘strv_from_argv’ from ‘safe_strdup’
libinput-1.31.0/src/util-strings.c:145:20: danger: ‘safe_strdup(*<unknown>)’ leaks here; was allocated at [(54)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/53)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
libinput-1.31.0/src/util-strings.h:153:16: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpdir_create(0)’
libinput-1.31.0/test/test-utils.c:118:1: enter_function: entry to ‘tmpdir_test’
libinput-1.31.0/test/test-utils.c:122:45: call_function: calling ‘tmpdir_create’ from ‘tmpdir_test’
libinput-1.31.0/test/test-utils.c:122:45: return_function: returning to ‘tmpdir_test’ from ‘tmpdir_create’
libinput-1.31.0/test/test-utils.c:124:31: call_function: calling ‘safe_strdup’ from ‘tmpdir_test’
libinput-1.31.0/test/test-utils.c:124:31: return_function: returning to ‘tmpdir_test’ from ‘safe_strdup’
libinput-1.31.0/test/test-utils.c:126:39: call_function: calling ‘strdup_printf’ from ‘tmpdir_test’
libinput-1.31.0/test/test-utils.c:126:39: return_function: returning to ‘tmpdir_test’ from ‘strdup_printf’
libinput-1.31.0/test/test-utils.c:127:17: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:127:17: branch_true: ...to here
libinput-1.31.0/src/util-strings.h:153:16: danger: ‘tmpdir_create(0)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
libinput-1.31.0/src/util-strings.h:153:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(16)’
libinput-1.31.0/test/test-quirks.c:1511:1: enter_function: entry to ‘quirks_ctx_ref’
libinput-1.31.0/test/test-quirks.c:1518:35: call_function: calling ‘data_dir_new’ from ‘quirks_ctx_ref’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
libinput-1.31.0/src/util-strings.h:365:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.31.0/src/util-strings.c:172:1: enter_function: entry to ‘strv_from_string’
libinput-1.31.0/src/util-strings.c:174:9: branch_true: following ‘true’ branch (when ‘in’ is non-NULL)...
libinput-1.31.0/src/util-strings.c:175:9: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:175:9: branch_true: following ‘true’ branch (when ‘separators’ is non-NULL)...
libinput-1.31.0/src/util-strings.c:177:21: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:179:16: call_function: calling ‘next_word’ from ‘strv_from_string’
libinput-1.31.0/src/util-strings.c:179:16: return_function: returning to ‘strv_from_string’ from ‘next_word’
libinput-1.31.0/src/util-strings.c:179:16: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-strings.c:180:17: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:179:16: call_function: calling ‘next_word’ from ‘strv_from_string’
libinput-1.31.0/src/util-strings.c:179:16: return_function: returning to ‘strv_from_string’ from ‘next_word’
libinput-1.31.0/src/util-strings.c:179:16: branch_false: following ‘false’ branch...
libinput-1.31.0/src/util-strings.c:182:12: branch_false: ...to here
libinput-1.31.0/src/util-strings.c:182:12: branch_false: following ‘false’ branch (when ‘nelems != 0’)...
libinput-1.31.0/src/util-strings.c:188:16: branch_false: ...to here
libinput-1.31.0/src/util-strings.c:189:23: call_function: calling ‘zalloc’ from ‘strv_from_string’
libinput-1.31.0/src/util-strings.c:189:23: return_function: returning to ‘strv_from_string’ from ‘zalloc’
libinput-1.31.0/src/util-strings.c:194:24: call_function: calling ‘next_word’ from ‘strv_from_string’
libinput-1.31.0/src/util-strings.c:194:24: return_function: returning to ‘strv_from_string’ from ‘next_word’
libinput-1.31.0/src/util-strings.c:194:16: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-strings.c:195:30: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:196:20: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
libinput-1.31.0/src/util-strings.c:203:17: branch_false: ...to here
libinput-1.31.0/src/util-strings.c:203:17: branch_true: following ‘true’ branch (when ‘idx < strv_len’)...
libinput-1.31.0/src/util-strings.c:204:22: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:194:24: call_function: calling ‘next_word’ from ‘strv_from_string’
libinput-1.31.0/src/util-strings.c:194:24: return_function: returning to ‘strv_from_string’ from ‘next_word’
libinput-1.31.0/src/util-strings.c:194:16: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-strings.c:195:30: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:196:20: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
libinput-1.31.0/src/util-strings.c:203:17: branch_false: ...to here
libinput-1.31.0/src/util-strings.c:203:17: branch_true: following ‘true’ branch (when ‘idx < strv_len’)...
libinput-1.31.0/src/util-strings.c:204:22: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:194:24: call_function: calling ‘next_word’ from ‘strv_from_string’
libinput-1.31.0/src/util-strings.c:194:24: return_function: returning to ‘strv_from_string’ from ‘next_word’
libinput-1.31.0/src/util-strings.c:194:16: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-strings.c:195:30: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:195:30: acquire_memory: allocated here
libinput-1.31.0/src/util-strings.c:196:20: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
libinput-1.31.0/src/util-strings.c:203:17: branch_false: ...to here
libinput-1.31.0/src/util-strings.c:203:17: branch_true: following ‘true’ branch (when ‘idx < strv_len’)...
libinput-1.31.0/src/util-strings.c:204:22: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:194:24: call_function: calling ‘next_word’ from ‘strv_from_string’
libinput-1.31.0/src/util-strings.c:194:24: return_function: returning to ‘strv_from_string’ from ‘next_word’
libinput-1.31.0/src/util-strings.c:194:16: branch_true: following ‘true’ branch...
libinput-1.31.0/src/util-strings.c:195:30: branch_true: ...to here
libinput-1.31.0/src/util-strings.c:196:20: branch_true: following ‘true’ branch (when ‘copy’ is NULL)...
libinput-1.31.0/src/util-strings.c:197:25: call_function: inlined call to ‘strv_free’ from ‘strv_from_string’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def57]
libinput-1.31.0/test/litest-main.c:170:25: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libinput-1.31.0/test/litest-main.c:157:1: enter_function: entry to ‘setup_tests’
libinput-1.31.0/test/litest-main.c:165:25: branch_true: following ‘true’ branch...
libinput-1.31.0/test/litest-main.c:168:21: branch_true: ...to here
libinput-1.31.0/test/litest-main.c:168:21: call_function: calling ‘zalloc’ from ‘setup_tests’
libinput-1.31.0/test/litest-main.c:168:21: return_function: returning to ‘setup_tests’ from ‘zalloc’
libinput-1.31.0/test/litest-main.c:169:27: call_function: calling ‘safe_strdup’ from ‘setup_tests’
libinput-1.31.0/test/litest-main.c:169:27: return_function: returning to ‘setup_tests’ from ‘safe_strdup’
libinput-1.31.0/test/litest-main.c:165:25: branch_true: following ‘true’ branch...
libinput-1.31.0/test/litest-main.c:168:21: branch_true: ...to here
libinput-1.31.0/test/litest-main.c:168:21: call_function: calling ‘zalloc’ from ‘setup_tests’
libinput-1.31.0/test/litest-main.c:168:21: return_function: returning to ‘setup_tests’ from ‘zalloc’
libinput-1.31.0/test/litest-main.c:170:25: danger: out-of-bounds read from byte 16 till byte 23 but ‘__start_test_collection_section’ ends at byte 16
Error: GCC_ANALYZER_WARNING (CWE-126): [#def58]
libinput-1.31.0/test/litest-main.c:176:17: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libinput-1.31.0/test/litest-main.c:157:1: enter_function: entry to ‘setup_tests’
libinput-1.31.0/test/litest-main.c:165:25: branch_true: following ‘true’ branch...
libinput-1.31.0/test/litest-main.c:168:21: branch_true: ...to here
libinput-1.31.0/test/litest-main.c:168:21: call_function: calling ‘zalloc’ from ‘setup_tests’
libinput-1.31.0/test/litest-main.c:168:21: return_function: returning to ‘setup_tests’ from ‘zalloc’
libinput-1.31.0/test/litest-main.c:169:27: call_function: calling ‘safe_strdup’ from ‘setup_tests’
libinput-1.31.0/test/litest-main.c:169:27: return_function: returning to ‘setup_tests’ from ‘safe_strdup’
libinput-1.31.0/test/litest-main.c:165:25: branch_true: following ‘true’ branch...
libinput-1.31.0/test/litest-main.c:168:21: branch_true: ...to here
libinput-1.31.0/test/litest-main.c:168:21: call_function: calling ‘zalloc’ from ‘setup_tests’
libinput-1.31.0/test/litest-main.c:168:21: return_function: returning to ‘setup_tests’ from ‘zalloc’
libinput-1.31.0/test/litest-main.c:169:27: call_function: calling ‘safe_strdup’ from ‘setup_tests’
libinput-1.31.0/test/litest-main.c:169:27: return_function: returning to ‘setup_tests’ from ‘safe_strdup’
libinput-1.31.0/test/litest-main.c:176:17: danger: out-of-bounds read from byte 24 till byte 31 but ‘__start_test_collection_section’ ends at byte 16
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
libinput-1.31.0/test/litest.c:846:19: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(80)’
libinput-1.31.0/test/litest.c:867:1: enter_function: entry to ‘litest_add_tcase_for_device_with_params’
libinput-1.31.0/test/litest.c:884:9: call_function: calling ‘litest_parameters_permutations’ from ‘litest_add_tcase_for_device_with_params’
Error: COMPILER_WARNING (CWE-252): [#def60]
libinput-1.31.0/test/test-plugins-lua.c: scope_hint: In function ‘_litest_write_plugin’
libinput-1.31.0/test/test-plugins-lua.c:48:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
libinput-1.31.0/test/test-plugins-lua.c:542:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-plugins-lua.c:529:1: enter_function: entry to ‘lua_frame_handler’
libinput-1.31.0/test/test-plugins-lua.c:531:37: call_function: calling ‘tmpdir_create’ from ‘lua_frame_handler’
libinput-1.31.0/test/test-plugins-lua.c:531:37: return_function: returning to ‘lua_frame_handler’ from ‘tmpdir_create’
libinput-1.31.0/test/test-plugins-lua.c:542:33: danger: dereference of NULL ‘tmpdir_create(0)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
libinput-1.31.0/test/test-plugins-lua.c:576:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-plugins-lua.c:529:1: enter_function: entry to ‘lua_frame_handler’
libinput-1.31.0/test/test-plugins-lua.c:531:37: call_function: calling ‘tmpdir_create’ from ‘lua_frame_handler’
libinput-1.31.0/test/test-plugins-lua.c:531:37: return_function: returning to ‘lua_frame_handler’ from ‘tmpdir_create’
libinput-1.31.0/test/test-plugins-lua.c:542:33: call_function: calling ‘_litest_write_plugin’ from ‘lua_frame_handler’
libinput-1.31.0/test/test-plugins-lua.c:542:33: return_function: returning to ‘lua_frame_handler’ from ‘_litest_write_plugin’
libinput-1.31.0/test/test-plugins-lua.c:548:9: branch_true: following ‘true’ branch (when ‘capture’ is non-NULL)...
libinput-1.31.0/test/test-plugins-lua.c:549:17: branch_true: ...to here
libinput-1.31.0/test/test-plugins-lua.c:557:17: call_function: calling ‘now_in_us’ from ‘lua_frame_handler’
libinput-1.31.0/test/test-plugins-lua.c:557:17: return_function: returning to ‘lua_frame_handler’ from ‘now_in_us’
libinput-1.31.0/test/test-plugins-lua.c:563:17: call_function: calling ‘now_in_us’ from ‘lua_frame_handler’
libinput-1.31.0/test/test-plugins-lua.c:563:17: return_function: returning to ‘lua_frame_handler’ from ‘now_in_us’
libinput-1.31.0/test/test-plugins-lua.c:575:40: call_function: calling ‘safe_strdup’ from ‘lua_frame_handler’
libinput-1.31.0/test/test-plugins-lua.c:575:40: return_function: returning to ‘lua_frame_handler’ from ‘safe_strdup’
libinput-1.31.0/test/test-plugins-lua.c:576:39: release_memory: using NULL here
libinput-1.31.0/test/test-plugins-lua.c:576:36: danger: dereference of NULL ‘safe_strdup(*<unknown>) + i’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
libinput-1.31.0/test/test-plugins-lua.c:608:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-plugins-lua.c:595:1: enter_function: entry to ‘lua_device_info’
libinput-1.31.0/test/test-plugins-lua.c:597:37: call_function: calling ‘tmpdir_create’ from ‘lua_device_info’
libinput-1.31.0/test/test-plugins-lua.c:597:37: return_function: returning to ‘lua_device_info’ from ‘tmpdir_create’
libinput-1.31.0/test/test-plugins-lua.c:608:33: danger: dereference of NULL ‘tmpdir_create(0)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
libinput-1.31.0/test/test-plugins-lua.c:646:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-plugins-lua.c:629:1: enter_function: entry to ‘lua_set_absinfo’
libinput-1.31.0/test/test-plugins-lua.c:631:37: call_function: calling ‘tmpdir_create’ from ‘lua_set_absinfo’
libinput-1.31.0/test/test-plugins-lua.c:631:37: return_function: returning to ‘lua_set_absinfo’ from ‘tmpdir_create’
libinput-1.31.0/test/test-plugins-lua.c:646:33: danger: dereference of NULL ‘tmpdir_create(0)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
libinput-1.31.0/test/test-plugins-lua.c:731:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-plugins-lua.c:694:1: enter_function: entry to ‘lua_enable_disable_evdev_usage’
libinput-1.31.0/test/test-plugins-lua.c:696:37: call_function: calling ‘tmpdir_create’ from ‘lua_enable_disable_evdev_usage’
libinput-1.31.0/test/test-plugins-lua.c:696:37: return_function: returning to ‘lua_enable_disable_evdev_usage’ from ‘tmpdir_create’
libinput-1.31.0/test/test-plugins-lua.c:731:31: danger: dereference of NULL ‘tmpdir_create(0)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
libinput-1.31.0/test/test-plugins-lua.c:782:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-plugins-lua.c:769:1: enter_function: entry to ‘lua_udev_properties’
libinput-1.31.0/test/test-plugins-lua.c:771:37: call_function: calling ‘tmpdir_create’ from ‘lua_udev_properties’
libinput-1.31.0/test/test-plugins-lua.c:771:37: return_function: returning to ‘lua_udev_properties’ from ‘tmpdir_create’
libinput-1.31.0/test/test-plugins-lua.c:782:33: danger: dereference of NULL ‘tmpdir_create(0)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
libinput-1.31.0/test/test-plugins-lua.c:857:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-plugins-lua.c:827:1: enter_function: entry to ‘lua_append_prepend_frame’
libinput-1.31.0/test/test-plugins-lua.c:831:37: call_function: calling ‘tmpdir_create’ from ‘lua_append_prepend_frame’
libinput-1.31.0/test/test-plugins-lua.c:831:37: return_function: returning to ‘lua_append_prepend_frame’ from ‘tmpdir_create’
libinput-1.31.0/test/test-plugins-lua.c:832:32: call_function: calling ‘strdup_printf’ from ‘lua_append_prepend_frame’
libinput-1.31.0/test/test-plugins-lua.c:832:32: return_function: returning to ‘lua_append_prepend_frame’ from ‘strdup_printf’
libinput-1.31.0/test/test-plugins-lua.c:857:33: danger: dereference of NULL ‘tmpdir_create(0)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
libinput-1.31.0/test/test-plugins-lua.c:914:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-plugins-lua.c:894:1: enter_function: entry to ‘lua_ignore_unsupported_codes’
libinput-1.31.0/test/test-plugins-lua.c:896:37: call_function: calling ‘tmpdir_create’ from ‘lua_ignore_unsupported_codes’
libinput-1.31.0/test/test-plugins-lua.c:896:37: return_function: returning to ‘lua_ignore_unsupported_codes’ from ‘tmpdir_create’
libinput-1.31.0/test/test-plugins-lua.c:897:32: call_function: calling ‘strdup_printf’ from ‘lua_ignore_unsupported_codes’
libinput-1.31.0/test/test-plugins-lua.c:897:32: return_function: returning to ‘lua_ignore_unsupported_codes’ from ‘strdup_printf’
libinput-1.31.0/test/test-plugins-lua.c:914:33: danger: dereference of NULL ‘tmpdir_create(0)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
libinput-1.31.0/test/test-plugins-lua.c:959:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-plugins-lua.c:943:1: enter_function: entry to ‘lua_disable_button_debounce’
libinput-1.31.0/test/test-plugins-lua.c:946:37: call_function: calling ‘tmpdir_create’ from ‘lua_disable_button_debounce’
libinput-1.31.0/test/test-plugins-lua.c:946:37: return_function: returning to ‘lua_disable_button_debounce’ from ‘tmpdir_create’
libinput-1.31.0/test/test-plugins-lua.c:947:32: call_function: calling ‘strdup_printf’ from ‘lua_disable_button_debounce’
libinput-1.31.0/test/test-plugins-lua.c:947:32: return_function: returning to ‘lua_disable_button_debounce’ from ‘strdup_printf’
libinput-1.31.0/test/test-plugins-lua.c:959:33: danger: dereference of NULL ‘tmpdir_create(0)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
libinput-1.31.0/test/test-plugins-lua.c:1019:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-plugins-lua.c:1002:1: enter_function: entry to ‘lua_disable_touchpad_jump_detection’
libinput-1.31.0/test/test-plugins-lua.c:1005:37: call_function: calling ‘tmpdir_create’ from ‘lua_disable_touchpad_jump_detection’
libinput-1.31.0/test/test-plugins-lua.c:1005:37: return_function: returning to ‘lua_disable_touchpad_jump_detection’ from ‘tmpdir_create’
libinput-1.31.0/test/test-plugins-lua.c:1006:32: call_function: calling ‘strdup_printf’ from ‘lua_disable_touchpad_jump_detection’
libinput-1.31.0/test/test-plugins-lua.c:1006:32: return_function: returning to ‘lua_disable_touchpad_jump_detection’ from ‘strdup_printf’
libinput-1.31.0/test/test-plugins-lua.c:1019:33: danger: dereference of NULL ‘tmpdir_create(0)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
libinput-1.31.0/test/test-plugins-lua.c:1066:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-plugins-lua.c:1050:1: enter_function: entry to ‘lua_disable_wheel_debouncing’
libinput-1.31.0/test/test-plugins-lua.c:1053:37: call_function: calling ‘tmpdir_create’ from ‘lua_disable_wheel_debouncing’
libinput-1.31.0/test/test-plugins-lua.c:1053:37: return_function: returning to ‘lua_disable_wheel_debouncing’ from ‘tmpdir_create’
libinput-1.31.0/test/test-plugins-lua.c:1054:32: call_function: calling ‘strdup_printf’ from ‘lua_disable_wheel_debouncing’
libinput-1.31.0/test/test-plugins-lua.c:1054:32: return_function: returning to ‘lua_disable_wheel_debouncing’ from ‘strdup_printf’
libinput-1.31.0/test/test-plugins-lua.c:1066:33: danger: dereference of NULL ‘tmpdir_create(0)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
libinput-1.31.0/test/test-plugins-lua.c:1125:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-plugins-lua.c:1105:1: enter_function: entry to ‘lua_remove_plugin_on_timeout’
libinput-1.31.0/test/test-plugins-lua.c:1108:37: call_function: calling ‘tmpdir_create’ from ‘lua_remove_plugin_on_timeout’
libinput-1.31.0/test/test-plugins-lua.c:1108:37: return_function: returning to ‘lua_remove_plugin_on_timeout’ from ‘tmpdir_create’
libinput-1.31.0/test/test-plugins-lua.c:1109:32: call_function: calling ‘strdup_printf’ from ‘lua_remove_plugin_on_timeout’
libinput-1.31.0/test/test-plugins-lua.c:1109:32: return_function: returning to ‘lua_remove_plugin_on_timeout’ from ‘strdup_printf’
libinput-1.31.0/test/test-plugins-lua.c:1125:33: danger: dereference of NULL ‘tmpdir_create(0)’
Error: CPPCHECK_WARNING (CWE-476): [#def73]
libinput-1.31.0/test/test-quirks.c:66: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: GCC_ANALYZER_WARNING (CWE-688): [#def74]
libinput-1.31.0/test/test-quirks.c:66:26: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(strdup_printf("%s/testfile.quirks", &dirname), "w+")’ where non-null expected
libinput-1.31.0/test/test-quirks.c:1511:1: enter_function: entry to ‘quirks_ctx_ref’
libinput-1.31.0/test/test-quirks.c:1518:35: call_function: calling ‘data_dir_new’ from ‘quirks_ctx_ref’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
libinput-1.31.0/test/test-quirks.c:67:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(strdup_printf("%s/testfile.quirks", &dirname), "w+")’
libinput-1.31.0/test/test-quirks.c:1511:1: enter_function: entry to ‘quirks_ctx_ref’
libinput-1.31.0/test/test-quirks.c:1518:35: call_function: calling ‘data_dir_new’ from ‘quirks_ctx_ref’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
libinput-1.31.0/test/test-quirks.c:67:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.31.0/test/test-quirks.c:1511:1: enter_function: entry to ‘quirks_ctx_ref’
libinput-1.31.0/test/test-quirks.c:1518:35: call_function: calling ‘data_dir_new’ from ‘quirks_ctx_ref’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
libinput-1.31.0/test/test-quirks.c:67:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(strdup_printf("%s/testfile.quirks", &dirname), "w+")’
libinput-1.31.0/test/test-quirks.c:1511:1: enter_function: entry to ‘quirks_ctx_ref’
libinput-1.31.0/test/test-quirks.c:1518:35: call_function: calling ‘data_dir_new’ from ‘quirks_ctx_ref’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def78]
libinput-1.31.0/test/test-quirks.c:746:43: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libinput-1.31.0/test/test-quirks.c:737:1: enter_function: entry to ‘quirks_parse_name_invalid’
libinput-1.31.0/test/test-quirks.c:745:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-quirks.c:746:43: branch_true: ...to here
libinput-1.31.0/test/test-quirks.c:746:43: call_function: calling ‘data_dir_new’ from ‘quirks_parse_name_invalid’
libinput-1.31.0/test/test-quirks.c:746:43: return_function: returning to ‘quirks_parse_name_invalid’ from ‘data_dir_new’
libinput-1.31.0/test/test-quirks.c:746:38: call_function: inlined call to ‘data_dir_destroyp’ from ‘quirks_parse_name_invalid’
libinput-1.31.0/test/test-quirks.c:746:38: call_function: inlined call to ‘data_dir_destroyp’ from ‘quirks_parse_name_invalid’
libinput-1.31.0/test/test-quirks.c:745:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-quirks.c:746:43: branch_true: ...to here
libinput-1.31.0/test/test-quirks.c:746:43: danger: out-of-bounds read from byte 8 till byte 15 but ‘quirks_file’ ends at byte 8
Error: GCC_ANALYZER_WARNING (CWE-126): [#def79]
libinput-1.31.0/test/test-quirks.c:806:43: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libinput-1.31.0/test/test-quirks.c:797:1: enter_function: entry to ‘quirks_parse_uniq_invalid’
libinput-1.31.0/test/test-quirks.c:805:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-quirks.c:806:43: branch_true: ...to here
libinput-1.31.0/test/test-quirks.c:806:43: call_function: calling ‘data_dir_new’ from ‘quirks_parse_uniq_invalid’
libinput-1.31.0/test/test-quirks.c:806:43: return_function: returning to ‘quirks_parse_uniq_invalid’ from ‘data_dir_new’
libinput-1.31.0/test/test-quirks.c:806:38: call_function: inlined call to ‘data_dir_destroyp’ from ‘quirks_parse_uniq_invalid’
libinput-1.31.0/test/test-quirks.c:806:38: call_function: inlined call to ‘data_dir_destroyp’ from ‘quirks_parse_uniq_invalid’
libinput-1.31.0/test/test-quirks.c:805:9: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-quirks.c:806:43: branch_true: ...to here
libinput-1.31.0/test/test-quirks.c:806:43: danger: out-of-bounds read from byte 8 till byte 15 but ‘quirks_file’ ends at byte 8
Error: CPPCHECK_WARNING (CWE-457): [#def80]
libinput-1.31.0/test/test-tablet.c:7608: warning[uninitvar]: Uninitialized variables: tool.link, tool.serial, tool.tool_id, tool.type, tool.refcount, tool.user_data, tool.last_device, tool.pressure, tool.eraser_button, tool.config, tool.last_tablet_id
Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
libinput-1.31.0/test/test-utils.c:124:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-utils.c:118:1: enter_function: entry to ‘tmpdir_test’
libinput-1.31.0/test/test-utils.c:122:45: call_function: calling ‘tmpdir_create’ from ‘tmpdir_test’
libinput-1.31.0/test/test-utils.c:122:45: return_function: returning to ‘tmpdir_test’ from ‘tmpdir_create’
libinput-1.31.0/test/test-utils.c:124:43: danger: dereference of NULL ‘tmpdir_create(0)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def82]
libinput-1.31.0/test/test-utils.c:130:18: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libinput-1.31.0/test/test-utils.c:118:1: enter_function: entry to ‘tmpdir_test’
libinput-1.31.0/test/test-utils.c:122:45: call_function: calling ‘tmpdir_create’ from ‘tmpdir_test’
libinput-1.31.0/test/test-utils.c:122:45: return_function: returning to ‘tmpdir_test’ from ‘tmpdir_create’
libinput-1.31.0/test/test-utils.c:124:31: call_function: calling ‘safe_strdup’ from ‘tmpdir_test’
libinput-1.31.0/test/test-utils.c:124:31: return_function: returning to ‘tmpdir_test’ from ‘safe_strdup’
libinput-1.31.0/test/test-utils.c:126:39: call_function: calling ‘strdup_printf’ from ‘tmpdir_test’
libinput-1.31.0/test/test-utils.c:126:39: return_function: returning to ‘tmpdir_test’ from ‘strdup_printf’
libinput-1.31.0/test/test-utils.c:127:17: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:126:34: call_function: inlined call to ‘_free_ptr_’ from ‘tmpdir_test’
libinput-1.31.0/test/test-utils.c:122:36: call_function: inlined call to ‘tmpdir_destroyp’ from ‘tmpdir_test’
libinput-1.31.0/test/test-utils.c:122:36: call_function: inlined call to ‘tmpdir_destroyp’ from ‘tmpdir_test’
libinput-1.31.0/test/test-utils.c:130:18: danger: argument 1 (‘safe_strdup(*<unknown>.path)’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def83]
libinput-1.31.0/test/test-utils.c:138:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘strdup("/tmp/litest_find_files_test.XXXXXX")’ where non-null expected
libinput-1.31.0/test/test-utils.c:137:36: acquire_memory: this call could return NULL
libinput-1.31.0/test/test-utils.c:138:9: danger: argument 1 (‘strdup("/tmp/litest_find_files_test.XXXXXX")’) from [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: COMPILER_WARNING (CWE-252): [#def84]
libinput-1.31.0/test/test-utils.c: scope_hint: In function ‘find_files_test’
libinput-1.31.0/test/test-utils.c:138:9: warning[-Wunused-result]: ignoring return value of ‘mkdtemp’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
libinput-1.31.0/test/test-utils.c:1961:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.0/test/test-utils.c:1924:1: enter_function: entry to ‘double_array_from_string_test’
libinput-1.31.0/test/test-utils.c:1954:16: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:1956:33: branch_true: ...to here
libinput-1.31.0/test/test-utils.c:1956:33: call_function: calling ‘double_array_from_string’ from ‘double_array_from_string_test’
libinput-1.31.0/test/test-utils.c:1956:33: return_function: returning to ‘double_array_from_string_test’ from ‘double_array_from_string’
libinput-1.31.0/test/test-utils.c:1959:38: branch_true: following ‘true’ branch (when ‘idx < _a’)...
libinput-1.31.0/test/test-utils.c:1960:25: branch_true: ...to here
libinput-1.31.0/test/test-utils.c:1960:25: branch_true: following ‘true’ branch...
libinput-1.31.0/test/test-utils.c:1960:25: branch_true: ...to here
libinput-1.31.0/test/test-utils.c:1961:25: danger: dereference of NULL ‘double_array_from_string(*t.string, *t.delim, & len) + idx * 8’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
libinput-1.31.0/test/test-utils.c:2927:43: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libinput-1.31.0/test/test-utils.c:2906:1: enter_function: entry to ‘attribute_cleanup’
libinput-1.31.0/test/test-utils.c:2913:45: call_function: calling ‘zalloc’ from ‘attribute_cleanup’
libinput-1.31.0/test/test-utils.c:2913:45: return_function: returning to ‘attribute_cleanup’ from ‘zalloc’
libinput-1.31.0/test/test-utils.c:2917:43: call_function: calling ‘zalloc’ from ‘attribute_cleanup’
libinput-1.31.0/test/test-utils.c:2917:43: return_function: returning to ‘attribute_cleanup’ from ‘zalloc’
libinput-1.31.0/test/test-utils.c:2922:17: branch_false: following ‘false’ branch...
libinput-1.31.0/test/test-utils.c:2927:43: branch_false: ...to here
libinput-1.31.0/test/test-utils.c:2927:43: danger: leaks here
Error: COMPILER_WARNING (CWE-252): [#def87]
libinput-1.31.0/tools/libinput-record.c: scope_hint: In function ‘signalfd_dispatch’
libinput-1.31.0/tools/libinput-record.c:2128:15: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def88]
libinput-1.31.0/tools/libinput-record.c: scope_hint: In function ‘timefd_dispatch’
libinput-1.31.0/tools/libinput-record.c:2138:15: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
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-169.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 | libinput-1.31.0-1.fc44 |
| store-results-to | /tmp/tmpc6wirrp6/libinput-1.31.0-1.fc44.tar.xz |
| time-created | 2026-08-03 17:25:51 |
| time-finished | 2026-08-03 17:28:36 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpc6wirrp6/libinput-1.31.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpc6wirrp6/libinput-1.31.0-1.fc44.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |