On Sun, 3 Apr 2022 at 04:39, Andrew Scull <[email protected]> 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 <[email protected]>
> Cc: Simon Glass <[email protected]>
> Cc: Marek Vasut <[email protected]>
> ---
>  drivers/usb/emul/usb-emul-uclass.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to