[U-Boot] [PATCH] usb: kbd: Prevent out of bound access

Tom Rini trini at konsulko.com
Mon Jan 25 22:30:35 CET 2016


On Mon, Jan 25, 2016 at 10:08:50PM +0100, Marek Vasut wrote:

> 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 at denx.de>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160125/82399c9d/attachment.sig>


More information about the U-Boot mailing list