libinput-1.26.2-1.fc42

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libinput-1.26.2-build/libinput-1.26.2/src/evdev-totem.c: scope_hint: In function ‘evdev_totem_create’
libinput-1.26.2-build/libinput-1.26.2/src/evdev-totem.c:833:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
libinput-1.26.2-build/libinput-1.26.2/src/libinput-util.h:40: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/libinput-private.h:42: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/evdev.h:36: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/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: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libinput-1.26.2-build/libinput-1.26.2/src/filter-custom.c: scope_hint: In function ‘create_custom_accelerator_filter’
libinput-1.26.2-build/libinput-1.26.2/src/filter-custom.c:438:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.26.2-build/libinput-1.26.2/src/libinput-util.h:40: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/libinput-private.h:42: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/filter.h:33: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/filter-custom.c:29: included_from: Included from here.
#  436|   	f->base.interface = &custom_accelerator_interface;
#  437|   
#  438|-> 	return &f->base;
#  439|   }

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2310:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(16)’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘notify_added_device’
libinput-1.26.2-build/libinput-1.26.2/src/libinput-util.h:40: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/libinput-private.h:42: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:38: included_from: Included from here.
# 2308|   	struct libinput *libinput = device->seat->libinput;
# 2309|   	init_event_base(event, device, type);
# 2310|-> 	libinput_post_event(libinput, event);
# 2311|   }
# 2312|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘keyboard_notify_key’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2440:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.26.2-build/libinput-1.26.2/src/util-time.h:28: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/libinput-util.h:43: included_from: Included from here.
# 2438|   	};
# 2439|   
# 2440|-> 	post_device_event(device, time,
# 2441|   			  LIBINPUT_EVENT_KEYBOARD_KEY,
# 2442|   			  &key_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘pointer_notify_motion’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2464:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2462|   	};
# 2463|   
# 2464|-> 	post_device_event(device, time,
# 2465|   			  LIBINPUT_EVENT_POINTER_MOTION,
# 2466|   			  &motion_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘pointer_notify_motion_absolute’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2486:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2484|   	};
# 2485|   
# 2486|-> 	post_device_event(device, time,
# 2487|   			  LIBINPUT_EVENT_POINTER_MOTION_ABSOLUTE,
# 2488|   			  &motion_absolute_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘pointer_notify_button’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2516:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2514|   	};
# 2515|   
# 2516|-> 	post_device_event(device, time,
# 2517|   			  LIBINPUT_EVENT_POINTER_BUTTON,
# 2518|   			  &button_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘pointer_notify_axis_finger’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2547:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2545|   	*axis_event_legacy = *axis_event;
# 2546|   
# 2547|-> 	post_device_event(device, time,
# 2548|   			  LIBINPUT_EVENT_POINTER_SCROLL_FINGER,
# 2549|   			  &axis_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘pointer_notify_axis_continuous’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2581:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2579|   	*axis_event_legacy = *axis_event;
# 2580|   
# 2581|-> 	post_device_event(device, time,
# 2582|   			  LIBINPUT_EVENT_POINTER_SCROLL_CONTINUOUS,
# 2583|   			  &axis_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘pointer_notify_axis_legacy_wheel’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2613:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2611|   	};
# 2612|   
# 2613|-> 	post_device_event(device, time,
# 2614|   			  LIBINPUT_EVENT_POINTER_AXIS,
# 2615|   			  &axis_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘pointer_notify_axis_wheel’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2642:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(104)’
# 2640|   	};
# 2641|   
# 2642|-> 	post_device_event(device, time,
# 2643|   			  LIBINPUT_EVENT_POINTER_SCROLL_WHEEL,
# 2644|   			  &axis_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘touch_notify_touch_down’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2670:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
# 2668|   	};
# 2669|   
# 2670|-> 	post_device_event(device, time,
# 2671|   			  LIBINPUT_EVENT_TOUCH_DOWN,
# 2672|   			  &touch_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘touch_notify_touch_motion’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2696:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
# 2694|   	};
# 2695|   
# 2696|-> 	post_device_event(device, time,
# 2697|   			  LIBINPUT_EVENT_TOUCH_MOTION,
# 2698|   			  &touch_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘touch_notify_touch_up’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2720:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
# 2718|   	};
# 2719|   
# 2720|-> 	post_device_event(device, time,
# 2721|   			  LIBINPUT_EVENT_TOUCH_UP,
# 2722|   			  &touch_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘touch_notify_touch_cancel’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2744:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
# 2742|   	};
# 2743|   
# 2744|-> 	post_device_event(device, time,
# 2745|   			  LIBINPUT_EVENT_TOUCH_CANCEL,
# 2746|   			  &touch_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘touch_notify_frame’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2764:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
# 2762|   	};
# 2763|   
# 2764|-> 	post_device_event(device, time,
# 2765|   			  LIBINPUT_EVENT_TOUCH_FRAME,
# 2766|   			  &touch_event->base);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘tablet_notify_axis’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2793:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(168)’
# 2791|   	       sizeof(axis_event->changed_axes));
# 2792|   
# 2793|-> 	post_device_event(device,
# 2794|   			  time,
# 2795|   			  LIBINPUT_EVENT_TABLET_TOOL_AXIS,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘tablet_notify_proximity’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2822:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(168)’
# 2820|   	       sizeof(proximity_event->changed_axes));
# 2821|   
# 2822|-> 	post_device_event(device,
# 2823|   			  time,
# 2824|   			  LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘tablet_notify_tip’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2851:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(168)’
# 2849|   	       sizeof(tip_event->changed_axes));
# 2850|   
# 2851|-> 	post_device_event(device,
# 2852|   			  time,
# 2853|   			  LIBINPUT_EVENT_TABLET_TOOL_TIP,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘tablet_notify_button’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2886:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(168)’
# 2884|   	};
# 2885|   
# 2886|-> 	post_device_event(device,
# 2887|   			  time,
# 2888|   			  LIBINPUT_EVENT_TABLET_TOOL_BUTTON,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_button’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2914:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
# 2912|   	};
# 2913|   
# 2914|-> 	post_device_event(device,
# 2915|   			  time,
# 2916|   			  LIBINPUT_EVENT_TABLET_PAD_BUTTON,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_dial’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2942:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
# 2940|   	};
# 2941|   
# 2942|-> 	post_device_event(device,
# 2943|   			  time,
# 2944|   			  LIBINPUT_EVENT_TABLET_PAD_DIAL,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_ring’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:2972:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
# 2970|   	};
# 2971|   
# 2972|-> 	post_device_event(device,
# 2973|   			  time,
# 2974|   			  LIBINPUT_EVENT_TABLET_PAD_RING,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_strip’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:3002:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
# 3000|   	};
# 3001|   
# 3002|-> 	post_device_event(device,
# 3003|   			  time,
# 3004|   			  LIBINPUT_EVENT_TABLET_PAD_STRIP,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_key’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:3024:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
# 3022|   	};
# 3023|   
# 3024|-> 	post_device_event(device,
# 3025|   			  time,
# 3026|   			  LIBINPUT_EVENT_TABLET_PAD_KEY,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘gesture_notify.part.0’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:3058:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(80)’
# 3056|   	};
# 3057|   
# 3058|-> 	post_device_event(device, time, type,
# 3059|   			  &gesture_event->base);
# 3060|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c: scope_hint: In function ‘switch_notify_toggle’
libinput-1.26.2-build/libinput-1.26.2/src/libinput.c:3155:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(32)’
# 3153|   	};
# 3154|   
# 3155|-> 	post_device_event(device, time,
# 3156|   			  LIBINPUT_EVENT_SWITCH_TOGGLE,
# 3157|   			  &switch_event->base);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
libinput-1.26.2-build/libinput-1.26.2/src/quirks.c: scope_hint: In function ‘match_fill_uniq’
libinput-1.26.2-build/libinput-1.26.2/src/quirks.c:1304:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libinput-1.26.2-build/libinput-1.26.2/src/libinput-util.h:40: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/quirks.c:43: included_from: Included from here.
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1302|   
# 1303|   	m->uniq = safe_strdup(str);
# 1304|-> 	slen = strlen(m->uniq);
# 1305|   	if (slen > 1 &&
# 1306|   	    m->uniq[slen - 1] == '"')

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libinput-1.26.2-build/libinput-1.26.2/src/util-strings.c: scope_hint: In function ‘strv_from_argv’
libinput-1.26.2-build/libinput-1.26.2/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): [#def33]
libinput-1.26.2-build/libinput-1.26.2/src/libinput-util.h:40: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/test/test-builddir-lookup.c:25: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/util-strings.h: scope_hint: In function ‘main’
libinput-1.26.2-build/libinput-1.26.2/src/util-strings.h:52:13: warning[-Wanalyzer-malloc-leak]: leak of ‘builddir_lookup()’
libinput-1.26.2-build/libinput-1.26.2/src/util-time.h:28: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/libinput-util.h:43: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/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): [#def34]
libinput-1.26.2-build/libinput-1.26.2/src/util-strings.c:27: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/util-strings.h: scope_hint: In function ‘strv_free.part.0’
libinput-1.26.2-build/libinput-1.26.2/src/util-strings.h:282:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libinput-1.26.2-build/libinput-1.26.2/src/util-strings.h:29: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/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): [#def35]
libinput-1.26.2-build/libinput-1.26.2/test/test-utils.c:43: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/test/test-utils.c: scope_hint: In function ‘double_array_from_string_test_fn’
libinput-1.26.2-build/libinput-1.26.2/test/check-double-macros.h:40:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.26.2-build/libinput-1.26.2/test/check-double-macros.h:60:35: note: in expansion of macro ‘_ck_assert_double_eq’
libinput-1.26.2-build/libinput-1.26.2/test/test-utils.c:1159:25: note: in expansion of macro ‘ck_assert_double_eq’
libinput-1.26.2-build/libinput-1.26.2/test/test-utils.c:26: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/test/test-utils.c:31: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/util-strings.h:29: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/util-strings.h: scope_hint: In function ‘double_array_from_string_test_fn’
libinput-1.26.2-build/libinput-1.26.2/test/test-utils.c: scope_hint: In function ‘double_array_from_string_test_fn’
libinput-1.26.2-build/libinput-1.26.2/test/check-double-macros.h:40:32: note: in definition of macro ‘_ck_assert_double_eq’
libinput-1.26.2-build/libinput-1.26.2/test/test-utils.c:1159:25: note: in expansion of macro ‘ck_assert_double_eq’
libinput-1.26.2-build/libinput-1.26.2/test/check-double-macros.h:40:32: note: in definition of macro ‘_ck_assert_double_eq’
libinput-1.26.2-build/libinput-1.26.2/test/test-utils.c:1159:25: note: in expansion of macro ‘ck_assert_double_eq’
libinput-1.26.2-build/libinput-1.26.2/test/check-double-macros.h:60:35: note: in expansion of macro ‘_ck_assert_double_eq’
libinput-1.26.2-build/libinput-1.26.2/test/test-utils.c:1159: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): [#def36]
libinput-1.26.2-build/libinput-1.26.2/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): [#def37]
libinput-1.26.2-build/libinput-1.26.2/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: GCC_ANALYZER_WARNING (CWE-401): [#def38]
libinput-1.26.2-build/libinput-1.26.2/test/test-path.c: scope_hint: In function ‘path_add_device_fn’
libinput-1.26.2-build/libinput-1.26.2/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.26.2-build/libinput-1.26.2/test/test-path.c:26: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/test/test-path.c:424:9: note: in expansion of macro ‘ck_assert_notnull’
libinput-1.26.2-build/libinput-1.26.2/test/test-path.c:424:9: note: in expansion of macro ‘ck_assert_notnull’
libinput-1.26.2-build/libinput-1.26.2/test/test-path.c:428:9: note: in expansion of macro ‘ck_assert_notnull’
libinput-1.26.2-build/libinput-1.26.2/test/test-path.c:428:9: note: in expansion of macro ‘ck_assert_notnull’
libinput-1.26.2-build/libinput-1.26.2/src/libinput-util.h:40: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/test/litest.h:45: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/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: GCC_ANALYZER_WARNING (CWE-688): [#def39]
libinput-1.26.2-build/libinput-1.26.2/test/test-quirks.c: scope_hint: In function ‘make_data_dir’
libinput-1.26.2-build/libinput-1.26.2/test/test-quirks.c:67:22: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(filename, "w+")’ where non-null expected
libinput-1.26.2-build/libinput-1.26.2/test/test-quirks.c:26: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/libinput-util.h:40: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/test/test-quirks.c:29: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/test/test-quirks.c:30: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/test/test-quirks.c:66:17: note: in expansion of macro ‘litest_assert_notnull’
libinput-1.26.2-build/libinput-1.26.2/test/test-quirks.c:66:17: note: in expansion of macro ‘litest_assert_notnull’
libinput-1.26.2-build/libinput-1.26.2/test/test-quirks.c:66:17: note: in expansion of macro ‘litest_assert_notnull’
libinput-1.26.2-build/libinput-1.26.2/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|   		litest_assert_errno_success(rc);
#   69|   		fclose(fp);

Error: COMPILER_WARNING (CWE-252): [#def40]
libinput-1.26.2-build/libinput-1.26.2/tools/libinput-record.c: scope_hint: In function ‘signalfd_dispatch’
libinput-1.26.2-build/libinput-1.26.2/tools/libinput-record.c:2152:15: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 2152 |         (void)read(fd, &fdsi, sizeof(fdsi));
#      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2150|   	struct signalfd_siginfo fdsi;
# 2151|   
# 2152|-> 	(void)read(fd, &fdsi, sizeof(fdsi));
# 2153|   
# 2154|   	ctx->stop = true;

Error: COMPILER_WARNING (CWE-252): [#def41]
libinput-1.26.2-build/libinput-1.26.2/tools/libinput-record.c: scope_hint: In function ‘timefd_dispatch’
libinput-1.26.2-build/libinput-1.26.2/tools/libinput-record.c:2162:15: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 2162 |         (void)read(fd, discard, sizeof(discard));
#      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2160|   	char discard[64];
# 2161|   
# 2162|-> 	(void)read(fd, discard, sizeof(discard));
# 2163|   
# 2164|   	if (ctx->timestamps.had_events_since_last_time) {

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
libinput-1.26.2-build/libinput-1.26.2/tools/shared.c: scope_hint: In function ‘tools_parse_option’
libinput-1.26.2-build/libinput-1.26.2/tools/shared.c:350:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.26.2-build/libinput-1.26.2/src/builddir.h:29: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/tools/shared.c:41: included_from: Included from here.
libinput-1.26.2-build/libinput-1.26.2/src/util-strings.h:29: included_from: Included from here.
#  348|   		size_t npoints = 0;
#  349|   		double *range = double_array_from_string(optarg, ":", &npoints);
#  350|-> 		if (npoints != 2 || range[0] < 0.0 || range[1] > 1.0 || range[0] >= range[1]) {
#  351|   			free(range);
#  352|   			fprintf(stderr, "Invalid pressure range, must be in format \"min:max\"\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
libinput-1.26.2-build/libinput-1.26.2/tools/shared.c:372:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  370|   		}
#  371|   		for (size_t i = 0; i < 6; i++)
#  372|-> 			options->calibration[i] =  matrix[i];
#  373|   		free(matrix);
#  374|   		break;

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-25.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibinput-1.26.2-1.fc42
store-results-to/tmp/tmpj6yz1mtd/libinput-1.26.2-1.fc42.tar.xz
time-created2024-11-13 01:29:22
time-finished2024-11-13 01:31:30
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpj6yz1mtd/libinput-1.26.2-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpj6yz1mtd/libinput-1.26.2-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9