Commit bdbcbe752e93357226cba12a6ce00bbe54cb5db8
1 parent
4feefdcfe9
Exists in
v2017.01-smarct4x
and in
30 other branches
usb: kbd: Prevent out of bound access
Scan code 0x39 is CapsLock, which is not a printable character and thus is not covered by either usb_kbd_numkey_shifted[] or usb_kbd_numkey[]. Fix the scan code check to avoid looking it up in either of the arrays. Signed-off-by: Marek Vasut <marex@denx.de>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
common/usb_kbd.c