commit | 50220dead1650609206efe91f0cc116132d59b3f | [log] [tgz] |
---|---|---|
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | Tue Jan 19 12:34:58 2016 +0100 |
committer | Jiri Kosina <jkosina@suse.cz> | Tue Jan 19 14:09:34 2016 +0100 |
tree | 4310293cab681fe0072c600d32c83ca061c18c01 | |
parent | 5137b354bc8a5c04edb10d83f8bdb0bf8896fd68 [diff] |
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>