android_kernel_oneplus_msm8998/drivers/input/tablet
Dmitry Torokhov 2c99438cf6 Input: gtco - fix potential out-of-bound access
commit a50829479f58416a013a4ccca791336af3c584c7 upstream.

parse_hid_report_descriptor() has a while (i < length) loop, which
only guarantees that there's at least 1 byte in the buffer, but the
loop body can read multiple bytes which causes out-of-bounds access.

Reported-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-02 09:40:49 +01:00
..
acecad.c
aiptek.c
gtco.c Input: gtco - fix potential out-of-bound access 2017-11-02 09:40:49 +01:00
hanwang.c
kbtab.c Input: kbtab - validate number of endpoints before using them 2017-03-30 09:35:15 +02:00
Kconfig
Makefile
wacom_serial4.c