Searched hist:"50220 dead1650609206efe91f0cc116132d59b3f" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/hid/ |
H A D | hid-core.c | diff 50220dead1650609206efe91f0cc116132d59b3f Tue Jan 19 05:34:58 CST 2016 Benjamin Tissoires <benjamin.tissoires@redhat.com> HID: core: prevent out-of-bound readings
Plugging a Logitech DJ receiver with KASAN activated raises a bunch of out-of-bound readings.
The fields are allocated up to MAX_USAGE, meaning that potentially, we do not have enough fields to fit the incoming values. Add checks and silence KASAN.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
|