[PATCH 4/8] usb: sandbox: Check for string end in copy_to_unicode()

Tom Rini trini at konsulko.com
Fri Apr 29 20:03:29 CEST 2022


On Sun, Apr 03, 2022 at 10:39:11AM +0000, Andrew Scull wrote:

> When copying the string in copy_to_unicode(), check for the null
> terminator in each position, not just at the start, to avoid reading
> beyond the end of the string.
> 
> Signed-off-by: Andrew Scull <ascull at google.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Marek Vasut <marex at denx.de>
> Reviewed-by: Simon Glass <sjg at chromium.org>

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/20220429/bfbce3d8/attachment.sig>


More information about the U-Boot mailing list