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

Tom Rini
2022-04-29T18:04:10Z

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

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@google.com>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Marek Vasut <marex@denx.de>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!

--
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]