ANDROID: input: keychord: Fix a slab out-of-bounds read.
authorMohan Srinivasan <srmohan@google.com>
Wed, 26 Jul 2017 19:14:41 +0000 (12:14 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commit92fc7f9aa0298cc112b2893e4e0bcf522f2659a8
tree278a7fcbd644355ff569223d94d3d52a768cb7f5
parent4017c45e8bc6f34710fd3727c5bc18184b26879c
ANDROID: input: keychord: Fix a slab out-of-bounds read.

Fix a slab out of bounds read in keychord_write(), detected by KASAN.

Signed-off-by: Mohan Srinivasan <srmohan@google.com>
Bug: 63962952
Change-Id: Iafef48b5d7283750ac0f39f5aaa767b1c3bf2004

[AmitP: Folded following android-4.9 commit changes into this patch
        a1e4c795e1b6 ("Use %zu to print resid (size_t).")]
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
drivers/input/misc/keychord.c