[PATCH] autoboot: fix illegal memory access when stop key and delay key are empty
Tom Rini
trini at konsulko.com
Fri Jan 29 00:58:52 CET 2021
On Fri, Jan 15, 2021 at 03:11:49AM +0000, Yuezhang.Mo at sony.com wrote:
> If both stop key and delay key are empty, the length of these
> keys is 0. The subtraction operation will cause the u_int type
> variable to overflow, will cause illegal memory access in key
> input loop.
>
> This commit fixes this bug by using int type instead of u_init.
> Acked-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210128/cee6e92b/attachment.sig>
More information about the U-Boot
mailing list