libinput-1.25.0-3.fc40

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libinput-1.25.0-build/libinput-1.25.0/src/evdev-debounce.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libinput-1.25.0-build/libinput-1.25.0/src/evdev-middle-button.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
libinput-1.25.0-build/libinput-1.25.0/src/evdev-mt-touchpad-buttons.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
libinput-1.25.0-build/libinput-1.25.0/src/evdev-mt-touchpad-edge-scroll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
libinput-1.25.0-build/libinput-1.25.0/src/evdev-mt-touchpad-gestures.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
libinput-1.25.0-build/libinput-1.25.0/src/evdev-mt-touchpad-tap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
libinput-1.25.0-build/libinput-1.25.0/src/evdev-mt-touchpad-thumb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
libinput-1.25.0-build/libinput-1.25.0/src/evdev-tablet-pad.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
libinput-1.25.0-build/libinput-1.25.0/src/evdev-totem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libinput-1.25.0-build/libinput-1.25.0/src/evdev-totem.c: scope_hint: In function ‘evdev_totem_create’
libinput-1.25.0-build/libinput-1.25.0/src/evdev-totem.c:833:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.25.0-build/libinput-1.25.0/src/libinput-util.h:40: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/libinput-private.h:42: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/evdev.h:36: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/evdev-totem.c:25: included_from: Included from here.
#  831|   	return &totem->base;
#  832|   error:
#  833|-> 	totem_interface_destroy(&totem->base);
#  834|   	return NULL;
#  835|   }

Error: CPPCHECK_WARNING: [#def11]
libinput-1.25.0-build/libinput-1.25.0/src/evdev-wheel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
libinput-1.25.0-build/libinput-1.25.0/src/evdev.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
libinput-1.25.0-build/libinput-1.25.0/src/filter-custom.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libinput-1.25.0-build/libinput-1.25.0/src/filter-custom.c: scope_hint: In function ‘create_custom_accelerator_filter’
libinput-1.25.0-build/libinput-1.25.0/src/filter-custom.c:438:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.25.0-build/libinput-1.25.0/src/libinput-util.h:40: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/libinput-private.h:42: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/filter.h:33: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/filter-custom.c:29: included_from: Included from here.
#  436|   	f->base.interface = &custom_accelerator_interface;
#  437|   
#  438|-> 	return &f->base;
#  439|   }

Error: CPPCHECK_WARNING: [#def15]
libinput-1.25.0-build/libinput-1.25.0/src/filter-flat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libinput-1.25.0-build/libinput-1.25.0/src/filter-flat.c: scope_hint: In function ‘create_pointer_accelerator_filter_flat’
libinput-1.25.0-build/libinput-1.25.0/src/filter-flat.c:130:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.25.0-build/libinput-1.25.0/src/libinput-util.h:40: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/libinput-private.h:42: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/filter.h:33: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/filter-flat.c:33: included_from: Included from here.
#  128|   	filter->dpi = dpi;
#  129|   
#  130|-> 	return &filter->base;
#  131|   }

Error: CPPCHECK_WARNING: [#def17]
libinput-1.25.0-build/libinput-1.25.0/src/filter-low-dpi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
libinput-1.25.0-build/libinput-1.25.0/src/filter-mouse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
libinput-1.25.0-build/libinput-1.25.0/src/filter-tablet.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
libinput-1.25.0-build/libinput-1.25.0/src/filter-touchpad-flat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
libinput-1.25.0-build/libinput-1.25.0/src/filter-touchpad-flat.c: scope_hint: In function ‘create_pointer_accelerator_filter_touchpad_flat’
libinput-1.25.0-build/libinput-1.25.0/src/filter-touchpad-flat.c:128:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.25.0-build/libinput-1.25.0/src/libinput-util.h:40: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/libinput-private.h:42: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/filter.h:33: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/filter-touchpad-flat.c:33: included_from: Included from here.
#  126|   	filter->dpi = dpi;
#  127|   
#  128|-> 	return &filter->base;
#  129|   }

Error: CPPCHECK_WARNING: [#def22]
libinput-1.25.0-build/libinput-1.25.0/src/filter-touchpad-x230.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
libinput-1.25.0-build/libinput-1.25.0/src/filter-touchpad.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libinput-1.25.0-build/libinput-1.25.0/src/filter-trackpoint-flat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libinput-1.25.0-build/libinput-1.25.0/src/filter-trackpoint-flat.c: scope_hint: In function ‘create_pointer_accelerator_filter_trackpoint_flat’
libinput-1.25.0-build/libinput-1.25.0/src/filter-trackpoint-flat.c:147:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
libinput-1.25.0-build/libinput-1.25.0/src/libinput-util.h:40: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/libinput-private.h:42: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/filter.h:33: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/filter-trackpoint-flat.c:33: included_from: Included from here.
#  145|   	filter->multiplier = multiplier;
#  146|   
#  147|-> 	return &filter->base;
#  148|   }

Error: CPPCHECK_WARNING: [#def26]
libinput-1.25.0-build/libinput-1.25.0/src/filter-trackpoint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
libinput-1.25.0-build/libinput-1.25.0/src/filter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
libinput-1.25.0-build/libinput-1.25.0/src/libinput-private-config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2302:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(16)’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘notify_added_device’
libinput-1.25.0-build/libinput-1.25.0/src/libinput-util.h:40: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/libinput-private.h:42: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:38: included_from: Included from here.
# 2300|   	struct libinput *libinput = device->seat->libinput;
# 2301|   	init_event_base(event, device, type);
# 2302|-> 	libinput_post_event(libinput, event);
# 2303|   }
# 2304|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘keyboard_notify_key’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2432:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.25.0-build/libinput-1.25.0/src/util-time.h:28: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/libinput-util.h:43: included_from: Included from here.
# 2430|   	};
# 2431|   
# 2432|-> 	post_device_event(device, time,
# 2433|   			  LIBINPUT_EVENT_KEYBOARD_KEY,
# 2434|   			  &key_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘pointer_notify_motion’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2456:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2454|   	};
# 2455|   
# 2456|-> 	post_device_event(device, time,
# 2457|   			  LIBINPUT_EVENT_POINTER_MOTION,
# 2458|   			  &motion_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘pointer_notify_motion_absolute’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2478:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2476|   	};
# 2477|   
# 2478|-> 	post_device_event(device, time,
# 2479|   			  LIBINPUT_EVENT_POINTER_MOTION_ABSOLUTE,
# 2480|   			  &motion_absolute_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘pointer_notify_button’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2508:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2506|   	};
# 2507|   
# 2508|-> 	post_device_event(device, time,
# 2509|   			  LIBINPUT_EVENT_POINTER_BUTTON,
# 2510|   			  &button_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘pointer_notify_axis_finger’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2539:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2537|   	*axis_event_legacy = *axis_event;
# 2538|   
# 2539|-> 	post_device_event(device, time,
# 2540|   			  LIBINPUT_EVENT_POINTER_SCROLL_FINGER,
# 2541|   			  &axis_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘pointer_notify_axis_continuous’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2573:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2571|   	*axis_event_legacy = *axis_event;
# 2572|   
# 2573|-> 	post_device_event(device, time,
# 2574|   			  LIBINPUT_EVENT_POINTER_SCROLL_CONTINUOUS,
# 2575|   			  &axis_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘pointer_notify_axis_legacy_wheel’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2605:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2603|   	};
# 2604|   
# 2605|-> 	post_device_event(device, time,
# 2606|   			  LIBINPUT_EVENT_POINTER_AXIS,
# 2607|   			  &axis_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘pointer_notify_axis_wheel’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2634:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2632|   	};
# 2633|   
# 2634|-> 	post_device_event(device, time,
# 2635|   			  LIBINPUT_EVENT_POINTER_SCROLL_WHEEL,
# 2636|   			  &axis_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘touch_notify_touch_down’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2662:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
# 2660|   	};
# 2661|   
# 2662|-> 	post_device_event(device, time,
# 2663|   			  LIBINPUT_EVENT_TOUCH_DOWN,
# 2664|   			  &touch_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘touch_notify_touch_motion’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2688:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
# 2686|   	};
# 2687|   
# 2688|-> 	post_device_event(device, time,
# 2689|   			  LIBINPUT_EVENT_TOUCH_MOTION,
# 2690|   			  &touch_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘touch_notify_touch_up’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2712:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
# 2710|   	};
# 2711|   
# 2712|-> 	post_device_event(device, time,
# 2713|   			  LIBINPUT_EVENT_TOUCH_UP,
# 2714|   			  &touch_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘touch_notify_touch_cancel’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2736:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
# 2734|   	};
# 2735|   
# 2736|-> 	post_device_event(device, time,
# 2737|   			  LIBINPUT_EVENT_TOUCH_CANCEL,
# 2738|   			  &touch_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘touch_notify_frame’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2756:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
# 2754|   	};
# 2755|   
# 2756|-> 	post_device_event(device, time,
# 2757|   			  LIBINPUT_EVENT_TOUCH_FRAME,
# 2758|   			  &touch_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘tablet_notify_axis’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2785:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(168)’
# 2783|   	       sizeof(axis_event->changed_axes));
# 2784|   
# 2785|-> 	post_device_event(device,
# 2786|   			  time,
# 2787|   			  LIBINPUT_EVENT_TABLET_TOOL_AXIS,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘tablet_notify_proximity’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2814:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(168)’
# 2812|   	       sizeof(proximity_event->changed_axes));
# 2813|   
# 2814|-> 	post_device_event(device,
# 2815|   			  time,
# 2816|   			  LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘tablet_notify_tip’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2843:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(168)’
# 2841|   	       sizeof(tip_event->changed_axes));
# 2842|   
# 2843|-> 	post_device_event(device,
# 2844|   			  time,
# 2845|   			  LIBINPUT_EVENT_TABLET_TOOL_TIP,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘tablet_notify_button’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2878:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(168)’
# 2876|   	};
# 2877|   
# 2878|-> 	post_device_event(device,
# 2879|   			  time,
# 2880|   			  LIBINPUT_EVENT_TABLET_TOOL_BUTTON,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_button’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2906:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2904|   	};
# 2905|   
# 2906|-> 	post_device_event(device,
# 2907|   			  time,
# 2908|   			  LIBINPUT_EVENT_TABLET_PAD_BUTTON,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_ring’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2936:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2934|   	};
# 2935|   
# 2936|-> 	post_device_event(device,
# 2937|   			  time,
# 2938|   			  LIBINPUT_EVENT_TABLET_PAD_RING,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_strip’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2966:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2964|   	};
# 2965|   
# 2966|-> 	post_device_event(device,
# 2967|   			  time,
# 2968|   			  LIBINPUT_EVENT_TABLET_PAD_STRIP,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_key’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:2988:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2986|   	};
# 2987|   
# 2988|-> 	post_device_event(device,
# 2989|   			  time,
# 2990|   			  LIBINPUT_EVENT_TABLET_PAD_KEY,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘gesture_notify.part.0’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:3022:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(80)’
# 3020|   	};
# 3021|   
# 3022|-> 	post_device_event(device, time, type,
# 3023|   			  &gesture_event->base);
# 3024|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c: scope_hint: In function ‘switch_notify_toggle’
libinput-1.25.0-build/libinput-1.25.0/src/libinput.c:3119:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
# 3117|   	};
# 3118|   
# 3119|-> 	post_device_event(device, time,
# 3120|   			  LIBINPUT_EVENT_SWITCH_TOGGLE,
# 3121|   			  &switch_event->base);

Error: CPPCHECK_WARNING: [#def53]
libinput-1.25.0-build/libinput-1.25.0/src/util-prop-parsers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
libinput-1.25.0-build/libinput-1.25.0/src/util-strings.c: scope_hint: In function ‘strv_from_argv’
libinput-1.25.0-build/libinput-1.25.0/src/util-strings.c:85:20: warning[-Wanalyzer-malloc-leak]: leak of ‘safe_strdup(*<unknown>)’
#   83|   	for (int i = 0; i < argc; i++) {
#   84|   		char *copy = safe_strdup(argv[i]);
#   85|-> 		if (!copy) {
#   86|   			strv_free(strv);
#   87|   			return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
libinput-1.25.0-build/libinput-1.25.0/src/libinput-util.h:40: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/test/test-builddir-lookup.c:25: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/util-strings.h: scope_hint: In function ‘main’
libinput-1.25.0-build/libinput-1.25.0/src/util-strings.h:52:13: warning[-Wanalyzer-malloc-leak]: leak of ‘builddir_lookup()’
libinput-1.25.0-build/libinput-1.25.0/src/util-time.h:28: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/libinput-util.h:43: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/test/test-builddir-lookup.c:26: included_from: Included from here.
#   50|   {
#   51|   	/* one NULL, one not NULL is always false */
#   52|-> 	if (str1 && str2)
#   53|   		return strcmp(str1, str2) == 0;
#   54|   	return str1 == str2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
libinput-1.25.0-build/libinput-1.25.0/src/util-strings.c:27: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/util-strings.h: scope_hint: In function ‘strv_free.part.0’
libinput-1.25.0-build/libinput-1.25.0/src/util-strings.h:282:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.25.0-build/libinput-1.25.0/src/util-strings.h:29: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/util-strings.h: scope_hint: In function ‘strv_free.part.0’
#  280|   	}
#  281|   
#  282|-> 	free (strv);
#  283|   }
#  284|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
libinput-1.25.0-build/libinput-1.25.0/test/test-utils.c:42: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/test/test-utils.c: scope_hint: In function ‘double_array_from_string_test_fn’
libinput-1.25.0-build/libinput-1.25.0/test/check-double-macros.h:40:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.25.0-build/libinput-1.25.0/test/check-double-macros.h:60:35: note: in expansion of macro ‘_ck_assert_double_eq’
libinput-1.25.0-build/libinput-1.25.0/test/test-utils.c:1158:25: note: in expansion of macro ‘ck_assert_double_eq’
libinput-1.25.0-build/libinput-1.25.0/test/test-utils.c:26: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/test/test-utils.c:31: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/util-strings.h:29: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/util-strings.h: scope_hint: In function ‘double_array_from_string_test_fn’
libinput-1.25.0-build/libinput-1.25.0/test/test-utils.c: scope_hint: In function ‘double_array_from_string_test_fn’
libinput-1.25.0-build/libinput-1.25.0/test/check-double-macros.h:40:32: note: in definition of macro ‘_ck_assert_double_eq’
libinput-1.25.0-build/libinput-1.25.0/test/test-utils.c:1158:25: note: in expansion of macro ‘ck_assert_double_eq’
libinput-1.25.0-build/libinput-1.25.0/test/check-double-macros.h:40:32: note: in definition of macro ‘_ck_assert_double_eq’
libinput-1.25.0-build/libinput-1.25.0/test/test-utils.c:1158:25: note: in expansion of macro ‘ck_assert_double_eq’
libinput-1.25.0-build/libinput-1.25.0/test/check-double-macros.h:60:35: note: in expansion of macro ‘_ck_assert_double_eq’
libinput-1.25.0-build/libinput-1.25.0/test/test-utils.c:1158:25: note: in expansion of macro ‘ck_assert_double_eq’
#   38|   #define _ck_assert_double_eq(X,Y, epsilon)  \
#   39|   	do { \
#   40|-> 		double _ck_x = X; \
#   41|   		double _ck_y = Y; \
#   42|   		ck_assert_msg(fabs(_ck_x - _ck_y) < epsilon, \

Error: CPPCHECK_WARNING (CWE-252): [#def58]
libinput-1.25.0-build/libinput-1.25.0/test/litest-selftest.c:353: error[leakReturnValNotUsed]: Return value of allocation function 'zalloc' is not stored.
#  351|   START_TEST(zalloc_overflow)
#  352|   {
#  353|-> 	zalloc((size_t)-1);
#  354|   }
#  355|   END_TEST

Error: CPPCHECK_WARNING (CWE-252): [#def59]
libinput-1.25.0-build/libinput-1.25.0/test/litest-selftest.c:366: error[leakReturnValNotUsed]: Return value of allocation function 'zalloc' is not stored.
#  364|   START_TEST(zalloc_too_large)
#  365|   {
#  366|-> 	zalloc(1536 * 1024 + 1);
#  367|   }
#  368|   END_TEST

Error: CPPCHECK_WARNING: [#def60]
libinput-1.25.0-build/libinput-1.25.0/test/test-device.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def61]
libinput-1.25.0-build/libinput-1.25.0/test/test-gestures.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def62]
libinput-1.25.0-build/libinput-1.25.0/test/test-keyboard.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def63]
libinput-1.25.0-build/libinput-1.25.0/test/test-misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def64]
libinput-1.25.0-build/libinput-1.25.0/test/test-pad.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
libinput-1.25.0-build/libinput-1.25.0/test/test-path.c: scope_hint: In function ‘path_add_device_fn’
libinput-1.25.0-build/libinput-1.25.0/test/test-path.c:434:18: warning[-Wanalyzer-malloc-leak]: leak of ‘safe_strdup(libinput_device_get_sysname(libinput_event_get_device(libinput_get_event(li))))’
libinput-1.25.0-build/libinput-1.25.0/test/test-path.c:26: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/test/test-path.c:424:9: note: in expansion of macro ‘ck_assert_notnull’
libinput-1.25.0-build/libinput-1.25.0/test/test-path.c:424:9: note: in expansion of macro ‘ck_assert_notnull’
libinput-1.25.0-build/libinput-1.25.0/test/test-path.c:428:9: note: in expansion of macro ‘ck_assert_notnull’
libinput-1.25.0-build/libinput-1.25.0/test/test-path.c:428:9: note: in expansion of macro ‘ck_assert_notnull’
libinput-1.25.0-build/libinput-1.25.0/src/libinput-util.h:40: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/test/litest.h:45: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/test/test-path.c:34: included_from: Included from here.
#  432|   	litest_assert_empty_queue(li);
#  433|   
#  434|-> 	device = libinput_path_add_device(li,
#  435|   					  libevdev_uinput_get_devnode(dev->uinput));
#  436|   	ck_assert_notnull(device);

Error: CPPCHECK_WARNING: [#def66]
libinput-1.25.0-build/libinput-1.25.0/test/test-pointer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def67]
libinput-1.25.0-build/libinput-1.25.0/test/test-quirks.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def68]
libinput-1.25.0-build/libinput-1.25.0/test/test-quirks.c: scope_hint: In function ‘make_data_dir’
libinput-1.25.0-build/libinput-1.25.0/test/test-quirks.c:67:22: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(filename, "w+")’ where non-null expected
libinput-1.25.0-build/libinput-1.25.0/test/test-quirks.c:26: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/src/libinput-util.h:40: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/test/test-quirks.c:29: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/test/test-quirks.c:30: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/test/test-quirks.c:66:17: note: in expansion of macro ‘litest_assert_notnull’
libinput-1.25.0-build/libinput-1.25.0/test/test-quirks.c:66:17: note: in expansion of macro ‘litest_assert_notnull’
libinput-1.25.0-build/libinput-1.25.0/test/test-quirks.c:66:17: note: in expansion of macro ‘litest_assert_notnull’
libinput-1.25.0-build/libinput-1.25.0/src/util-strings.h:35: included_from: Included from here.
/usr/include/stdio.h:707:12: note: argument 2 of ‘fputs’ must be non-null
#   65|   		fp = fopen(filename, "w+");
#   66|   		litest_assert_notnull(fp);
#   67|-> 		rc = fputs(file_content, fp);
#   68|   		fclose(fp);
#   69|   		litest_assert_int_ge(rc, 0);

Error: CPPCHECK_WARNING: [#def69]
libinput-1.25.0-build/libinput-1.25.0/test/test-tablet.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def70]
libinput-1.25.0-build/libinput-1.25.0/test/test-totem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def71]
libinput-1.25.0-build/libinput-1.25.0/tools/libinput-debug-events.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-252): [#def72]
libinput-1.25.0-build/libinput-1.25.0/tools/libinput-record.c: scope_hint: In function ‘signalfd_dispatch’
libinput-1.25.0-build/libinput-1.25.0/tools/libinput-record.c:2142:15: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 2142 |         (void)read(fd, &fdsi, sizeof(fdsi));
#      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2140|   	struct signalfd_siginfo fdsi;
# 2141|   
# 2142|-> 	(void)read(fd, &fdsi, sizeof(fdsi));
# 2143|   
# 2144|   	ctx->stop = true;

Error: COMPILER_WARNING (CWE-252): [#def73]
libinput-1.25.0-build/libinput-1.25.0/tools/libinput-record.c: scope_hint: In function ‘timefd_dispatch’
libinput-1.25.0-build/libinput-1.25.0/tools/libinput-record.c:2152:15: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 2152 |         (void)read(fd, discard, sizeof(discard));
#      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2150|   	char discard[64];
# 2151|   
# 2152|-> 	(void)read(fd, discard, sizeof(discard));
# 2153|   
# 2154|   	if (ctx->timestamps.had_events_since_last_time) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
libinput-1.25.0-build/libinput-1.25.0/tools/libinput-record.c: scope_hint: In function ‘main’
libinput-1.25.0-build/libinput-1.25.0/tools/libinput-record.c:2816:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
libinput-1.25.0-build/libinput-1.25.0/src/builddir.h:29: included_from: Included from here.
libinput-1.25.0-build/libinput-1.25.0/tools/libinput-record.c:50: included_from: Included from here.
# 2814|   	}
# 2815|   
# 2816|-> 	for (char **p = paths; *p; p++) {
# 2817|   		if (!init_device(&ctx, *p, grab)) {
# 2818|   			goto out;

Error: CPPCHECK_WARNING: [#def75]
libinput-1.25.0-build/libinput-1.25.0/tools/ptraccel-debug.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def76]
libinput-1.25.0-build/libinput-1.25.0/tools/shared.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def77]
libinput-1.25.0-build/libinput-1.25.0/udev/libinput-device-group.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-218.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibinput-1.25.0-3.fc40
store-results-to/tmp/tmpkkxh0t1o/libinput-1.25.0-3.fc40.tar.xz
time-created2024-07-03 14:43:47
time-finished2024-07-03 14:46:11
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpkkxh0t1o/libinput-1.25.0-3.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpkkxh0t1o/libinput-1.25.0-3.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9