libinput-1.29.2-1.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libinput-1.29.2/src/evdev-fallback.c:1387:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(56)’
libinput-1.29.2/src/evdev-fallback.c:1362:1: enter_function: entry to ‘fallback_lid_pair_keyboard’
libinput-1.29.2/src/evdev-fallback.c:1365:46: call_function: inlined call to ‘fallback_dispatch’ from ‘fallback_lid_pair_keyboard’
libinput-1.29.2/src/evdev-fallback.c:1369:14: branch_false: ...to here
libinput-1.29.2/src/evdev-fallback.c:1369:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-fallback.c:1370:14: branch_false: ...to here
libinput-1.29.2/src/evdev-fallback.c:1369:13: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-fallback.c:1373:13: branch_false: ...to here
libinput-1.29.2/src/evdev-fallback.c:1373:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-fallback.c:1376:9: branch_false: ...to here
libinput-1.29.2/src/evdev-fallback.c:1378:20: branch_false: following ‘false’ branch (when ‘count != 4’)...
libinput-1.29.2/src/evdev-fallback.c:1376:9: branch_false: ...to here
libinput-1.29.2/src/evdev-fallback.c:1385:15: call_function: calling ‘zalloc’ from ‘fallback_lid_pair_keyboard’
libinput-1.29.2/src/evdev-fallback.c:1385:15: return_function: returning to ‘fallback_lid_pair_keyboard’ from ‘zalloc’
libinput-1.29.2/src/evdev-fallback.c:1387:9: danger: ‘zalloc(56)’ leaks here; was allocated at [(18)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libinput-1.29.2/src/evdev-fallback.c:1652:25: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc((long unsigned int)libevdev_get_num_slots(*device.evdev) * 32)’
libinput-1.29.2/src/evdev-fallback.c:1625:1: enter_function: entry to ‘fallback_dispatch_init_slots’
libinput-1.29.2/src/evdev-fallback.c:1634:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-fallback.c:1635:14: branch_false: ...to here
libinput-1.29.2/src/evdev-fallback.c:1634:13: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-fallback.c:1636:14: branch_false: ...to here
libinput-1.29.2/src/evdev-fallback.c:1634:13: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-fallback.c:1642:14: branch_false: ...to here
libinput-1.29.2/src/evdev-fallback.c:1642:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-fallback.c:1645:44: branch_false: ...to here
libinput-1.29.2/src/evdev-fallback.c:1647:17: call_function: calling ‘zalloc’ from ‘fallback_dispatch_init_slots’
libinput-1.29.2/src/evdev-fallback.c:1647:17: return_function: returning to ‘fallback_dispatch_init_slots’ from ‘zalloc’
libinput-1.29.2/src/evdev-fallback.c:1649:24: branch_true: following ‘true’ branch...
libinput-1.29.2/src/evdev-fallback.c:1650:22: branch_true: ...to here
libinput-1.29.2/src/evdev-fallback.c:1652:25: danger: ‘zalloc((long unsigned int)libevdev_get_num_slots(*device.evdev) * 32)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libinput-1.29.2/src/evdev-fallback.c:1654:25: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc((long unsigned int)libevdev_get_num_slots(*device.evdev) * 32)’
libinput-1.29.2/src/evdev-fallback.c:1625:1: enter_function: entry to ‘fallback_dispatch_init_slots’
libinput-1.29.2/src/evdev-fallback.c:1634:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-fallback.c:1635:14: branch_false: ...to here
libinput-1.29.2/src/evdev-fallback.c:1634:13: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-fallback.c:1636:14: branch_false: ...to here
libinput-1.29.2/src/evdev-fallback.c:1634:13: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-fallback.c:1642:14: branch_false: ...to here
libinput-1.29.2/src/evdev-fallback.c:1642:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-fallback.c:1645:44: branch_false: ...to here
libinput-1.29.2/src/evdev-fallback.c:1647:17: call_function: calling ‘zalloc’ from ‘fallback_dispatch_init_slots’
libinput-1.29.2/src/evdev-fallback.c:1647:17: return_function: returning to ‘fallback_dispatch_init_slots’ from ‘zalloc’
libinput-1.29.2/src/evdev-fallback.c:1649:24: branch_true: following ‘true’ branch...
libinput-1.29.2/src/evdev-fallback.c:1650:22: branch_true: ...to here
libinput-1.29.2/src/evdev-fallback.c:1654:25: danger: ‘zalloc((long unsigned int)libevdev_get_num_slots(*device.evdev) * 32)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libinput-1.29.2/src/evdev-fallback.c:1754:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(736)’
libinput-1.29.2/src/evdev-fallback.c:1744:1: enter_function: entry to ‘fallback_dispatch_create’
libinput-1.29.2/src/evdev-fallback.c:1749:20: call_function: calling ‘zalloc’ from ‘fallback_dispatch_create’
libinput-1.29.2/src/evdev-fallback.c:1749:20: return_function: returning to ‘fallback_dispatch_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-fallback.c:1754:9: danger: ‘zalloc(736)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libinput-1.29.2/src/evdev-frame.h:478:28: warning[-Wanalyzer-malloc-leak]: leak of ‘double_tool_plugin_filter_frame(libinput_plugin, frame, 12)’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:317:1: enter_function: entry to ‘double_tool_plugin_evdev_frame’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:324:9: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:325:21: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:325:20: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:326:25: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:326:25: call_function: calling ‘double_tool_plugin_device_handle_frame’ from ‘double_tool_plugin_evdev_frame’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
libinput-1.29.2/src/evdev-frame.h:478:28: warning[-Wanalyzer-malloc-leak]: leak of ‘double_tool_plugin_filter_frame(libinput_plugin, frame, 20)’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:317:1: enter_function: entry to ‘double_tool_plugin_evdev_frame’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:324:9: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:325:21: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:325:20: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:326:25: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:326:25: call_function: calling ‘double_tool_plugin_device_handle_frame’ from ‘double_tool_plugin_evdev_frame’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
libinput-1.29.2/src/evdev-frame.h:478:28: warning[-Wanalyzer-malloc-leak]: leak of ‘double_tool_plugin_filter_frame(libinput_plugin, frame, 34)’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:317:1: enter_function: entry to ‘double_tool_plugin_evdev_frame’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:324:9: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:325:21: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:325:20: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:326:25: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:326:25: call_function: calling ‘double_tool_plugin_device_handle_frame’ from ‘double_tool_plugin_evdev_frame’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
libinput-1.29.2/src/evdev-frame.h:478:28: warning[-Wanalyzer-malloc-leak]: leak of ‘double_tool_plugin_filter_frame(libinput_plugin, frame, 66)’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:317:1: enter_function: entry to ‘double_tool_plugin_evdev_frame’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:324:9: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:325:21: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:325:20: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:326:25: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:326:25: call_function: calling ‘double_tool_plugin_device_handle_frame’ from ‘double_tool_plugin_evdev_frame’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libinput-1.29.2/src/evdev-frame.h:511:24: warning[-Wanalyzer-malloc-leak]: leak of ‘evdev_frame_new(*frame_in.count + 2)’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:519:1: enter_function: entry to ‘eraser_button_timer_func’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:523:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:530:9: branch_false: ...to here
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:530:9: call_function: calling ‘eraser_button_handle_state’ from ‘eraser_button_timer_func’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libinput-1.29.2/src/evdev-mt-touchpad-buttons.c:1197:25: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(48)’
libinput-1.29.2/src/evdev-mt-touchpad-buttons.c:1182:1: enter_function: entry to ‘tp_notify_clickpadbutton’
libinput-1.29.2/src/evdev-mt-touchpad-buttons.c:1189:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/evdev-mt-touchpad-buttons.c:1190:20: branch_true: ...to here
libinput-1.29.2/src/evdev-mt-touchpad-buttons.c:1190:20: branch_true: following ‘true’ branch (when ‘is_topbutton != 0’)...
libinput-1.29.2/src/evdev-mt-touchpad-buttons.c:1191:55: call_function: inlined call to ‘evdev_frame_new’ from ‘tp_notify_clickpadbutton’
libinput-1.29.2/src/evdev-mt-touchpad-buttons.c:1191:55: call_function: inlined call to ‘evdev_frame_new’ from ‘tp_notify_clickpadbutton’
libinput-1.29.2/src/evdev-mt-touchpad-buttons.c:1196:25: call_function: calling ‘evdev_frame_append_one’ from ‘tp_notify_clickpadbutton’
libinput-1.29.2/src/evdev-mt-touchpad-buttons.c:1196:25: return_function: returning to ‘tp_notify_clickpadbutton’ from ‘evdev_frame_append_one’
libinput-1.29.2/src/evdev-mt-touchpad-buttons.c:1197:25: danger: ‘zalloc(48)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
libinput-1.29.2/src/evdev-tablet-pad-leds.c:182:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(112)’
libinput-1.29.2/src/evdev-tablet-pad-leds.c:584:1: enter_function: entry to ‘pad_init_fallback_group’
libinput-1.29.2/src/evdev-tablet-pad-leds.c:588:17: call_function: calling ‘pad_group_new’ from ‘pad_init_fallback_group’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libinput-1.29.2/src/evdev-tablet-pad-leds.c:233:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(24)’
libinput-1.29.2/src/evdev-tablet-pad-leds.c:440:1: enter_function: entry to ‘pad_init_leds_from_libwacom’
libinput-1.29.2/src/evdev-tablet-pad-leds.c:446:12: branch_false: following ‘false’ branch (when ‘wacom’ is non-NULL)...
branch_false: ...to here
libinput-1.29.2/src/evdev-tablet-pad-leds.c:449:25: branch_true: following ‘true’ branch...
libinput-1.29.2/src/evdev-tablet-pad-leds.c:450:28: branch_true: ...to here
libinput-1.29.2/src/evdev-tablet-pad-leds.c:458:20: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-tablet-pad-leds.c:462:25: call_function: inlined call to ‘pad_button_target_mode’ from ‘pad_init_leds_from_libwacom’
libinput-1.29.2/src/evdev-tablet-pad-leds.c:502:20: branch_true: following ‘true’ branch (when ‘nmodes > 1’)...
libinput-1.29.2/src/evdev-tablet-pad-leds.c:504:33: branch_true: ...to here
libinput-1.29.2/src/evdev-tablet-pad-leds.c:504:33: call_function: inlined call to ‘pad_get_mode_group’ from ‘pad_init_leds_from_libwacom’
libinput-1.29.2/src/evdev-tablet-pad-leds.c:505:28: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-tablet-pad-leds.c:521:38: branch_false: ...to here
libinput-1.29.2/src/evdev-tablet-pad-leds.c:521:38: call_function: calling ‘pad_led_group_add_toggle_button’ from ‘pad_init_leds_from_libwacom’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libinput-1.29.2/src/evdev-tablet-pad.c:791:35: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(3432)’
libinput-1.29.2/src/evdev-tablet-pad.c:854:1: enter_function: entry to ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: call_function: calling ‘zalloc’ from ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: return_function: returning to ‘evdev_tablet_pad_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet-pad.c:860:13: call_function: calling ‘pad_init’ from ‘evdev_tablet_pad_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libinput-1.29.2/src/evdev-tablet-pad.c:794:17: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(3432)’
libinput-1.29.2/src/evdev-tablet-pad.c:854:1: enter_function: entry to ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: call_function: calling ‘zalloc’ from ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: return_function: returning to ‘evdev_tablet_pad_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet-pad.c:860:13: call_function: calling ‘pad_init’ from ‘evdev_tablet_pad_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
libinput-1.29.2/src/evdev-tablet-pad.c:798:25: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(3432)’
libinput-1.29.2/src/evdev-tablet-pad.c:854:1: enter_function: entry to ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: call_function: calling ‘zalloc’ from ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: return_function: returning to ‘evdev_tablet_pad_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet-pad.c:860:13: call_function: calling ‘pad_init’ from ‘evdev_tablet_pad_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libinput-1.29.2/src/evdev-tablet-pad.c:800:33: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(3432)’
libinput-1.29.2/src/evdev-tablet-pad.c:854:1: enter_function: entry to ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: call_function: calling ‘zalloc’ from ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: return_function: returning to ‘evdev_tablet_pad_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet-pad.c:860:13: call_function: calling ‘pad_init’ from ‘evdev_tablet_pad_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
libinput-1.29.2/src/evdev-tablet-pad.c:802:33: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(3432)’
libinput-1.29.2/src/evdev-tablet-pad.c:854:1: enter_function: entry to ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: call_function: calling ‘zalloc’ from ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: return_function: returning to ‘evdev_tablet_pad_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet-pad.c:860:13: call_function: calling ‘pad_init’ from ‘evdev_tablet_pad_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libinput-1.29.2/src/evdev-tablet-pad.c:803:33: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(3432)’
libinput-1.29.2/src/evdev-tablet-pad.c:854:1: enter_function: entry to ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: call_function: calling ‘zalloc’ from ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: return_function: returning to ‘evdev_tablet_pad_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet-pad.c:860:13: call_function: calling ‘pad_init’ from ‘evdev_tablet_pad_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
libinput-1.29.2/src/evdev-tablet-pad.c:807:25: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(3432)’
libinput-1.29.2/src/evdev-tablet-pad.c:854:1: enter_function: entry to ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: call_function: calling ‘zalloc’ from ‘evdev_tablet_pad_create’
libinput-1.29.2/src/evdev-tablet-pad.c:858:15: return_function: returning to ‘evdev_tablet_pad_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet-pad.c:860:13: call_function: calling ‘pad_init’ from ‘evdev_tablet_pad_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
libinput-1.29.2/src/evdev-tablet.c:1164:14: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(368)’
libinput-1.29.2/src/evdev-tablet.c:1396:1: enter_function: entry to ‘tablet_new_tool’
libinput-1.29.2/src/evdev-tablet.c:1401:45: call_function: calling ‘zalloc’ from ‘tablet_new_tool’
libinput-1.29.2/src/evdev-tablet.c:1401:45: return_function: returning to ‘tablet_new_tool’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet.c:1409:12: branch_false: following ‘false’ branch (when ‘db’ is NULL)...
libinput-1.29.2/src/evdev-tablet.c:1414:9: branch_false: ...to here
libinput-1.29.2/src/evdev-tablet.c:1447:9: call_function: calling ‘tool_init_pressure_thresholds’ from ‘tablet_new_tool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
libinput-1.29.2/src/evdev-tablet.c:1174:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(368)’
libinput-1.29.2/src/evdev-tablet.c:1396:1: enter_function: entry to ‘tablet_new_tool’
libinput-1.29.2/src/evdev-tablet.c:1401:45: call_function: calling ‘zalloc’ from ‘tablet_new_tool’
libinput-1.29.2/src/evdev-tablet.c:1401:45: return_function: returning to ‘tablet_new_tool’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet.c:1409:12: branch_false: following ‘false’ branch (when ‘db’ is NULL)...
libinput-1.29.2/src/evdev-tablet.c:1414:9: branch_false: ...to here
libinput-1.29.2/src/evdev-tablet.c:1447:9: call_function: calling ‘tool_init_pressure_thresholds’ from ‘tablet_new_tool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
libinput-1.29.2/src/evdev-tablet.c:1192:20: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(368)’
libinput-1.29.2/src/evdev-tablet.c:1396:1: enter_function: entry to ‘tablet_new_tool’
libinput-1.29.2/src/evdev-tablet.c:1401:45: call_function: calling ‘zalloc’ from ‘tablet_new_tool’
libinput-1.29.2/src/evdev-tablet.c:1401:45: return_function: returning to ‘tablet_new_tool’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet.c:1409:12: branch_false: following ‘false’ branch (when ‘db’ is NULL)...
libinput-1.29.2/src/evdev-tablet.c:1414:9: branch_false: ...to here
libinput-1.29.2/src/evdev-tablet.c:1447:9: call_function: calling ‘tool_init_pressure_thresholds’ from ‘tablet_new_tool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libinput-1.29.2/src/evdev-tablet.c:1198:20: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(368)’
libinput-1.29.2/src/evdev-tablet.c:1396:1: enter_function: entry to ‘tablet_new_tool’
libinput-1.29.2/src/evdev-tablet.c:1401:45: call_function: calling ‘zalloc’ from ‘tablet_new_tool’
libinput-1.29.2/src/evdev-tablet.c:1401:45: return_function: returning to ‘tablet_new_tool’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet.c:1409:12: branch_false: following ‘false’ branch (when ‘db’ is NULL)...
libinput-1.29.2/src/evdev-tablet.c:1414:9: branch_false: ...to here
libinput-1.29.2/src/evdev-tablet.c:1447:9: call_function: calling ‘tool_init_pressure_thresholds’ from ‘tablet_new_tool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
libinput-1.29.2/src/evdev-tablet.c:1410:21: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(368)’
libinput-1.29.2/src/evdev-tablet.c:1396:1: enter_function: entry to ‘tablet_new_tool’
libinput-1.29.2/src/evdev-tablet.c:1401:45: call_function: calling ‘zalloc’ from ‘tablet_new_tool’
libinput-1.29.2/src/evdev-tablet.c:1401:45: return_function: returning to ‘tablet_new_tool’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet.c:1409:12: branch_true: following ‘true’ branch (when ‘db’ is non-NULL)...
libinput-1.29.2/src/evdev-tablet.c:1410:21: branch_true: ...to here
libinput-1.29.2/src/evdev-tablet.c:1410:21: danger: ‘zalloc(368)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libinput-1.29.2/src/evdev-tablet.c:2947:35: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(1168)’
libinput-1.29.2/src/evdev-tablet.c:3031:1: enter_function: entry to ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: call_function: calling ‘zalloc’ from ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: return_function: returning to ‘evdev_tablet_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet.c:3040:13: call_function: calling ‘tablet_init’ from ‘evdev_tablet_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libinput-1.29.2/src/evdev-tablet.c:2950:17: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(1168)’
libinput-1.29.2/src/evdev-tablet.c:3031:1: enter_function: entry to ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: call_function: calling ‘zalloc’ from ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: return_function: returning to ‘evdev_tablet_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet.c:3040:13: call_function: calling ‘tablet_init’ from ‘evdev_tablet_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
libinput-1.29.2/src/evdev-tablet.c:2954:25: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(1168)’
libinput-1.29.2/src/evdev-tablet.c:3031:1: enter_function: entry to ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: call_function: calling ‘zalloc’ from ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: return_function: returning to ‘evdev_tablet_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet.c:3040:13: call_function: calling ‘tablet_init’ from ‘evdev_tablet_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libinput-1.29.2/src/evdev-tablet.c:2956:33: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(1168)’
libinput-1.29.2/src/evdev-tablet.c:3031:1: enter_function: entry to ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: call_function: calling ‘zalloc’ from ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: return_function: returning to ‘evdev_tablet_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet.c:3040:13: call_function: calling ‘tablet_init’ from ‘evdev_tablet_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libinput-1.29.2/src/evdev-tablet.c:2958:33: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(1168)’
libinput-1.29.2/src/evdev-tablet.c:3031:1: enter_function: entry to ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: call_function: calling ‘zalloc’ from ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: return_function: returning to ‘evdev_tablet_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet.c:3040:13: call_function: calling ‘tablet_init’ from ‘evdev_tablet_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libinput-1.29.2/src/evdev-tablet.c:2959:33: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(1168)’
libinput-1.29.2/src/evdev-tablet.c:3031:1: enter_function: entry to ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: call_function: calling ‘zalloc’ from ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: return_function: returning to ‘evdev_tablet_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet.c:3040:13: call_function: calling ‘tablet_init’ from ‘evdev_tablet_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libinput-1.29.2/src/evdev-tablet.c:2963:25: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(1168)’
libinput-1.29.2/src/evdev-tablet.c:3031:1: enter_function: entry to ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: call_function: calling ‘zalloc’ from ‘evdev_tablet_create’
libinput-1.29.2/src/evdev-tablet.c:3038:18: return_function: returning to ‘evdev_tablet_create’ from ‘zalloc’
libinput-1.29.2/src/evdev-tablet.c:3040:13: call_function: calling ‘tablet_init’ from ‘evdev_tablet_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libinput-1.29.2/src/evdev-totem.c:105:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(368)’
libinput-1.29.2/src/evdev-totem.c:78:1: enter_function: entry to ‘totem_new_tool’
libinput-1.29.2/src/evdev-totem.c:83:16: call_function: calling ‘zalloc’ from ‘totem_new_tool’
libinput-1.29.2/src/evdev-totem.c:83:16: return_function: returning to ‘totem_new_tool’ from ‘zalloc’
libinput-1.29.2/src/evdev-totem.c:105:9: danger: ‘zalloc(368)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libinput-1.29.2/src/evdev.c:999:22: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(2080)’
libinput-1.29.2/src/evdev.c:991:1: enter_function: entry to ‘evdev_sync_device’
libinput-1.29.2/src/evdev.c:996:39: call_function: inlined call to ‘evdev_frame_new’ from ‘evdev_sync_device’
libinput-1.29.2/src/evdev.c:996:39: call_function: inlined call to ‘evdev_frame_new’ from ‘evdev_sync_device’
libinput-1.29.2/src/evdev.c:1000:20: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev.c:1004:17: branch_false: ...to here
libinput-1.29.2/src/evdev.c:1004:17: call_function: calling ‘evdev_frame_append_input_event’ from ‘evdev_sync_device’
libinput-1.29.2/src/evdev.c:1004:17: return_function: returning to ‘evdev_sync_device’ from ‘evdev_frame_append_input_event’
libinput-1.29.2/src/evdev.c:1007:9: call_function: inlined call to ‘evdev_device_dispatch_frame’ from ‘evdev_sync_device’
libinput-1.29.2/src/evdev.c:996:31: call_function: inlined call to ‘evdev_frame_unrefp’ from ‘evdev_sync_device’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def34]
libinput-1.29.2/src/evdev.h:765:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:573:1: enter_function: entry to ‘wheel_plugin_evdev_frame’
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:581:9: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:582:21: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:582:20: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:583:25: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:583:25: call_function: calling ‘wheel_handle_frame’ from ‘wheel_plugin_evdev_frame’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def35]
libinput-1.29.2/src/evdev.h:803:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:573:1: enter_function: entry to ‘wheel_plugin_evdev_frame’
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:581:9: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:582:21: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:582:20: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:583:25: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:583:25: call_function: calling ‘wheel_handle_frame’ from ‘wheel_plugin_evdev_frame’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
libinput-1.29.2/src/filter-custom.c:428:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.29.2/src/filter-custom.c:409:1: enter_function: entry to ‘create_custom_accelerator_filter’
libinput-1.29.2/src/filter-custom.c:411:40: call_function: calling ‘zalloc’ from ‘create_custom_accelerator_filter’
libinput-1.29.2/src/filter-custom.c:411:40: return_function: returning to ‘create_custom_accelerator_filter’ from ‘zalloc’
libinput-1.29.2/src/filter-custom.c:419:29: call_function: calling ‘create_custom_accel_function’ from ‘create_custom_accelerator_filter’
libinput-1.29.2/src/filter-custom.c:419:29: return_function: returning to ‘create_custom_accelerator_filter’ from ‘create_custom_accel_function’
libinput-1.29.2/src/filter-custom.c:428:16: 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): [#def37]
libinput-1.29.2/src/filter-flat.c:131:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.29.2/src/filter-flat.c:123:1: enter_function: entry to ‘create_pointer_accelerator_filter_flat’
libinput-1.29.2/src/filter-flat.c:127:18: call_function: calling ‘zalloc’ from ‘create_pointer_accelerator_filter_flat’
libinput-1.29.2/src/filter-flat.c:127:18: return_function: returning to ‘create_pointer_accelerator_filter_flat’ from ‘zalloc’
libinput-1.29.2/src/filter-flat.c:131: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): [#def38]
libinput-1.29.2/src/filter-low-dpi.c:223:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/filter-low-dpi.c:216:1: enter_function: entry to ‘create_default_filter’
libinput-1.29.2/src/filter-low-dpi.c:220:18: call_function: calling ‘zalloc’ from ‘create_default_filter’
libinput-1.29.2/src/filter-low-dpi.c:220:18: return_function: returning to ‘create_default_filter’ from ‘zalloc’
libinput-1.29.2/src/filter-low-dpi.c:223:9: danger: ‘zalloc(104)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
libinput-1.29.2/src/filter-mouse.c:278:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/filter-mouse.c:271:1: enter_function: entry to ‘create_default_filter’
libinput-1.29.2/src/filter-mouse.c:275:18: call_function: calling ‘zalloc’ from ‘create_default_filter’
libinput-1.29.2/src/filter-mouse.c:275:18: return_function: returning to ‘create_default_filter’ from ‘zalloc’
libinput-1.29.2/src/filter-mouse.c:278:9: danger: ‘zalloc(104)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
libinput-1.29.2/src/filter-touchpad-flat.c:130:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.29.2/src/filter-touchpad-flat.c:122:1: enter_function: entry to ‘create_pointer_accelerator_filter_touchpad_flat’
libinput-1.29.2/src/filter-touchpad-flat.c:126:18: call_function: calling ‘zalloc’ from ‘create_pointer_accelerator_filter_touchpad_flat’
libinput-1.29.2/src/filter-touchpad-flat.c:126:18: return_function: returning to ‘create_pointer_accelerator_filter_touchpad_flat’ from ‘zalloc’
libinput-1.29.2/src/filter-touchpad-flat.c:130: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): [#def41]
libinput-1.29.2/src/filter-touchpad-x230.c:308:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/filter-touchpad-x230.c:299:1: enter_function: entry to ‘create_pointer_accelerator_filter_lenovo_x230’
libinput-1.29.2/src/filter-touchpad-x230.c:303:18: call_function: calling ‘zalloc’ from ‘create_pointer_accelerator_filter_lenovo_x230’
libinput-1.29.2/src/filter-touchpad-x230.c:303:18: return_function: returning to ‘create_pointer_accelerator_filter_lenovo_x230’ from ‘zalloc’
libinput-1.29.2/src/filter-touchpad-x230.c:308:9: danger: ‘zalloc(104)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
libinput-1.29.2/src/filter-touchpad.c:292:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/filter-touchpad.c:282:1: enter_function: entry to ‘create_pointer_accelerator_filter_touchpad’
libinput-1.29.2/src/filter-touchpad.c:289:18: call_function: calling ‘zalloc’ from ‘create_pointer_accelerator_filter_touchpad’
libinput-1.29.2/src/filter-touchpad.c:289:18: return_function: returning to ‘create_pointer_accelerator_filter_touchpad’ from ‘zalloc’
libinput-1.29.2/src/filter-touchpad.c:292:9: danger: ‘zalloc(104)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
libinput-1.29.2/src/filter-trackpoint-flat.c:147:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.29.2/src/filter-trackpoint-flat.c:139:1: enter_function: entry to ‘create_pointer_accelerator_filter_trackpoint_flat’
libinput-1.29.2/src/filter-trackpoint-flat.c:143:18: call_function: calling ‘zalloc’ from ‘create_pointer_accelerator_filter_trackpoint_flat’
libinput-1.29.2/src/filter-trackpoint-flat.c:143:18: return_function: returning to ‘create_pointer_accelerator_filter_trackpoint_flat’ from ‘zalloc’
libinput-1.29.2/src/filter-trackpoint-flat.c:147: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): [#def44]
libinput-1.29.2/src/filter-trackpoint.c:206:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(64)’
libinput-1.29.2/src/filter-trackpoint.c:181:1: enter_function: entry to ‘create_pointer_accelerator_filter_trackpoint’
libinput-1.29.2/src/filter-trackpoint.c:186:9: branch_true: following ‘true’ branch (when ‘multiplier > 0.0’)...
libinput-1.29.2/src/filter-trackpoint.c:200:18: branch_true: ...to here
libinput-1.29.2/src/filter-trackpoint.c:200:18: call_function: calling ‘zalloc’ from ‘create_pointer_accelerator_filter_trackpoint’
libinput-1.29.2/src/filter-trackpoint.c:200:18: return_function: returning to ‘create_pointer_accelerator_filter_trackpoint’ from ‘zalloc’
libinput-1.29.2/src/filter-trackpoint.c:206:9: danger: ‘zalloc(64)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
libinput-1.29.2/src/libinput-plugin-button-debounce.c:757:22: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(72)’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:728:1: enter_function: entry to ‘debounce_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:731:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/libinput-plugin-button-debounce.c:734:13: branch_false: ...to here
libinput-1.29.2/src/libinput-plugin-button-debounce.c:734:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/libinput-plugin-button-debounce.c:737:45: branch_false: ...to here
libinput-1.29.2/src/libinput-plugin-button-debounce.c:756:36: call_function: calling ‘zalloc’ from ‘debounce_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:756:36: return_function: returning to ‘debounce_plugin_device_added’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:757:22: danger: ‘zalloc(72)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
libinput-1.29.2/src/libinput-plugin-button-debounce.c:762:17: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(72)’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:728:1: enter_function: entry to ‘debounce_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:731:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/libinput-plugin-button-debounce.c:734:13: branch_false: ...to here
libinput-1.29.2/src/libinput-plugin-button-debounce.c:734:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/libinput-plugin-button-debounce.c:737:45: branch_false: ...to here
libinput-1.29.2/src/libinput-plugin-button-debounce.c:756:36: call_function: calling ‘zalloc’ from ‘debounce_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:756:36: return_function: returning to ‘debounce_plugin_device_added’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:762:17: danger: ‘zalloc(72)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
libinput-1.29.2/src/libinput-plugin-button-debounce.c:805:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(24)’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:802:1: enter_function: entry to ‘libinput_debounce_plugin’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:804:38: call_function: calling ‘zalloc’ from ‘libinput_debounce_plugin’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:804:38: return_function: returning to ‘libinput_debounce_plugin’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:805:9: danger: ‘zalloc(24)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:603:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(24)’
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:600:1: enter_function: entry to ‘libinput_mouse_plugin_wheel’
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:602:38: call_function: calling ‘zalloc’ from ‘libinput_mouse_plugin_wheel’
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:602:38: return_function: returning to ‘libinput_mouse_plugin_wheel’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-mouse-wheel.c:603:9: danger: ‘zalloc(24)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
libinput-1.29.2/src/libinput-plugin-mtdev.c:57:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.29.2/src/libinput-plugin-mtdev.c:145:1: enter_function: entry to ‘mtdev_plugin_device_new’
libinput-1.29.2/src/libinput-plugin-mtdev.c:150:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/libinput-plugin-mtdev.c:153:9: branch_false: ...to here
libinput-1.29.2/src/libinput-plugin-mtdev.c:156:40: call_function: calling ‘zalloc’ from ‘mtdev_plugin_device_new’
libinput-1.29.2/src/libinput-plugin-mtdev.c:156:40: return_function: returning to ‘mtdev_plugin_device_new’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-mtdev.c:160:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin-mtdev.c:161:17: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin-mtdev.c:156:35: call_function: inlined call to ‘plugin_device_destroyp’ from ‘mtdev_plugin_device_new’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
libinput-1.29.2/src/libinput-plugin-mtdev.c:57:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘device’
libinput-1.29.2/src/libinput-plugin-mtdev.c:227:1: enter_function: entry to ‘libinput_mtdev_plugin’
libinput-1.29.2/src/libinput-plugin-mtdev.c:229:42: call_function: calling ‘zalloc’ from ‘libinput_mtdev_plugin’
libinput-1.29.2/src/libinput-plugin-mtdev.c:229:42: return_function: returning to ‘libinput_mtdev_plugin’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-mtdev.c:229:33: call_function: inlined call to ‘plugin_data_destroyp’ from ‘libinput_mtdev_plugin’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:72:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘device’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:374:1: enter_function: entry to ‘libinput_tablet_plugin_double_tool’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:376:42: call_function: calling ‘zalloc’ from ‘libinput_tablet_plugin_double_tool’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:376:42: return_function: returning to ‘libinput_tablet_plugin_double_tool’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:376:33: call_function: inlined call to ‘plugin_data_destroyp’ from ‘libinput_tablet_plugin_double_tool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:345:22: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:335:1: enter_function: entry to ‘double_tool_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:344:36: call_function: calling ‘zalloc’ from ‘double_tool_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:344:36: return_function: returning to ‘double_tool_plugin_device_added’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:345:22: danger: ‘zalloc(40)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:346:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:335:1: enter_function: entry to ‘double_tool_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:344:36: call_function: calling ‘zalloc’ from ‘double_tool_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:344:36: return_function: returning to ‘double_tool_plugin_device_added’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-tablet-double-tool.c:346:9: danger: ‘zalloc(40)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:110:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘device’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:600:1: enter_function: entry to ‘libinput_tablet_plugin_eraser_button’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:605:42: call_function: calling ‘zalloc’ from ‘libinput_tablet_plugin_eraser_button’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:605:42: return_function: returning to ‘libinput_tablet_plugin_eraser_button’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:605:33: call_function: inlined call to ‘plugin_data_destroyp’ from ‘libinput_tablet_plugin_eraser_button’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:547:22: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(72)’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:537:1: enter_function: entry to ‘eraser_button_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:546:36: call_function: calling ‘zalloc’ from ‘eraser_button_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:546:36: return_function: returning to ‘eraser_button_plugin_device_added’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:547:22: danger: ‘zalloc(72)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:550:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:537:1: enter_function: entry to ‘eraser_button_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:546:36: call_function: calling ‘zalloc’ from ‘eraser_button_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:546:36: return_function: returning to ‘eraser_button_plugin_device_added’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:549:26: call_function: inlined call to ‘evdev_frame_new’ from ‘eraser_button_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:549:26: call_function: inlined call to ‘evdev_frame_new’ from ‘eraser_button_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:550:21: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:550:21: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(72)’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:537:1: enter_function: entry to ‘eraser_button_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:546:36: call_function: calling ‘zalloc’ from ‘eraser_button_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:546:36: return_function: returning to ‘eraser_button_plugin_device_added’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:549:26: call_function: inlined call to ‘evdev_frame_new’ from ‘eraser_button_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:549:26: call_function: inlined call to ‘evdev_frame_new’ from ‘eraser_button_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-eraser-button.c:550:21: danger: ‘zalloc(72)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:66:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘device’
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:245:1: enter_function: entry to ‘libinput_tablet_plugin_forced_tool’
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:247:42: call_function: calling ‘zalloc’ from ‘libinput_tablet_plugin_forced_tool’
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:247:42: return_function: returning to ‘libinput_tablet_plugin_forced_tool’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:247:33: call_function: inlined call to ‘plugin_data_destroyp’ from ‘libinput_tablet_plugin_forced_tool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:216:22: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:206:1: enter_function: entry to ‘forced_tool_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:215:36: call_function: calling ‘zalloc’ from ‘forced_tool_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:215:36: return_function: returning to ‘forced_tool_plugin_device_added’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:216:22: danger: ‘zalloc(32)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:217:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:206:1: enter_function: entry to ‘forced_tool_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:215:36: call_function: calling ‘zalloc’ from ‘forced_tool_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:215:36: return_function: returning to ‘forced_tool_plugin_device_added’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-tablet-forced-tool.c:217:9: danger: ‘zalloc(32)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:255:22: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(64)’
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:245:1: enter_function: entry to ‘proximity_timer_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:254:36: call_function: calling ‘zalloc’ from ‘proximity_timer_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:254:36: return_function: returning to ‘proximity_timer_plugin_device_added’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:255:22: danger: ‘zalloc(64)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:258:17: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(64)’
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:245:1: enter_function: entry to ‘proximity_timer_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:254:36: call_function: calling ‘zalloc’ from ‘proximity_timer_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:254:36: return_function: returning to ‘proximity_timer_plugin_device_added’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:258:17: danger: ‘zalloc(64)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:301:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(24)’
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:298:1: enter_function: entry to ‘libinput_tablet_plugin_proximity_timer’
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:300:38: call_function: calling ‘zalloc’ from ‘libinput_tablet_plugin_proximity_timer’
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:300:38: return_function: returning to ‘libinput_tablet_plugin_proximity_timer’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-tablet-proximity-timer.c:301:9: danger: ‘zalloc(24)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
libinput-1.29.2/src/libinput-plugin.c:218:25: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.29.2/src/libinput-plugin.c:559:1: enter_function: entry to ‘plugin_system_notify_evdev_frame’
libinput-1.29.2/src/libinput-plugin.c:572:49: call_function: calling ‘plugin_queued_event_new’ from ‘plugin_system_notify_evdev_frame’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
libinput-1.29.2/src/libinput-plugin.c:488:17: warning[-Wanalyzer-malloc-leak]: leak of ‘plugin_queued_event_new(frame, device)’
libinput-1.29.2/src/libinput-plugin.c:466:1: enter_function: entry to ‘libinput_plugin_process_frame’
libinput-1.29.2/src/libinput-plugin.c:485:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput-plugin.c:487:25: branch_true: ...to here
libinput-1.29.2/src/libinput-plugin.c:487:25: call_function: calling ‘plugin_queued_event_new’ from ‘libinput_plugin_process_frame’
libinput-1.29.2/src/libinput-plugin.c:487:25: return_function: returning to ‘libinput_plugin_process_frame’ from ‘plugin_queued_event_new’
libinput-1.29.2/src/libinput-plugin.c:488:17: danger: ‘plugin_queued_event_new(frame, device)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
libinput-1.29.2/src/libinput-plugin.c:575:9: warning[-Wanalyzer-malloc-leak]: leak of ‘plugin_queued_event_new(frame, device)’
libinput-1.29.2/src/libinput-plugin.c:559:1: enter_function: entry to ‘plugin_system_notify_evdev_frame’
libinput-1.29.2/src/libinput-plugin.c:572:49: call_function: calling ‘plugin_queued_event_new’ from ‘plugin_system_notify_evdev_frame’
libinput-1.29.2/src/libinput-plugin.c:572:49: return_function: returning to ‘plugin_system_notify_evdev_frame’ from ‘plugin_queued_event_new’
libinput-1.29.2/src/libinput-plugin.c:575:9: danger: ‘plugin_queued_event_new(frame, device)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
libinput-1.29.2/src/libinput-plugin.c:707:39: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/libinput-plugin.c:698:1: enter_function: entry to ‘libinput_plugin_timer_new’
libinput-1.29.2/src/libinput-plugin.c:705:47: call_function: calling ‘zalloc’ from ‘libinput_plugin_timer_new’
libinput-1.29.2/src/libinput-plugin.c:705:47: return_function: returning to ‘libinput_plugin_timer_new’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin.c:707:39: call_function: calling ‘strdup_printf’ from ‘libinput_plugin_timer_new’
libinput-1.29.2/src/libinput-plugin.c:707:39: return_function: returning to ‘libinput_plugin_timer_new’ from ‘strdup_printf’
libinput-1.29.2/src/libinput-plugin.c:707:39: danger: ‘zalloc(104)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
libinput-1.29.2/src/libinput-util.h:76:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/tools/shared.c:695:1: enter_function: entry to ‘find_device’
libinput-1.29.2/tools/shared.c:698:12: branch_false: following ‘false’ branch...
libinput-1.29.2/tools/shared.c:701:38: branch_false: ...to here
libinput-1.29.2/tools/shared.c:706:9: branch_true: following ‘true’ branch (when ‘entry’ is non-NULL)...
libinput-1.29.2/tools/shared.c:707:36: branch_true: ...to here
libinput-1.29.2/tools/shared.c:713:22: call_function: calling ‘strstartswith’ from ‘find_device’
libinput-1.29.2/tools/shared.c:713:22: return_function: returning to ‘find_device’ from ‘strstartswith’
libinput-1.29.2/tools/shared.c:719:33: call_function: calling ‘safe_strdup’ from ‘find_device’
libinput-1.29.2/tools/shared.c:719:33: return_function: returning to ‘find_device’ from ‘safe_strdup’
libinput-1.29.2/tools/shared.c:720:28: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/shared.c:708:39: call_function: inlined call to ‘udev_device_unrefp’ from ‘find_device’
libinput-1.29.2/tools/shared.c:697:24: call_function: inlined call to ‘udev_unrefp’ from ‘find_device’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
libinput-1.29.2/src/libinput-util.h:77:1: warning[-Wanalyzer-malloc-leak]: leak of ‘safe_strdup(udev_device_get_devnode(udev_device_new_from_syspath(udev_new(), udev_list_entry_get_name(entry))))’
libinput-1.29.2/tools/shared.c:695:1: enter_function: entry to ‘find_device’
libinput-1.29.2/tools/shared.c:698:12: branch_false: following ‘false’ branch...
libinput-1.29.2/tools/shared.c:701:38: branch_false: ...to here
libinput-1.29.2/tools/shared.c:706:9: branch_true: following ‘true’ branch (when ‘entry’ is non-NULL)...
libinput-1.29.2/tools/shared.c:707:36: branch_true: ...to here
libinput-1.29.2/tools/shared.c:713:22: call_function: calling ‘strstartswith’ from ‘find_device’
libinput-1.29.2/tools/shared.c:713:22: return_function: returning to ‘find_device’ from ‘strstartswith’
libinput-1.29.2/tools/shared.c:719:33: call_function: calling ‘safe_strdup’ from ‘find_device’
libinput-1.29.2/tools/shared.c:719:33: return_function: returning to ‘find_device’ from ‘safe_strdup’
libinput-1.29.2/tools/shared.c:720:28: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/shared.c:708:39: call_function: inlined call to ‘udev_device_unrefp’ from ‘find_device’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def70]
libinput-1.29.2/src/libinput-util.h:77:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘libinput_device_get_udev_device(*<unknown>.libinput_device)’
libinput-1.29.2/test/test-quirks.c:1382:31: call_function: inlined call to ‘udev_device_unrefp’ from ‘quirks_model_override’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
libinput-1.29.2/src/libinput-util.h:78:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/tools/shared.c:695:1: enter_function: entry to ‘find_device’
libinput-1.29.2/tools/shared.c:698:12: branch_false: following ‘false’ branch...
libinput-1.29.2/tools/shared.c:701:38: branch_false: ...to here
libinput-1.29.2/tools/shared.c:706:9: branch_true: following ‘true’ branch (when ‘entry’ is non-NULL)...
libinput-1.29.2/tools/shared.c:707:36: branch_true: ...to here
libinput-1.29.2/tools/shared.c:713:22: call_function: calling ‘strstartswith’ from ‘find_device’
libinput-1.29.2/tools/shared.c:713:22: return_function: returning to ‘find_device’ from ‘strstartswith’
libinput-1.29.2/tools/shared.c:719:33: call_function: calling ‘safe_strdup’ from ‘find_device’
libinput-1.29.2/tools/shared.c:719:33: return_function: returning to ‘find_device’ from ‘safe_strdup’
libinput-1.29.2/tools/shared.c:720:28: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/shared.c:708:39: call_function: inlined call to ‘udev_device_unrefp’ from ‘find_device’
libinput-1.29.2/tools/shared.c:701:34: call_function: inlined call to ‘udev_enumerate_unrefp’ from ‘find_device’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def72]
libinput-1.29.2/src/libinput-util.h:82:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘evdev’
libinput-1.29.2/test/test-switch.c:708:27: call_function: inlined call to ‘libevdev_freep’ from ‘lid_update_hw_on_key’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def73]
libinput-1.29.2/src/libinput-util.h:88:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘libinput_get_event(li)’
libinput-1.29.2/test/test-pointer.c:888:36: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/test-pointer.c:889:25: branch_true: ...to here
libinput-1.29.2/test/test-pointer.c:896:36: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/test-pointer.c:897:25: branch_true: ...to here
libinput-1.29.2/test/test-pointer.c:903:52: call_function: inlined call to ‘libinput_event_destroyp’ from ‘pointer_scroll_wheel_hires_disabled’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def74]
libinput-1.29.2/src/libinput.c:310:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libinput-1.29.2/src/libinput.c:5157:1: enter_function: entry to ‘libinput_libwacom_ref’
libinput-1.29.2/src/libinput.c:5160:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:5161:22: branch_true: ...to here
libinput-1.29.2/src/libinput.c:5162:20: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:5163:25: branch_true: ...to here
libinput-1.29.2/src/libinput.c:5163:25: call_function: calling ‘log_msg’ from ‘libinput_libwacom_ref’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
libinput-1.29.2/src/libinput.c:2314:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(16)’
libinput-1.29.2/src/libinput.c:2364:1: enter_function: entry to ‘notify_removed_device’
libinput-1.29.2/src/libinput.c:2371:32: call_function: calling ‘zalloc’ from ‘notify_removed_device’
libinput-1.29.2/src/libinput.c:2371:32: return_function: returning to ‘notify_removed_device’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2373:9: call_function: inlined call to ‘post_base_event’ from ‘notify_removed_device’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
libinput-1.29.2/src/libinput.c:2447:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.29.2/src/libinput.c:2425:1: enter_function: entry to ‘keyboard_notify_key’
libinput-1.29.2/src/libinput.c:2433:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2436:21: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2436:21: call_function: calling ‘zalloc’ from ‘keyboard_notify_key’
libinput-1.29.2/src/libinput.c:2436:21: return_function: returning to ‘keyboard_notify_key’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2438:26: call_function: calling ‘update_seat_key_count’ from ‘keyboard_notify_key’
libinput-1.29.2/src/libinput.c:2438:26: return_function: returning to ‘keyboard_notify_key’ from ‘update_seat_key_count’
libinput-1.29.2/src/libinput.c:2447:9: danger: ‘zalloc(40)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
libinput-1.29.2/src/libinput.c:2469:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/libinput.c:2451:1: enter_function: entry to ‘pointer_notify_motion’
libinput-1.29.2/src/libinput.c:2458:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2461:24: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2461:24: call_function: calling ‘zalloc’ from ‘pointer_notify_motion’
libinput-1.29.2/src/libinput.c:2461:24: return_function: returning to ‘pointer_notify_motion’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2469:9: danger: ‘zalloc(104)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
libinput-1.29.2/src/libinput.c:2492:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/libinput.c:2476:1: enter_function: entry to ‘pointer_notify_motion_absolute’
libinput-1.29.2/src/libinput.c:2482:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2485:33: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2485:33: call_function: calling ‘zalloc’ from ‘pointer_notify_motion_absolute’
libinput-1.29.2/src/libinput.c:2485:33: return_function: returning to ‘pointer_notify_motion_absolute’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2492:9: danger: ‘zalloc(104)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
libinput-1.29.2/src/libinput.c:2521:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/libinput.c:2499:1: enter_function: entry to ‘pointer_notify_button’
libinput-1.29.2/src/libinput.c:2507:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2510:24: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2510:24: call_function: calling ‘zalloc’ from ‘pointer_notify_button’
libinput-1.29.2/src/libinput.c:2510:24: return_function: returning to ‘pointer_notify_button’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2512:29: call_function: calling ‘update_seat_button_count’ from ‘pointer_notify_button’
libinput-1.29.2/src/libinput.c:2512:29: return_function: returning to ‘pointer_notify_button’ from ‘update_seat_button_count’
libinput-1.29.2/src/libinput.c:2521: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): [#def80]
libinput-1.29.2/src/libinput.c:2553:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/libinput.c:2528:1: enter_function: entry to ‘pointer_notify_axis_finger’
libinput-1.29.2/src/libinput.c:2537:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2540:22: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2540:22: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_finger’
libinput-1.29.2/src/libinput.c:2540:22: return_function: returning to ‘pointer_notify_axis_finger’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2541:29: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_finger’
libinput-1.29.2/src/libinput.c:2541:29: return_function: returning to ‘pointer_notify_axis_finger’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2553: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): [#def81]
libinput-1.29.2/src/libinput.c:2557:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/libinput.c:2528:1: enter_function: entry to ‘pointer_notify_axis_finger’
libinput-1.29.2/src/libinput.c:2537:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2540:22: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2540:22: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_finger’
libinput-1.29.2/src/libinput.c:2540:22: return_function: returning to ‘pointer_notify_axis_finger’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2541:29: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_finger’
libinput-1.29.2/src/libinput.c:2541:29: return_function: returning to ‘pointer_notify_axis_finger’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2553:9: call_function: calling ‘post_device_event’ from ‘pointer_notify_axis_finger’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
libinput-1.29.2/src/libinput.c:2589:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/libinput.c:2564:1: enter_function: entry to ‘pointer_notify_axis_continuous’
libinput-1.29.2/src/libinput.c:2573:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2576:22: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2576:22: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_continuous’
libinput-1.29.2/src/libinput.c:2576:22: return_function: returning to ‘pointer_notify_axis_continuous’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2577:29: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_continuous’
libinput-1.29.2/src/libinput.c:2577:29: return_function: returning to ‘pointer_notify_axis_continuous’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2589: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): [#def83]
libinput-1.29.2/src/libinput.c:2593:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/libinput.c:2564:1: enter_function: entry to ‘pointer_notify_axis_continuous’
libinput-1.29.2/src/libinput.c:2573:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2576:22: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2576:22: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_continuous’
libinput-1.29.2/src/libinput.c:2576:22: return_function: returning to ‘pointer_notify_axis_continuous’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2577:29: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_continuous’
libinput-1.29.2/src/libinput.c:2577:29: return_function: returning to ‘pointer_notify_axis_continuous’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2589:9: call_function: calling ‘post_device_event’ from ‘pointer_notify_axis_continuous’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
libinput-1.29.2/src/libinput.c:2623:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/libinput.c:2600:1: enter_function: entry to ‘pointer_notify_axis_legacy_wheel’
libinput-1.29.2/src/libinput.c:2609:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2612:22: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2612:22: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_legacy_wheel’
libinput-1.29.2/src/libinput.c:2612:22: return_function: returning to ‘pointer_notify_axis_legacy_wheel’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2623: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): [#def85]
libinput-1.29.2/src/libinput.c:2650:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.29.2/src/libinput.c:2627:1: enter_function: entry to ‘pointer_notify_axis_wheel’
libinput-1.29.2/src/libinput.c:2635:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2638:22: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2638:22: call_function: calling ‘zalloc’ from ‘pointer_notify_axis_wheel’
libinput-1.29.2/src/libinput.c:2638:22: return_function: returning to ‘pointer_notify_axis_wheel’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2650: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): [#def86]
libinput-1.29.2/src/libinput.c:2679:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.29.2/src/libinput.c:2659:1: enter_function: entry to ‘touch_notify_touch_down’
libinput-1.29.2/src/libinput.c:2667:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2670:23: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2670:23: call_function: calling ‘zalloc’ from ‘touch_notify_touch_down’
libinput-1.29.2/src/libinput.c:2670:23: return_function: returning to ‘touch_notify_touch_down’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2679: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): [#def87]
libinput-1.29.2/src/libinput.c:2703:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.29.2/src/libinput.c:2683:1: enter_function: entry to ‘touch_notify_touch_motion’
libinput-1.29.2/src/libinput.c:2691:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2694:23: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2694:23: call_function: calling ‘zalloc’ from ‘touch_notify_touch_motion’
libinput-1.29.2/src/libinput.c:2694:23: return_function: returning to ‘touch_notify_touch_motion’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2703: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): [#def88]
libinput-1.29.2/src/libinput.c:2728:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.29.2/src/libinput.c:2710:1: enter_function: entry to ‘touch_notify_touch_up’
libinput-1.29.2/src/libinput.c:2717:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2720:23: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2720:23: call_function: calling ‘zalloc’ from ‘touch_notify_touch_up’
libinput-1.29.2/src/libinput.c:2720:23: return_function: returning to ‘touch_notify_touch_up’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2728: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): [#def89]
libinput-1.29.2/src/libinput.c:2750:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.29.2/src/libinput.c:2732:1: enter_function: entry to ‘touch_notify_touch_cancel’
libinput-1.29.2/src/libinput.c:2739:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2742:23: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2742:23: call_function: calling ‘zalloc’ from ‘touch_notify_touch_cancel’
libinput-1.29.2/src/libinput.c:2742:23: return_function: returning to ‘touch_notify_touch_cancel’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2750: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): [#def90]
libinput-1.29.2/src/libinput.c:2770:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.29.2/src/libinput.c:2757:1: enter_function: entry to ‘touch_notify_frame’
libinput-1.29.2/src/libinput.c:2761:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:2764:23: branch_true: ...to here
libinput-1.29.2/src/libinput.c:2764:23: call_function: calling ‘zalloc’ from ‘touch_notify_frame’
libinput-1.29.2/src/libinput.c:2764:23: return_function: returning to ‘touch_notify_frame’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2770: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): [#def91]
libinput-1.29.2/src/libinput.c:2801:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(216)’
libinput-1.29.2/src/libinput.c:2774:1: enter_function: entry to ‘tablet_notify_axis’
libinput-1.29.2/src/libinput.c:2785:22: call_function: calling ‘zalloc’ from ‘tablet_notify_axis’
libinput-1.29.2/src/libinput.c:2785:22: return_function: returning to ‘tablet_notify_axis’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2801:9: 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): [#def92]
libinput-1.29.2/src/libinput.c:2834:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(216)’
libinput-1.29.2/src/libinput.c:2808:1: enter_function: entry to ‘tablet_notify_proximity’
libinput-1.29.2/src/libinput.c:2819:27: call_function: calling ‘zalloc’ from ‘tablet_notify_proximity’
libinput-1.29.2/src/libinput.c:2819:27: return_function: returning to ‘tablet_notify_proximity’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2834:9: danger: ‘zalloc(216)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
libinput-1.29.2/src/libinput.c:2865:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(216)’
libinput-1.29.2/src/libinput.c:2841:1: enter_function: entry to ‘tablet_notify_tip’
libinput-1.29.2/src/libinput.c:2852:21: call_function: calling ‘zalloc’ from ‘tablet_notify_tip’
libinput-1.29.2/src/libinput.c:2852:21: return_function: returning to ‘tablet_notify_tip’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2865:9: danger: ‘zalloc(216)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
libinput-1.29.2/src/libinput.c:2902:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(216)’
libinput-1.29.2/src/libinput.c:2872:1: enter_function: entry to ‘tablet_notify_button’
libinput-1.29.2/src/libinput.c:2885:24: call_function: calling ‘zalloc’ from ‘tablet_notify_button’
libinput-1.29.2/src/libinput.c:2885:24: return_function: returning to ‘tablet_notify_button’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2887:29: call_function: calling ‘update_seat_button_count’ from ‘tablet_notify_button’
libinput-1.29.2/src/libinput.c:2887:29: return_function: returning to ‘tablet_notify_button’ from ‘update_seat_button_count’
libinput-1.29.2/src/libinput.c:2902:9: danger: ‘zalloc(216)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
libinput-1.29.2/src/libinput.c:2930:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
libinput-1.29.2/src/libinput.c:2909:1: enter_function: entry to ‘tablet_pad_notify_button’
libinput-1.29.2/src/libinput.c:2918:24: call_function: calling ‘zalloc’ from ‘tablet_pad_notify_button’
libinput-1.29.2/src/libinput.c:2918:24: return_function: returning to ‘tablet_pad_notify_button’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2930:9: 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): [#def96]
libinput-1.29.2/src/libinput.c:2958:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
libinput-1.29.2/src/libinput.c:2937:1: enter_function: entry to ‘tablet_pad_notify_dial’
libinput-1.29.2/src/libinput.c:2946:22: call_function: calling ‘zalloc’ from ‘tablet_pad_notify_dial’
libinput-1.29.2/src/libinput.c:2946:22: return_function: returning to ‘tablet_pad_notify_dial’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2958:9: danger: ‘zalloc(120)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
libinput-1.29.2/src/libinput.c:2988:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
libinput-1.29.2/src/libinput.c:2965:1: enter_function: entry to ‘tablet_pad_notify_ring’
libinput-1.29.2/src/libinput.c:2975:22: call_function: calling ‘zalloc’ from ‘tablet_pad_notify_ring’
libinput-1.29.2/src/libinput.c:2975:22: return_function: returning to ‘tablet_pad_notify_ring’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:2988:9: danger: ‘zalloc(120)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
libinput-1.29.2/src/libinput.c:3018:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
libinput-1.29.2/src/libinput.c:2995:1: enter_function: entry to ‘tablet_pad_notify_strip’
libinput-1.29.2/src/libinput.c:3005:23: call_function: calling ‘zalloc’ from ‘tablet_pad_notify_strip’
libinput-1.29.2/src/libinput.c:3005:23: return_function: returning to ‘tablet_pad_notify_strip’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:3018:9: danger: ‘zalloc(120)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
libinput-1.29.2/src/libinput.c:3040:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
libinput-1.29.2/src/libinput.c:3025:1: enter_function: entry to ‘tablet_pad_notify_key’
libinput-1.29.2/src/libinput.c:3032:21: call_function: calling ‘zalloc’ from ‘tablet_pad_notify_key’
libinput-1.29.2/src/libinput.c:3032:21: return_function: returning to ‘tablet_pad_notify_key’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:3040:9: danger: ‘zalloc(120)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
libinput-1.29.2/src/libinput.c:3074:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(80)’
libinput-1.29.2/src/libinput.c:3047:1: enter_function: entry to ‘gesture_notify’
libinput-1.29.2/src/libinput.c:3062:25: call_function: calling ‘zalloc’ from ‘gesture_notify’
libinput-1.29.2/src/libinput.c:3062:25: return_function: returning to ‘gesture_notify’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:3074:9: danger: ‘zalloc(80)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
libinput-1.29.2/src/libinput.c:3204:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.29.2/src/libinput.c:3186:1: enter_function: entry to ‘switch_notify_toggle’
libinput-1.29.2/src/libinput.c:3193:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/libinput.c:3196:24: branch_true: ...to here
libinput-1.29.2/src/libinput.c:3196:24: call_function: calling ‘zalloc’ from ‘switch_notify_toggle’
libinput-1.29.2/src/libinput.c:3196:24: return_function: returning to ‘switch_notify_toggle’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:3204:9: danger: ‘zalloc(32)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
libinput-1.29.2/src/libinput.c:3917:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/src/libinput.c:3909:1: enter_function: entry to ‘libinput_device_group_create’
libinput-1.29.2/src/libinput.c:3913:17: call_function: calling ‘zalloc’ from ‘libinput_device_group_create’
libinput-1.29.2/src/libinput.c:3913:17: return_function: returning to ‘libinput_device_group_create’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:3915:29: call_function: calling ‘safe_strdup’ from ‘libinput_device_group_create’
libinput-1.29.2/src/libinput.c:3915:29: return_function: returning to ‘libinput_device_group_create’ from ‘safe_strdup’
libinput-1.29.2/src/libinput.c:3917:9: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
libinput-1.29.2/src/libinput.c:3917:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.29.2/src/libinput.c:3909:1: enter_function: entry to ‘libinput_device_group_create’
libinput-1.29.2/src/libinput.c:3913:17: call_function: calling ‘zalloc’ from ‘libinput_device_group_create’
libinput-1.29.2/src/libinput.c:3913:17: return_function: returning to ‘libinput_device_group_create’ from ‘zalloc’
libinput-1.29.2/src/libinput.c:3915:29: call_function: calling ‘safe_strdup’ from ‘libinput_device_group_create’
libinput-1.29.2/src/libinput.c:3915:29: return_function: returning to ‘libinput_device_group_create’ from ‘safe_strdup’
libinput-1.29.2/src/libinput.c:3917:9: danger: ‘zalloc(40)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
libinput-1.29.2/src/path-seat.c:141:29: warning[-Wanalyzer-malloc-leak]: leak of ‘safe_strdup(<unknown>)’
libinput-1.29.2/src/path-seat.c:254:1: enter_function: entry to ‘path_create_device’
libinput-1.29.2/src/path-seat.c:262:15: call_function: calling ‘zalloc’ from ‘path_create_device’
libinput-1.29.2/src/path-seat.c:262:15: return_function: returning to ‘path_create_device’ from ‘zalloc’
libinput-1.29.2/src/path-seat.c:267:18: call_function: calling ‘path_device_enable’ from ‘path_create_device’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
libinput-1.29.2/src/path-seat.c:166:9: warning[-Wanalyzer-malloc-leak]: leak of ‘safe_strdup(<unknown>)’
libinput-1.29.2/src/path-seat.c:254:1: enter_function: entry to ‘path_create_device’
libinput-1.29.2/src/path-seat.c:262:15: call_function: calling ‘zalloc’ from ‘path_create_device’
libinput-1.29.2/src/path-seat.c:262:15: return_function: returning to ‘path_create_device’ from ‘zalloc’
libinput-1.29.2/src/path-seat.c:267:18: call_function: calling ‘path_device_enable’ from ‘path_create_device’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
libinput-1.29.2/src/path-seat.c:166:9: warning[-Wanalyzer-malloc-leak]: leak of ‘seat_logical_name’
libinput-1.29.2/src/path-seat.c:254:1: enter_function: entry to ‘path_create_device’
libinput-1.29.2/src/path-seat.c:262:15: call_function: calling ‘zalloc’ from ‘path_create_device’
libinput-1.29.2/src/path-seat.c:262:15: return_function: returning to ‘path_create_device’ from ‘zalloc’
libinput-1.29.2/src/path-seat.c:267:18: call_function: calling ‘path_device_enable’ from ‘path_create_device’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
libinput-1.29.2/src/path-seat.c:263:28: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(24)’
libinput-1.29.2/src/path-seat.c:254:1: enter_function: entry to ‘path_create_device’
libinput-1.29.2/src/path-seat.c:262:15: call_function: calling ‘zalloc’ from ‘path_create_device’
libinput-1.29.2/src/path-seat.c:262:15: return_function: returning to ‘path_create_device’ from ‘zalloc’
libinput-1.29.2/src/path-seat.c:263:28: danger: ‘zalloc(24)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
libinput-1.29.2/src/path-seat.c:265:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(24)’
libinput-1.29.2/src/path-seat.c:254:1: enter_function: entry to ‘path_create_device’
libinput-1.29.2/src/path-seat.c:262:15: call_function: calling ‘zalloc’ from ‘path_create_device’
libinput-1.29.2/src/path-seat.c:262:15: return_function: returning to ‘path_create_device’ from ‘zalloc’
libinput-1.29.2/src/path-seat.c:265:9: danger: ‘zalloc(24)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
libinput-1.29.2/src/path-seat.c:314:13: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(352)’
libinput-1.29.2/src/path-seat.c:301:1: enter_function: entry to ‘libinput_path_create_context’
libinput-1.29.2/src/path-seat.c:306:12: branch_false: following ‘false’ branch (when ‘interface’ is non-NULL)...
libinput-1.29.2/src/path-seat.c:309:31: branch_false: ...to here
libinput-1.29.2/src/path-seat.c:310:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/path-seat.c:313:17: branch_false: ...to here
libinput-1.29.2/src/path-seat.c:313:17: call_function: calling ‘zalloc’ from ‘libinput_path_create_context’
libinput-1.29.2/src/path-seat.c:313:17: return_function: returning to ‘libinput_path_create_context’ from ‘zalloc’
libinput-1.29.2/src/path-seat.c:314:13: danger: ‘zalloc(352)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def110]
libinput-1.29.2/src/quirks.c:225:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
libinput-1.29.2/src/quirks.c:225:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def112]
libinput-1.29.2/src/quirks.c:225:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1227:17: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1227:17: call_function: calling ‘quirk_log_msg’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def113]
libinput-1.29.2/src/quirks.c:388:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
libinput-1.29.2/src/quirks.c:388:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
libinput-1.29.2/src/quirks.c:388:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(424)’
libinput-1.29.2/src/quirks.c:1532:1: enter_function: entry to ‘quirk_merge_event_codes’
libinput-1.29.2/src/quirks.c:1558:36: call_function: calling ‘property_new’ from ‘quirk_merge_event_codes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
libinput-1.29.2/src/quirks.c:457:9: warning[-Wanalyzer-malloc-leak]: leak of ‘safe_strdup(modalias)’
libinput-1.29.2/src/quirks.c:1248:1: enter_function: entry to ‘quirks_init_subsystem’
libinput-1.29.2/src/quirks.c:1254:40: call_function: calling ‘zalloc’ from ‘quirks_init_subsystem’
libinput-1.29.2/src/quirks.c:1254:40: return_function: returning to ‘quirks_init_subsystem’ from ‘zalloc’
libinput-1.29.2/src/quirks.c:1256:9: branch_true: following ‘true’ branch (when ‘data_path’ is non-NULL)...
libinput-1.29.2/src/quirks.c:1258:9: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1265:9: call_function: calling ‘quirk_log_msg’ from ‘quirks_init_subsystem’
libinput-1.29.2/src/quirks.c:1265:9: return_function: returning to ‘quirks_init_subsystem’ from ‘quirk_log_msg’
libinput-1.29.2/src/quirks.c:1267:20: call_function: calling ‘init_dmi’ from ‘quirks_init_subsystem’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
libinput-1.29.2/src/quirks.c:458:9: warning[-Wanalyzer-malloc-leak]: leak of ‘safe_strdup(modalias)’
libinput-1.29.2/src/quirks.c:1248:1: enter_function: entry to ‘quirks_init_subsystem’
libinput-1.29.2/src/quirks.c:1254:40: call_function: calling ‘zalloc’ from ‘quirks_init_subsystem’
libinput-1.29.2/src/quirks.c:1254:40: return_function: returning to ‘quirks_init_subsystem’ from ‘zalloc’
libinput-1.29.2/src/quirks.c:1256:9: branch_true: following ‘true’ branch (when ‘data_path’ is non-NULL)...
libinput-1.29.2/src/quirks.c:1258:9: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1265:9: call_function: calling ‘quirk_log_msg’ from ‘quirks_init_subsystem’
libinput-1.29.2/src/quirks.c:1265:9: return_function: returning to ‘quirks_init_subsystem’ from ‘quirk_log_msg’
libinput-1.29.2/src/quirks.c:1267:20: call_function: calling ‘init_dmi’ from ‘quirks_init_subsystem’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def118]
libinput-1.29.2/src/quirks.c:577:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
libinput-1.29.2/src/quirks.c:577:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def120]
libinput-1.29.2/src/quirks.c:578:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
libinput-1.29.2/src/quirks.c:578:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
libinput-1.29.2/src/quirks.c:588:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
libinput-1.29.2/src/quirks.c:1248:1: enter_function: entry to ‘quirks_init_subsystem’
libinput-1.29.2/src/quirks.c:1254:40: call_function: calling ‘zalloc’ from ‘quirks_init_subsystem’
libinput-1.29.2/src/quirks.c:1254:40: return_function: returning to ‘quirks_init_subsystem’ from ‘zalloc’
libinput-1.29.2/src/quirks.c:1256:9: branch_true: following ‘true’ branch (when ‘data_path’ is non-NULL)...
libinput-1.29.2/src/quirks.c:1258:9: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1254:34: call_function: inlined call to ‘quirks_context_unrefp’ from ‘quirks_init_subsystem’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def123]
libinput-1.29.2/src/quirks.c:677:31: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
libinput-1.29.2/src/quirks.c:677:31: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
libinput-1.29.2/src/quirks.c:678:26: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
libinput-1.29.2/src/quirks.c:678:26: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def127]
libinput-1.29.2/src/quirks.c:758:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
libinput-1.29.2/src/quirks.c:758:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def129]
libinput-1.29.2/src/quirks.c:766:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
libinput-1.29.2/src/quirks.c:766:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def131]
libinput-1.29.2/src/quirks.c:984:23: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
libinput-1.29.2/src/quirks.c:984:23: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
libinput-1.29.2/src/quirks.c:1127:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
libinput-1.29.2/src/quirks.c:1127:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
libinput-1.29.2/src/quirks.c:1219:1: enter_function: entry to ‘parse_files’
libinput-1.29.2/src/quirks.c:1226:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/quirks.c:1231:23: branch_true: following ‘true’ branch...
libinput-1.29.2/src/quirks.c:1234:74: branch_true: ...to here
libinput-1.29.2/src/quirks.c:1236:22: call_function: calling ‘parse_file’ from ‘parse_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
libinput-1.29.2/src/quirks.c:1326:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(56)’
libinput-1.29.2/src/quirks.c:1319:1: enter_function: entry to ‘quirks_new’
libinput-1.29.2/src/quirks.c:1323:13: call_function: calling ‘zalloc’ from ‘quirks_new’
libinput-1.29.2/src/quirks.c:1323:13: return_function: returning to ‘quirks_new’ from ‘zalloc’
libinput-1.29.2/src/quirks.c:1326:9: danger: ‘zalloc(56)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
libinput-1.29.2/src/quirks.c:1372:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/src/quirks.c:1510:1: enter_function: entry to ‘match_new’
libinput-1.29.2/src/quirks.c:1512:27: call_function: calling ‘zalloc’ from ‘match_new’
libinput-1.29.2/src/quirks.c:1512:27: return_function: returning to ‘match_new’ from ‘zalloc’
libinput-1.29.2/src/quirks.c:1514:9: call_function: calling ‘match_fill_name’ from ‘match_new’
libinput-1.29.2/src/quirks.c:1514:9: return_function: returning to ‘match_new’ from ‘match_fill_name’
libinput-1.29.2/src/quirks.c:1515:9: call_function: calling ‘match_fill_uniq’ from ‘match_new’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
libinput-1.29.2/src/quirks.c:1372:25: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(320)’
libinput-1.29.2/src/quirks.c:1510:1: enter_function: entry to ‘match_new’
libinput-1.29.2/src/quirks.c:1512:27: call_function: calling ‘zalloc’ from ‘match_new’
libinput-1.29.2/src/quirks.c:1512:27: return_function: returning to ‘match_new’ from ‘zalloc’
libinput-1.29.2/src/quirks.c:1514:9: call_function: calling ‘match_fill_name’ from ‘match_new’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
libinput-1.29.2/src/quirks.c:1373:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/src/quirks.c:1510:1: enter_function: entry to ‘match_new’
libinput-1.29.2/src/quirks.c:1512:27: call_function: calling ‘zalloc’ from ‘match_new’
libinput-1.29.2/src/quirks.c:1512:27: return_function: returning to ‘match_new’ from ‘zalloc’
libinput-1.29.2/src/quirks.c:1514:9: call_function: calling ‘match_fill_name’ from ‘match_new’
libinput-1.29.2/src/quirks.c:1514:9: return_function: returning to ‘match_new’ from ‘match_fill_name’
libinput-1.29.2/src/quirks.c:1515:9: call_function: calling ‘match_fill_uniq’ from ‘match_new’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
libinput-1.29.2/src/quirks.c:1373:21: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(320)’
libinput-1.29.2/src/quirks.c:1510:1: enter_function: entry to ‘match_new’
libinput-1.29.2/src/quirks.c:1512:27: call_function: calling ‘zalloc’ from ‘match_new’
libinput-1.29.2/src/quirks.c:1512:27: return_function: returning to ‘match_new’ from ‘zalloc’
libinput-1.29.2/src/quirks.c:1514:9: call_function: calling ‘match_fill_name’ from ‘match_new’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def140]
libinput-1.29.2/src/quirks.h:212:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘libinput_device_get_quirks(&*device.base)’
libinput-1.29.2/src/evdev-mt-touchpad-thumb.c:362:1: enter_function: entry to ‘tp_init_thumb’
libinput-1.29.2/src/evdev-mt-touchpad-thumb.c:372:12: branch_true: following ‘true’ branch...
libinput-1.29.2/src/evdev-mt-touchpad-thumb.c:378:9: branch_true: ...to here
libinput-1.29.2/src/evdev-mt-touchpad-thumb.c:379:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/evdev-mt-touchpad-thumb.c:382:9: branch_false: ...to here
libinput-1.29.2/src/evdev-mt-touchpad-thumb.c:394:17: call_function: calling ‘evdev_device_mm_to_units’ from ‘tp_init_thumb’
libinput-1.29.2/src/evdev-mt-touchpad-thumb.c:397:26: call_function: inlined call to ‘quirks_unrefp’ from ‘tp_init_thumb’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
libinput-1.29.2/src/udev-seat.c:327:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(3160)’
libinput-1.29.2/src/udev-seat.c:319:1: enter_function: entry to ‘udev_seat_create’
libinput-1.29.2/src/udev-seat.c:325:16: call_function: calling ‘zalloc’ from ‘udev_seat_create’
libinput-1.29.2/src/udev-seat.c:325:16: return_function: returning to ‘udev_seat_create’ from ‘zalloc’
libinput-1.29.2/src/udev-seat.c:327:9: danger: ‘zalloc(3160)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
libinput-1.29.2/src/udev-seat.c:385:13: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(360)’
libinput-1.29.2/src/udev-seat.c:374:1: enter_function: entry to ‘libinput_udev_create_context’
libinput-1.29.2/src/udev-seat.c:380:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/udev-seat.c:383:17: branch_false: ...to here
libinput-1.29.2/src/udev-seat.c:383:17: call_function: calling ‘zalloc’ from ‘libinput_udev_create_context’
libinput-1.29.2/src/udev-seat.c:383:17: return_function: returning to ‘libinput_udev_create_context’ from ‘zalloc’
libinput-1.29.2/src/udev-seat.c:385:13: danger: ‘zalloc(360)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-126): [#def143]
libinput-1.29.2/src/util-files.c:43:14: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libinput-1.29.2/src/util-files.c:85:1: enter_function: entry to ‘list_files’
libinput-1.29.2/src/util-files.c:89:12: branch_false: following ‘false’ branch (when ‘directories’ is non-NULL)...
branch_false: ...to here
libinput-1.29.2/src/util-files.c:96:16: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:97:29: branch_true: ...to here
libinput-1.29.2/src/util-files.c:98:17: call_function: calling ‘filenames’ from ‘list_files’
libinput-1.29.2/src/util-files.c:98:17: return_function: returning to ‘list_files’ from ‘filenames’
libinput-1.29.2/src/util-files.c:101:17: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:103:25: branch_true: ...to here
libinput-1.29.2/src/util-files.c:103:25: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:104:59: branch_true: ...to here
libinput-1.29.2/src/util-files.c:105:41: call_function: calling ‘file_destroy’ from ‘list_files’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def144]
libinput-1.29.2/src/util-files.c:44:14: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libinput-1.29.2/src/util-files.c:85:1: enter_function: entry to ‘list_files’
libinput-1.29.2/src/util-files.c:89:12: branch_false: following ‘false’ branch (when ‘directories’ is non-NULL)...
branch_false: ...to here
libinput-1.29.2/src/util-files.c:96:16: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:97:29: branch_true: ...to here
libinput-1.29.2/src/util-files.c:98:17: call_function: calling ‘filenames’ from ‘list_files’
libinput-1.29.2/src/util-files.c:98:17: return_function: returning to ‘list_files’ from ‘filenames’
libinput-1.29.2/src/util-files.c:101:17: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:103:25: branch_true: ...to here
libinput-1.29.2/src/util-files.c:103:25: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:104:59: branch_true: ...to here
libinput-1.29.2/src/util-files.c:105:41: call_function: calling ‘file_destroy’ from ‘list_files’
Error: GCC_ANALYZER_WARNING (CWE-590): [#def145]
libinput-1.29.2/src/util-files.c:45:9: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘f’ which points to memory on the stack
libinput-1.29.2/src/util-files.c:85:1: enter_function: entry to ‘list_files’
libinput-1.29.2/src/util-files.c:89:12: branch_false: following ‘false’ branch (when ‘directories’ is non-NULL)...
branch_false: ...to here
libinput-1.29.2/src/util-files.c:96:16: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:97:29: branch_true: ...to here
libinput-1.29.2/src/util-files.c:98:17: call_function: calling ‘filenames’ from ‘list_files’
libinput-1.29.2/src/util-files.c:98:17: return_function: returning to ‘list_files’ from ‘filenames’
libinput-1.29.2/src/util-files.c:101:17: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:103:25: branch_true: ...to here
libinput-1.29.2/src/util-files.c:103:25: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:104:59: branch_true: ...to here
libinput-1.29.2/src/util-files.c:105:41: call_function: calling ‘file_destroy’ from ‘list_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
libinput-1.29.2/src/util-files.c:71:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/src/util-files.c:55:1: enter_function: entry to ‘filenames’
libinput-1.29.2/src/util-files.c:60:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/util-files.c:63:25: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:64:59: branch_true: ...to here
libinput-1.29.2/src/util-files.c:65:22: call_function: calling ‘strendswith’ from ‘filenames’
libinput-1.29.2/src/util-files.c:65:22: return_function: returning to ‘filenames’ from ‘strendswith’
libinput-1.29.2/src/util-files.c:65:20: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:68:34: branch_true: ...to here
libinput-1.29.2/src/util-files.c:68:34: call_function: calling ‘zalloc’ from ‘filenames’
libinput-1.29.2/src/util-files.c:68:34: return_function: returning to ‘filenames’ from ‘zalloc’
libinput-1.29.2/src/util-files.c:69:27: call_function: calling ‘safe_strdup’ from ‘filenames’
libinput-1.29.2/src/util-files.c:69:27: return_function: returning to ‘filenames’ from ‘safe_strdup’
libinput-1.29.2/src/util-files.c:70:32: call_function: calling ‘safe_strdup’ from ‘filenames’
libinput-1.29.2/src/util-files.c:70:32: return_function: returning to ‘filenames’ from ‘safe_strdup’
libinput-1.29.2/src/util-files.c:71:17: danger: ‘<unknown>’ leaks here; was allocated at [(29)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/28)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
libinput-1.29.2/src/util-files.c:71:17: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.29.2/src/util-files.c:55:1: enter_function: entry to ‘filenames’
libinput-1.29.2/src/util-files.c:60:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/src/util-files.c:63:25: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:64:59: branch_true: ...to here
libinput-1.29.2/src/util-files.c:65:22: call_function: calling ‘strendswith’ from ‘filenames’
libinput-1.29.2/src/util-files.c:65:22: return_function: returning to ‘filenames’ from ‘strendswith’
libinput-1.29.2/src/util-files.c:65:20: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:68:34: branch_true: ...to here
libinput-1.29.2/src/util-files.c:68:34: call_function: calling ‘zalloc’ from ‘filenames’
libinput-1.29.2/src/util-files.c:68:34: return_function: returning to ‘filenames’ from ‘zalloc’
libinput-1.29.2/src/util-files.c:69:27: call_function: calling ‘safe_strdup’ from ‘filenames’
libinput-1.29.2/src/util-files.c:69:27: return_function: returning to ‘filenames’ from ‘safe_strdup’
libinput-1.29.2/src/util-files.c:70:32: call_function: calling ‘safe_strdup’ from ‘filenames’
libinput-1.29.2/src/util-files.c:70:32: return_function: returning to ‘filenames’ from ‘safe_strdup’
libinput-1.29.2/src/util-files.c:71:17: danger: ‘zalloc(32)’ leaks here; was allocated at [(22)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-126): [#def148]
libinput-1.29.2/src/util-files.c:104:43: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libinput-1.29.2/src/util-files.c:85:1: enter_function: entry to ‘list_files’
libinput-1.29.2/src/util-files.c:89:12: branch_false: following ‘false’ branch (when ‘directories’ is non-NULL)...
branch_false: ...to here
libinput-1.29.2/src/util-files.c:96:16: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:97:29: branch_true: ...to here
libinput-1.29.2/src/util-files.c:98:17: call_function: calling ‘filenames’ from ‘list_files’
libinput-1.29.2/src/util-files.c:98:17: return_function: returning to ‘list_files’ from ‘filenames’
libinput-1.29.2/src/util-files.c:101:17: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:103:25: branch_true: ...to here
libinput-1.29.2/src/util-files.c:103:25: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:104:59: branch_true: ...to here
libinput-1.29.2/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): [#def149]
libinput-1.29.2/src/util-files.c:104:59: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libinput-1.29.2/src/util-files.c:85:1: enter_function: entry to ‘list_files’
libinput-1.29.2/src/util-files.c:89:12: branch_false: following ‘false’ branch (when ‘directories’ is non-NULL)...
branch_false: ...to here
libinput-1.29.2/src/util-files.c:96:16: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:97:29: branch_true: ...to here
libinput-1.29.2/src/util-files.c:98:17: call_function: calling ‘filenames’ from ‘list_files’
libinput-1.29.2/src/util-files.c:98:17: return_function: returning to ‘list_files’ from ‘filenames’
libinput-1.29.2/src/util-files.c:101:17: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:103:25: branch_true: ...to here
libinput-1.29.2/src/util-files.c:103:25: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-files.c:104:59: branch_true: ...to here
libinput-1.29.2/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): [#def150]
libinput-1.29.2/src/util-files.c:120:9: warning[-Wanalyzer-infinite-loop]: infinite loop
libinput-1.29.2/src/util-files.c:120:9: danger: infinite loop here
libinput-1.29.2/src/util-files.c:120:9: branch_true: if it ever follows ‘true’ branch, it will always do so...
libinput-1.29.2/src/util-files.c:121:17: branch_true: ...to here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def151]
libinput-1.29.2/src/util-files.h:94:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 0)’
libinput-1.29.2/tools/libinput-record.c:2627:1: enter_function: entry to ‘main’
libinput-1.29.2/tools/libinput-record.c:2731:12: branch_false: following ‘false’ branch...
libinput-1.29.2/tools/libinput-record.c:2737:32: branch_false: ...to here
libinput-1.29.2/tools/libinput-record.c:2737:32: call_function: calling ‘safe_strdup’ from ‘main’
libinput-1.29.2/tools/libinput-record.c:2737:32: return_function: returning to ‘main’ from ‘safe_strdup’
libinput-1.29.2/tools/libinput-record.c:2739:12: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/libinput-record.c:2739:43: branch_true: ...to here
libinput-1.29.2/tools/libinput-record.c:2739:13: branch_false: following ‘false’ branch...
libinput-1.29.2/tools/libinput-record.c:2748:19: branch_false: ...to here
libinput-1.29.2/tools/libinput-record.c:2748:19: branch_false: following ‘false’ branch (when ‘ndevices <= 0’)...
libinput-1.29.2/tools/libinput-record.c:2751:41: branch_false: ...to here
libinput-1.29.2/tools/libinput-record.c:2751:41: call_function: calling ‘select_device’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
libinput-1.29.2/src/util-mem.h:80:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/tools/libinput-record.c:2362:1: enter_function: entry to ‘init_device’
libinput-1.29.2/tools/libinput-record.c:2364:46: call_function: calling ‘zalloc’ from ‘init_device’
libinput-1.29.2/tools/libinput-record.c:2364:46: return_function: returning to ‘init_device’ from ‘zalloc’
libinput-1.29.2/tools/libinput-record.c:2366:22: call_function: calling ‘safe_strdup’ from ‘init_device’
libinput-1.29.2/tools/libinput-record.c:2366:22: return_function: returning to ‘init_device’ from ‘safe_strdup’
libinput-1.29.2/tools/libinput-record.c:2364:42: call_function: inlined call to ‘_free_ptr_’ from ‘init_device’
Error: COMPILER_WARNING (CWE-457): [#def153]
libinput-1.29.2/src/util-mem.h:80:9: warning[-Wmaybe-uninitialized]: ‘abs’ may be used uninitialized
libinput-1.29.2/test/litest.c: scope_hint: In function ‘litest_create’
libinput-1.29.2/test/litest.c:2069:42: note: ‘abs’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def154]
libinput-1.29.2/src/util-mem.h:80:9: warning[-Wmaybe-uninitialized]: ‘events’ may be used uninitialized
libinput-1.29.2/test/litest.c: scope_hint: In function ‘litest_create’
libinput-1.29.2/test/litest.c:2070:25: note: ‘events’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def155]
libinput-1.29.2/src/util-mem.h:131:20: warning[-Wmaybe-uninitialized]: ‘udev_device’ may be used uninitialized
libinput-1.29.2/test/litest.c: scope_hint: In function ‘grab_device’
libinput-1.29.2/test/litest.c:672:32: note: ‘udev_device’ was declared here
Error: CPPCHECK_WARNING (CWE-476): [#def156]
libinput-1.29.2/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): [#def157]
libinput-1.29.2/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): [#def158]
libinput-1.29.2/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): [#def159]
libinput-1.29.2/src/util-strings.c:145:20: warning[-Wanalyzer-malloc-leak]: leak of ‘safe_strdup(*<unknown>)’
libinput-1.29.2/src/util-strings.c:132:1: enter_function: entry to ‘strv_from_argv’
libinput-1.29.2/src/util-strings.c:136:9: branch_true: following ‘true’ branch (when ‘argc >= 0’)...
libinput-1.29.2/src/util-strings.c:137:9: branch_true: ...to here
libinput-1.29.2/src/util-strings.c:137:9: branch_true: following ‘true’ branch (when ‘argv’ is non-NULL)...
libinput-1.29.2/src/util-strings.c:139:12: branch_true: ...to here
libinput-1.29.2/src/util-strings.c:139:12: branch_false: following ‘false’ branch (when ‘argc != 0’)...
libinput-1.29.2/src/util-strings.c:142:23: branch_false: ...to here
libinput-1.29.2/src/util-strings.c:142:16: call_function: calling ‘zalloc’ from ‘strv_from_argv’
libinput-1.29.2/src/util-strings.c:142:16: return_function: returning to ‘strv_from_argv’ from ‘zalloc’
libinput-1.29.2/src/util-strings.c:143:25: branch_true: following ‘true’ branch (when ‘i < argc’)...
libinput-1.29.2/src/util-strings.c:144:46: branch_true: ...to here
libinput-1.29.2/src/util-strings.c:144:30: call_function: calling ‘safe_strdup’ from ‘strv_from_argv’
libinput-1.29.2/src/util-strings.c:144:30: return_function: returning to ‘strv_from_argv’ from ‘safe_strdup’
libinput-1.29.2/src/util-strings.c:145:20: branch_false: following ‘false’ branch...
libinput-1.29.2/src/util-strings.c:149:21: branch_false: ...to here
libinput-1.29.2/src/util-strings.c:143:25: branch_true: following ‘true’ branch (when ‘i < argc’)...
libinput-1.29.2/src/util-strings.c:144:46: branch_true: ...to here
libinput-1.29.2/src/util-strings.c:144:30: call_function: calling ‘safe_strdup’ from ‘strv_from_argv’
libinput-1.29.2/src/util-strings.c:144:30: return_function: returning to ‘strv_from_argv’ from ‘safe_strdup’
libinput-1.29.2/src/util-strings.c:145:20: branch_false: following ‘false’ branch...
libinput-1.29.2/src/util-strings.c:149:21: branch_false: ...to here
libinput-1.29.2/src/util-strings.c:143:25: branch_true: following ‘true’ branch (when ‘i < argc’)...
libinput-1.29.2/src/util-strings.c:144:46: branch_true: ...to here
libinput-1.29.2/src/util-strings.c:144:30: call_function: calling ‘safe_strdup’ from ‘strv_from_argv’
libinput-1.29.2/src/util-strings.c:144:30: return_function: returning to ‘strv_from_argv’ from ‘safe_strdup’
libinput-1.29.2/src/util-strings.c:145:20: branch_false: following ‘false’ branch...
libinput-1.29.2/src/util-strings.c:149:21: branch_false: ...to here
libinput-1.29.2/src/util-strings.c:143:25: branch_true: following ‘true’ branch (when ‘i < argc’)...
libinput-1.29.2/src/util-strings.c:144:46: branch_true: ...to here
libinput-1.29.2/src/util-strings.c:144:30: call_function: calling ‘safe_strdup’ from ‘strv_from_argv’
libinput-1.29.2/src/util-strings.c:144:30: return_function: returning to ‘strv_from_argv’ from ‘safe_strdup’
libinput-1.29.2/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): [#def160]
libinput-1.29.2/src/util-strings.h:153:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(16)’
libinput-1.29.2/test/test-quirks.c:1511:1: enter_function: entry to ‘quirks_ctx_ref’
libinput-1.29.2/test/test-quirks.c:1518:35: call_function: calling ‘data_dir_new’ from ‘quirks_ctx_ref’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
libinput-1.29.2/src/util-strings.h:153:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(72)’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:728:1: enter_function: entry to ‘debounce_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:731:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/libinput-plugin-button-debounce.c:734:13: branch_false: ...to here
libinput-1.29.2/src/libinput-plugin-button-debounce.c:734:12: branch_false: following ‘false’ branch...
libinput-1.29.2/src/libinput-plugin-button-debounce.c:737:45: branch_false: ...to here
libinput-1.29.2/src/libinput-plugin-button-debounce.c:756:36: call_function: calling ‘zalloc’ from ‘debounce_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:756:36: return_function: returning to ‘debounce_plugin_device_added’ from ‘zalloc’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:762:17: call_function: calling ‘strdup_printf’ from ‘debounce_plugin_device_added’
libinput-1.29.2/src/libinput-plugin-button-debounce.c:762:17: return_function: returning to ‘debounce_plugin_device_added’ from ‘strdup_printf’
libinput-1.29.2/src/util-strings.h:153:16: danger: ‘zalloc(72)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
libinput-1.29.2/src/util-strings.h:365:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/src/util-strings.c:172:1: enter_function: entry to ‘strv_from_string’
libinput-1.29.2/src/util-strings.c:174:9: branch_true: following ‘true’ branch (when ‘in’ is non-NULL)...
libinput-1.29.2/src/util-strings.c:175:9: branch_true: ...to here
libinput-1.29.2/src/util-strings.c:175:9: branch_true: following ‘true’ branch (when ‘separators’ is non-NULL)...
libinput-1.29.2/src/util-strings.c:177:21: branch_true: ...to here
libinput-1.29.2/src/util-strings.c:179:16: call_function: calling ‘next_word’ from ‘strv_from_string’
libinput-1.29.2/src/util-strings.c:179:16: return_function: returning to ‘strv_from_string’ from ‘next_word’
libinput-1.29.2/src/util-strings.c:179:16: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-strings.c:180:17: branch_true: ...to here
libinput-1.29.2/src/util-strings.c:179:16: call_function: calling ‘next_word’ from ‘strv_from_string’
libinput-1.29.2/src/util-strings.c:179:16: return_function: returning to ‘strv_from_string’ from ‘next_word’
libinput-1.29.2/src/util-strings.c:179:16: branch_false: following ‘false’ branch...
libinput-1.29.2/src/util-strings.c:182:12: branch_false: ...to here
libinput-1.29.2/src/util-strings.c:182:12: branch_false: following ‘false’ branch (when ‘nelems != 0’)...
libinput-1.29.2/src/util-strings.c:188:16: branch_false: ...to here
libinput-1.29.2/src/util-strings.c:189:23: call_function: calling ‘zalloc’ from ‘strv_from_string’
libinput-1.29.2/src/util-strings.c:189:23: return_function: returning to ‘strv_from_string’ from ‘zalloc’
libinput-1.29.2/src/util-strings.c:194:24: call_function: calling ‘next_word’ from ‘strv_from_string’
libinput-1.29.2/src/util-strings.c:194:24: return_function: returning to ‘strv_from_string’ from ‘next_word’
libinput-1.29.2/src/util-strings.c:194:16: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-strings.c:195:30: branch_true: ...to here
libinput-1.29.2/src/util-strings.c:196:20: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
libinput-1.29.2/src/util-strings.c:203:22: branch_false: ...to here
libinput-1.29.2/src/util-strings.c:194:24: call_function: calling ‘next_word’ from ‘strv_from_string’
libinput-1.29.2/src/util-strings.c:194:24: return_function: returning to ‘strv_from_string’ from ‘next_word’
libinput-1.29.2/src/util-strings.c:194:16: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-strings.c:195:30: branch_true: ...to here
libinput-1.29.2/src/util-strings.c:196:20: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
libinput-1.29.2/src/util-strings.c:203:22: branch_false: ...to here
libinput-1.29.2/src/util-strings.c:194:24: call_function: calling ‘next_word’ from ‘strv_from_string’
libinput-1.29.2/src/util-strings.c:194:24: return_function: returning to ‘strv_from_string’ from ‘next_word’
libinput-1.29.2/src/util-strings.c:194:16: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-strings.c:195:30: branch_true: ...to here
libinput-1.29.2/src/util-strings.c:195:30: acquire_memory: allocated here
libinput-1.29.2/src/util-strings.c:196:20: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
libinput-1.29.2/src/util-strings.c:203:22: branch_false: ...to here
libinput-1.29.2/src/util-strings.c:194:24: call_function: calling ‘next_word’ from ‘strv_from_string’
libinput-1.29.2/src/util-strings.c:194:24: return_function: returning to ‘strv_from_string’ from ‘next_word’
libinput-1.29.2/src/util-strings.c:194:16: branch_true: following ‘true’ branch...
libinput-1.29.2/src/util-strings.c:195:30: branch_true: ...to here
libinput-1.29.2/src/util-strings.c:196:20: branch_true: following ‘true’ branch (when ‘copy’ is NULL)...
branch_true: ...to here
libinput-1.29.2/src/util-strings.c:197:25: call_function: inlined call to ‘strv_free’ from ‘strv_from_string’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def163]
libinput-1.29.2/test/litest-main.c:160:39: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libinput-1.29.2/test/litest-main.c:152:1: enter_function: entry to ‘setup_tests’
libinput-1.29.2/test/litest-main.c:156:52: branch_true: following ‘true’ branch...
libinput-1.29.2/test/litest-main.c:159:21: branch_true: ...to here
libinput-1.29.2/test/litest-main.c:159:21: call_function: calling ‘zalloc’ from ‘setup_tests’
libinput-1.29.2/test/litest-main.c:159:21: return_function: returning to ‘setup_tests’ from ‘zalloc’
libinput-1.29.2/test/litest-main.c:160:27: call_function: calling ‘safe_strdup’ from ‘setup_tests’
libinput-1.29.2/test/litest-main.c:160:27: return_function: returning to ‘setup_tests’ from ‘safe_strdup’
libinput-1.29.2/test/litest-main.c:156:52: branch_true: following ‘true’ branch...
libinput-1.29.2/test/litest-main.c:159:21: branch_true: ...to here
libinput-1.29.2/test/litest-main.c:159:21: call_function: calling ‘zalloc’ from ‘setup_tests’
libinput-1.29.2/test/litest-main.c:159:21: return_function: returning to ‘setup_tests’ from ‘zalloc’
libinput-1.29.2/test/litest-main.c:160:39: 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-401): [#def164]
libinput-1.29.2/test/litest-main.c:162:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/test/litest-main.c:152:1: enter_function: entry to ‘setup_tests’
libinput-1.29.2/test/litest-main.c:156:52: branch_true: following ‘true’ branch...
libinput-1.29.2/test/litest-main.c:159:21: branch_true: ...to here
libinput-1.29.2/test/litest-main.c:159:21: call_function: calling ‘zalloc’ from ‘setup_tests’
libinput-1.29.2/test/litest-main.c:159:21: return_function: returning to ‘setup_tests’ from ‘zalloc’
libinput-1.29.2/test/litest-main.c:160:27: call_function: calling ‘safe_strdup’ from ‘setup_tests’
libinput-1.29.2/test/litest-main.c:160:27: return_function: returning to ‘setup_tests’ from ‘safe_strdup’
libinput-1.29.2/test/litest-main.c:162:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
libinput-1.29.2/test/litest-main.c:162:17: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.29.2/test/litest-main.c:152:1: enter_function: entry to ‘setup_tests’
libinput-1.29.2/test/litest-main.c:156:52: branch_true: following ‘true’ branch...
libinput-1.29.2/test/litest-main.c:159:21: branch_true: ...to here
libinput-1.29.2/test/litest-main.c:159:21: call_function: calling ‘zalloc’ from ‘setup_tests’
libinput-1.29.2/test/litest-main.c:159:21: return_function: returning to ‘setup_tests’ from ‘zalloc’
libinput-1.29.2/test/litest-main.c:160:27: call_function: calling ‘safe_strdup’ from ‘setup_tests’
libinput-1.29.2/test/litest-main.c:160:27: return_function: returning to ‘setup_tests’ from ‘safe_strdup’
libinput-1.29.2/test/litest-main.c:162:17: danger: ‘zalloc(40)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def166]
libinput-1.29.2/test/litest-runner.c:381:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 0)’
libinput-1.29.2/test/litest-runner.c:545:1: enter_function: entry to ‘litest_runner_test_check_status’
libinput-1.29.2/test/litest-runner.c:549:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/test/litest-runner.c:555:20: branch_false: following ‘false’ branch...
libinput-1.29.2/test/litest-runner.c:558:20: branch_false: ...to here
libinput-1.29.2/test/litest-runner.c:558:20: branch_false: following ‘false’ branch...
libinput-1.29.2/test/litest-runner.c:562:21: branch_false: ...to here
libinput-1.29.2/test/litest-runner.c:568:29: call_function: calling ‘litest_runner_test_collect_child’ from ‘litest_runner_test_check_status’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def167]
libinput-1.29.2/test/litest-runner.c:683:41: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libinput-1.29.2/test/litest-runner.c:674:9: acquire_resource: ‘va_start’ called here
libinput-1.29.2/test/litest-runner.c:676:16: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
libinput-1.29.2/test/litest-runner.c:678:35: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:680:17: branch_true: following ‘true’ branch...
libinput-1.29.2/test/litest-runner.c:681:35: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:682:36: branch_true: following ‘true’ branch (when ‘__res != __res’)...
libinput-1.29.2/test/litest-runner.c:683:41: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:683:41: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
libinput-1.29.2/test/litest-runner.c:704:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(24)’
libinput-1.29.2/test/litest-runner.c:700:1: enter_function: entry to ‘litest_test_parameters_new’
libinput-1.29.2/test/litest-runner.c:702:49: call_function: calling ‘zalloc’ from ‘litest_test_parameters_new’
libinput-1.29.2/test/litest-runner.c:702:49: return_function: returning to ‘litest_test_parameters_new’ from ‘zalloc’
libinput-1.29.2/test/litest-runner.c:704:9: danger: ‘zalloc(24)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
libinput-1.29.2/test/litest-runner.c:830:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(128)’
libinput-1.29.2/test/litest-runner.c:826:1: enter_function: entry to ‘litest_runner_new’
libinput-1.29.2/test/litest-runner.c:828:40: call_function: calling ‘zalloc’ from ‘litest_runner_new’
libinput-1.29.2/test/litest-runner.c:828:40: return_function: returning to ‘litest_runner_new’ from ‘zalloc’
libinput-1.29.2/test/litest-runner.c:830:9: danger: ‘zalloc(128)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
libinput-1.29.2/test/litest-runner.c:907:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(736)’
libinput-1.29.2/test/litest-runner.c:889:1: enter_function: entry to ‘litest_runner_add_test’
libinput-1.29.2/test/litest-runner.c:892:40: call_function: calling ‘zalloc’ from ‘litest_runner_add_test’
libinput-1.29.2/test/litest-runner.c:892:40: return_function: returning to ‘litest_runner_add_test’ from ‘zalloc’
libinput-1.29.2/test/litest-runner.c:899:25: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:900:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:899:25: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:900:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:899:25: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:900:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:899:25: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:900:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:899:25: branch_false: following ‘false’ branch (when ‘i == 4’)...
branch_false: ...to here
libinput-1.29.2/test/litest-runner.c:903:28: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:904:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:903:28: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:904:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:903:28: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:904:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:903:28: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:904:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:903:28: branch_false: following ‘false’ branch (when ‘i == 4’)...
libinput-1.29.2/test/litest-runner.c:907:9: branch_false: ...to here
libinput-1.29.2/test/litest-runner.c:907:9: danger: ‘zalloc(736)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
libinput-1.29.2/test/litest-runner.c:908:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/test/litest-runner.c:889:1: enter_function: entry to ‘litest_runner_add_test’
libinput-1.29.2/test/litest-runner.c:892:40: call_function: calling ‘zalloc’ from ‘litest_runner_add_test’
libinput-1.29.2/test/litest-runner.c:892:40: return_function: returning to ‘litest_runner_add_test’ from ‘zalloc’
libinput-1.29.2/test/litest-runner.c:899:25: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:900:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:900:17: call_function: calling ‘stringbuf_init’ from ‘litest_runner_add_test’
libinput-1.29.2/test/litest-runner.c:900:17: return_function: returning to ‘litest_runner_add_test’ from ‘stringbuf_init’
libinput-1.29.2/test/litest-runner.c:899:25: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:900:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:899:25: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:900:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:899:25: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:900:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:899:25: branch_false: following ‘false’ branch (when ‘i == 4’)...
branch_false: ...to here
libinput-1.29.2/test/litest-runner.c:903:28: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:904:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:903:28: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:904:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:903:28: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:904:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:903:28: branch_true: following ‘true’ branch (when ‘i != 4’)...
libinput-1.29.2/test/litest-runner.c:904:17: branch_true: ...to here
libinput-1.29.2/test/litest-runner.c:903:28: branch_false: following ‘false’ branch (when ‘i == 4’)...
libinput-1.29.2/test/litest-runner.c:907:9: branch_false: ...to here
libinput-1.29.2/test/litest-runner.c:908:1: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
libinput-1.29.2/test/litest.c:270:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(24)’
libinput-1.29.2/test/litest.c:4839:1: enter_function: entry to ‘litest_logcapture_setup’
libinput-1.29.2/test/litest.c:4841:39: call_function: calling ‘zalloc’ from ‘litest_logcapture_setup’
libinput-1.29.2/test/litest.c:4841:39: return_function: returning to ‘litest_logcapture_setup’ from ‘zalloc’
libinput-1.29.2/test/litest.c:4842:9: call_function: calling ‘litest_context_set_user_data’ from ‘litest_logcapture_setup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
libinput-1.29.2/test/litest.c:861:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/test/litest.c:867:1: enter_function: entry to ‘litest_add_tcase_for_device_with_params’
libinput-1.29.2/test/litest.c:884:9: call_function: calling ‘litest_parameters_permutations’ from ‘litest_add_tcase_for_device_with_params’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
libinput-1.29.2/test/litest.c:861:22: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(80)’
libinput-1.29.2/test/litest.c:867:1: enter_function: entry to ‘litest_add_tcase_for_device_with_params’
libinput-1.29.2/test/litest.c:884:9: call_function: calling ‘litest_parameters_permutations’ from ‘litest_add_tcase_for_device_with_params’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
libinput-1.29.2/test/litest.c:2168:48: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(24)’
libinput-1.29.2/test/litest.c:4839:1: enter_function: entry to ‘litest_logcapture_setup’
libinput-1.29.2/test/litest.c:4841:39: call_function: calling ‘zalloc’ from ‘litest_logcapture_setup’
libinput-1.29.2/test/litest.c:4841:39: return_function: returning to ‘litest_logcapture_setup’ from ‘zalloc’
libinput-1.29.2/test/litest.c:4842:9: call_function: calling ‘litest_context_set_user_data’ from ‘litest_logcapture_setup’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def176]
libinput-1.29.2/test/litest.h:651:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘litest_create_context()’
libinput-1.29.2/test/test-pointer.c:303:51: call_function: inlined call to ‘litest_destroy_contextp’ from ‘pointer_absolute_initial_state’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def177]
libinput-1.29.2/test/litest.h:869:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘litest_add_device(li, -966)’
libinput-1.29.2/test/test-trackpoint.c:209:1: enter_function: entry to ‘trackpoint_topsoftbuttons_left_handed_touchpad’
libinput-1.29.2/test/test-trackpoint.c:217:9: call_function: calling ‘litest_disable_hold_gestures’ from ‘trackpoint_topsoftbuttons_left_handed_touchpad’
libinput-1.29.2/test/test-trackpoint.c:219:35: call_function: inlined call to ‘litest_device_destroyp’ from ‘trackpoint_topsoftbuttons_left_handed_touchpad’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def178]
libinput-1.29.2/test/litest.h:869:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘litest_add_device(li, -987)’
libinput-1.29.2/test/test-trackpoint.c:437:35: call_function: inlined call to ‘litest_device_destroyp’ from ‘trackpoint_palmdetect_require_min_events_timeout’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def179]
libinput-1.29.2/test/test-misc.c:81:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libinput-1.29.2/test/test-misc.c:74:9: acquire_resource: ‘va_start’ called here
libinput-1.29.2/test/test-misc.c:76:16: branch_true: following ‘true’ branch (when ‘type != 4294967295’)...
libinput-1.29.2/test/test-misc.c:77:16: branch_true: ...to here
libinput-1.29.2/test/test-misc.c:76:16: branch_true: following ‘true’ branch (when ‘code != 4294967295’)...
libinput-1.29.2/test/test-misc.c:79:20: branch_true: ...to here
libinput-1.29.2/test/test-misc.c:81:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
libinput-1.29.2/test/test-quirks.c:54:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(16)’
libinput-1.29.2/test/test-quirks.c:1511:1: enter_function: entry to ‘quirks_ctx_ref’
libinput-1.29.2/test/test-quirks.c:1518:35: call_function: calling ‘data_dir_new’ from ‘quirks_ctx_ref’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
libinput-1.29.2/test/test-quirks.c:62:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/test/test-quirks.c:1511:1: enter_function: entry to ‘quirks_ctx_ref’
libinput-1.29.2/test/test-quirks.c:1518:35: call_function: calling ‘data_dir_new’ from ‘quirks_ctx_ref’
Error: CPPCHECK_WARNING (CWE-476): [#def182]
libinput-1.29.2/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): [#def183]
libinput-1.29.2/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.29.2/test/test-quirks.c:1511:1: enter_function: entry to ‘quirks_ctx_ref’
libinput-1.29.2/test/test-quirks.c:1518:35: call_function: calling ‘data_dir_new’ from ‘quirks_ctx_ref’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def184]
libinput-1.29.2/test/test-quirks.c:67:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(strdup_printf("%s/testfile.quirks", &dirname), "w+")’
libinput-1.29.2/test/test-quirks.c:1511:1: enter_function: entry to ‘quirks_ctx_ref’
libinput-1.29.2/test/test-quirks.c:1518:35: call_function: calling ‘data_dir_new’ from ‘quirks_ctx_ref’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
libinput-1.29.2/test/test-quirks.c:67:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/test/test-quirks.c:1511:1: enter_function: entry to ‘quirks_ctx_ref’
libinput-1.29.2/test/test-quirks.c:1518:35: call_function: calling ‘data_dir_new’ from ‘quirks_ctx_ref’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
libinput-1.29.2/test/test-quirks.c:67:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(strdup_printf("%s/testfile.quirks", &dirname), "w+")’
libinput-1.29.2/test/test-quirks.c:1511:1: enter_function: entry to ‘quirks_ctx_ref’
libinput-1.29.2/test/test-quirks.c:1518:35: call_function: calling ‘data_dir_new’ from ‘quirks_ctx_ref’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
libinput-1.29.2/test/test-quirks.c:985:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/test/test-quirks.c:956:1: enter_function: entry to ‘test_attr_parse’
libinput-1.29.2/test/test-quirks.c:975:35: call_function: calling ‘data_dir_new’ from ‘test_attr_parse’
libinput-1.29.2/test/test-quirks.c:975:35: return_function: returning to ‘test_attr_parse’ from ‘data_dir_new’
libinput-1.29.2/test/test-quirks.c:982:12: branch_true: following ‘true’ branch...
libinput-1.29.2/test/test-quirks.c:983:38: branch_true: ...to here
libinput-1.29.2/test/test-quirks.c:985:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
libinput-1.29.2/test/test-quirks.c:985:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data_dir_new(&buf)’
libinput-1.29.2/test/test-quirks.c:956:1: enter_function: entry to ‘test_attr_parse’
libinput-1.29.2/test/test-quirks.c:975:35: call_function: calling ‘data_dir_new’ from ‘test_attr_parse’
libinput-1.29.2/test/test-quirks.c:975:35: return_function: returning to ‘test_attr_parse’ from ‘data_dir_new’
libinput-1.29.2/test/test-quirks.c:982:12: branch_true: following ‘true’ branch...
libinput-1.29.2/test/test-quirks.c:983:38: branch_true: ...to here
libinput-1.29.2/test/test-quirks.c:985:17: danger: ‘data_dir_new(&buf)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-457): [#def189]
libinput-1.29.2/test/test-tablet.c:7260: 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: COMPILER_WARNING (CWE-252): [#def190]
libinput-1.29.2/test/test-utils.c: scope_hint: In function ‘find_files_test’
libinput-1.29.2/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-775): [#def191]
libinput-1.29.2/tools/libinput-debug-tablet-pad.c:263:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(udev_device_get_devnode(libinput_device_get_udev_device(libinput_event_get_device(ev))), 2048)’
libinput-1.29.2/tools/libinput-debug-tablet-pad.c:246:12: branch_false: following ‘false’ branch...
libinput-1.29.2/tools/libinput-debug-tablet-pad.c:249:14: branch_false: ...to here
libinput-1.29.2/tools/libinput-debug-tablet-pad.c:249:12: branch_false: following ‘false’ branch...
libinput-1.29.2/tools/libinput-debug-tablet-pad.c:252:23: branch_false: ...to here
libinput-1.29.2/tools/libinput-debug-tablet-pad.c:256:12: branch_false: following ‘false’ branch...
libinput-1.29.2/tools/libinput-debug-tablet-pad.c:259:19: branch_false: ...to here
libinput-1.29.2/tools/libinput-debug-tablet-pad.c:260:12: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/libinput-debug-tablet-pad.c:261:26: branch_true: ...to here
libinput-1.29.2/tools/libinput-debug-tablet-pad.c:261:26: acquire_resource: opened here
libinput-1.29.2/tools/libinput-debug-tablet-pad.c:262:17: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/libinput-debug-tablet-pad.c:263:17: branch_true: ...to here
libinput-1.29.2/tools/libinput-debug-tablet-pad.c:263:17: danger: ‘open(udev_device_get_devnode(libinput_device_get_udev_device(libinput_event_get_device(ev))), 2048)’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: COMPILER_WARNING (CWE-252): [#def192]
libinput-1.29.2/tools/libinput-record.c: scope_hint: In function ‘signalfd_dispatch’
libinput-1.29.2/tools/libinput-record.c:2105:15: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def193]
libinput-1.29.2/tools/libinput-record.c: scope_hint: In function ‘timefd_dispatch’
libinput-1.29.2/tools/libinput-record.c:2115:15: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
libinput-1.29.2/tools/libinput-record.c:2477:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&syspath)’
libinput-1.29.2/tools/libinput-record.c:2464:9: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/libinput-record.c:2472:40: branch_true: ...to here
libinput-1.29.2/tools/libinput-record.c:2473:23: acquire_memory: allocated here
libinput-1.29.2/tools/libinput-record.c:2474:20: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/tools/libinput-record.c:2477:33: danger: ‘opendir(&syspath)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
libinput-1.29.2/tools/libinput-record.c:2497:25: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.29.2/tools/libinput-record.c:2460:1: enter_function: entry to ‘init_hidraw’
libinput-1.29.2/tools/libinput-record.c:2464:9: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/libinput-record.c:2472:40: branch_true: ...to here
libinput-1.29.2/tools/libinput-record.c:2474:20: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/tools/libinput-record.c:2477:24: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/libinput-record.c:2482:44: branch_true: ...to here
libinput-1.29.2/tools/libinput-record.c:2482:30: call_function: calling ‘strstartswith’ from ‘init_hidraw’
libinput-1.29.2/tools/libinput-record.c:2482:30: return_function: returning to ‘init_hidraw’ from ‘strstartswith’
libinput-1.29.2/tools/libinput-record.c:2482:28: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/libinput-record.c:2485:25: branch_true: ...to here
libinput-1.29.2/tools/libinput-record.c:2490:28: branch_false: following ‘false’ branch...
libinput-1.29.2/tools/libinput-record.c:2493:34: branch_false: ...to here
libinput-1.29.2/tools/libinput-record.c:2493:34: call_function: calling ‘zalloc’ from ‘init_hidraw’
libinput-1.29.2/tools/libinput-record.c:2493:34: return_function: returning to ‘init_hidraw’ from ‘zalloc’
libinput-1.29.2/tools/libinput-record.c:2495:40: call_function: calling ‘safe_strdup’ from ‘init_hidraw’
libinput-1.29.2/tools/libinput-record.c:2495:40: return_function: returning to ‘init_hidraw’ from ‘safe_strdup’
libinput-1.29.2/tools/libinput-record.c:2497:25: danger: ‘zalloc(40)’ leaks here; was allocated at [(28)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/27)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def196]
libinput-1.29.2/tools/libinput-record.c:2503:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libinput-1.29.2/tools/libinput-record.c:2460:1: enter_function: entry to ‘init_hidraw’
libinput-1.29.2/tools/libinput-record.c:2464:9: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/libinput-record.c:2472:40: branch_true: ...to here
libinput-1.29.2/tools/libinput-record.c:2474:20: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/tools/libinput-record.c:2477:24: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/libinput-record.c:2482:44: branch_true: ...to here
libinput-1.29.2/tools/libinput-record.c:2482:30: call_function: calling ‘strstartswith’ from ‘init_hidraw’
libinput-1.29.2/tools/libinput-record.c:2482:30: return_function: returning to ‘init_hidraw’ from ‘strstartswith’
libinput-1.29.2/tools/libinput-record.c:2482:28: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/libinput-record.c:2485:25: branch_true: ...to here
libinput-1.29.2/tools/libinput-record.c:2489:30: acquire_resource: opened here
libinput-1.29.2/tools/libinput-record.c:2490:28: branch_false: following ‘false’ branch...
libinput-1.29.2/tools/libinput-record.c:2493:34: branch_false: ...to here
libinput-1.29.2/tools/libinput-record.c:2493:34: call_function: calling ‘zalloc’ from ‘init_hidraw’
libinput-1.29.2/tools/libinput-record.c:2493:34: return_function: returning to ‘init_hidraw’ from ‘zalloc’
libinput-1.29.2/tools/libinput-record.c:2495:40: call_function: calling ‘safe_strdup’ from ‘init_hidraw’
libinput-1.29.2/tools/libinput-record.c:2495:40: return_function: returning to ‘init_hidraw’ from ‘safe_strdup’
libinput-1.29.2/tools/libinput-record.c:2503:1: danger: leaks here; was opened at [(22)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
libinput-1.29.2/tools/libinput-record.c:2503:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.29.2/tools/libinput-record.c:2460:1: enter_function: entry to ‘init_hidraw’
libinput-1.29.2/tools/libinput-record.c:2464:9: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/libinput-record.c:2472:40: branch_true: ...to here
libinput-1.29.2/tools/libinput-record.c:2474:20: branch_false: following ‘false’ branch...
branch_false: ...to here
libinput-1.29.2/tools/libinput-record.c:2477:24: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/libinput-record.c:2482:44: branch_true: ...to here
libinput-1.29.2/tools/libinput-record.c:2482:30: call_function: calling ‘strstartswith’ from ‘init_hidraw’
libinput-1.29.2/tools/libinput-record.c:2482:30: return_function: returning to ‘init_hidraw’ from ‘strstartswith’
libinput-1.29.2/tools/libinput-record.c:2482:28: branch_true: following ‘true’ branch...
libinput-1.29.2/tools/libinput-record.c:2485:25: branch_true: ...to here
libinput-1.29.2/tools/libinput-record.c:2490:28: branch_false: following ‘false’ branch...
libinput-1.29.2/tools/libinput-record.c:2493:34: branch_false: ...to here
libinput-1.29.2/tools/libinput-record.c:2493:34: call_function: calling ‘zalloc’ from ‘init_hidraw’
libinput-1.29.2/tools/libinput-record.c:2493:34: return_function: returning to ‘init_hidraw’ from ‘zalloc’
libinput-1.29.2/tools/libinput-record.c:2495:40: call_function: calling ‘safe_strdup’ from ‘init_hidraw’
libinput-1.29.2/tools/libinput-record.c:2495:40: return_function: returning to ‘init_hidraw’ from ‘safe_strdup’
libinput-1.29.2/tools/libinput-record.c:2503:1: danger: ‘<unknown>’ leaks here; was allocated at [(35)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/34)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
libinput-1.29.2/tools/libinput-record.c:2749:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx.output_file.name’
libinput-1.29.2/tools/libinput-record.c:2627:1: enter_function: entry to ‘main’
libinput-1.29.2/tools/libinput-record.c:2737:32: call_function: calling ‘safe_strdup’ from ‘main’
libinput-1.29.2/tools/libinput-record.c:2737:32: return_function: returning to ‘main’ from ‘safe_strdup’
libinput-1.29.2/tools/libinput-record.c:2746:12: branch_false: following ‘false’ branch (when ‘all == 0’)...
libinput-1.29.2/tools/libinput-record.c:2748:19: branch_false: ...to here
libinput-1.29.2/tools/libinput-record.c:2748:19: branch_true: following ‘true’ branch (when ‘ndevices > 0’)...
libinput-1.29.2/tools/libinput-record.c:2749:55: branch_true: ...to here
libinput-1.29.2/tools/libinput-record.c:2749:25: danger: ‘ctx.output_file.name’ leaks here; was allocated at [(6)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def199]
libinput-1.29.2/tools/libinput-record.c:2758:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
libinput-1.29.2/tools/libinput-record.c:2627:1: enter_function: entry to ‘main’
libinput-1.29.2/tools/libinput-record.c:2737:32: call_function: calling ‘safe_strdup’ from ‘main’
libinput-1.29.2/tools/libinput-record.c:2737:32: return_function: returning to ‘main’ from ‘safe_strdup’
libinput-1.29.2/tools/libinput-record.c:2739:12: branch_false: following ‘false’ branch...
libinput-1.29.2/tools/libinput-record.c:2746:12: branch_false: ...to here
libinput-1.29.2/tools/libinput-record.c:2746:12: branch_true: following ‘true’ branch (when ‘all != 0’)...
libinput-1.29.2/tools/libinput-record.c:2747:25: branch_true: ...to here
libinput-1.29.2/tools/libinput-record.c:2747:25: call_function: calling ‘all_devices’ from ‘main’
libinput-1.29.2/tools/libinput-record.c:2747:25: return_function: returning to ‘main’ from ‘all_devices’
libinput-1.29.2/tools/libinput-record.c:2758:32: danger: dereference of NULL ‘p’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def200]
libinput-1.29.2/udev/libinput-fuzz-extract.c:64:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(udev_device_get_devnode(device), 0)’
libinput-1.29.2/udev/libinput-fuzz-extract.c:57:12: branch_false: following ‘false’ branch...
libinput-1.29.2/udev/libinput-fuzz-extract.c:60:14: branch_false: ...to here
libinput-1.29.2/udev/libinput-fuzz-extract.c:60:14: acquire_resource: opened here
libinput-1.29.2/udev/libinput-fuzz-extract.c:61:12: branch_false: following ‘false’ branch...
libinput-1.29.2/udev/libinput-fuzz-extract.c:64:14: branch_false: ...to here
libinput-1.29.2/udev/libinput-fuzz-extract.c:64:14: danger: ‘open(udev_device_get_devnode(device), 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def201]
libinput-1.29.2/udev/libinput-fuzz-to-zero.c:57:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(udev_device_get_devnode(device), 2)’
libinput-1.29.2/udev/libinput-fuzz-to-zero.c:50:12: branch_false: following ‘false’ branch...
libinput-1.29.2/udev/libinput-fuzz-to-zero.c:53:14: branch_false: ...to here
libinput-1.29.2/udev/libinput-fuzz-to-zero.c:53:14: acquire_resource: opened here
libinput-1.29.2/udev/libinput-fuzz-to-zero.c:54:12: branch_false: following ‘false’ branch...
libinput-1.29.2/udev/libinput-fuzz-to-zero.c:57:14: branch_false: ...to here
libinput-1.29.2/udev/libinput-fuzz-to-zero.c:57:14: danger: ‘open(udev_device_get_devnode(device), 2)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Scan Properties
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| 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-164.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-gcc-latest-x86_64 |
| project-name | libinput-1.29.2-1.fc44 |
| store-results-to | /tmp/tmpmkj5shp2/libinput-1.29.2-1.fc44.tar.xz |
| time-created | 2025-10-28 19:09:44 |
| time-finished | 2025-10-28 19:12:06 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpmkj5shp2/libinput-1.29.2-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpmkj5shp2/libinput-1.29.2-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |