From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 25 Jan 2016 16:30:35 -0500 Subject: [U-Boot] [PATCH] usb: kbd: Prevent out of bound access In-Reply-To: <1453756130-5306-1-git-send-email-marex@denx.de> References: <1453756130-5306-1-git-send-email-marex@denx.de> Message-ID: <20160125213035.GP3359@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: