aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-10-23 16:46:00 -0700
committerMoyster <oysterized@gmail.com>2018-11-27 16:42:28 +0100
commita955b03bd548b817efb2448617cfa85e31283d6b (patch)
tree00a251048519e6ce21c2afe84dcb3f4e2b978709 /scripts
parentc8d53cd6e731efa326449ccc6292cac871d5ab60 (diff)
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. Bug: 69916367 Change-Id: Ic6a2fda77685b90d7642c09b20f5d57d6d48b726 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> Signed-off-by: Siqi Lin <siqilin@google.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions