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

2022-04-29 Thread Tom Rini
On Sun, Apr 03, 2022 at 10:39:11AM +, 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 > Cc: Simon Glass > Cc: Marek

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

2022-04-11 Thread Simon Glass
On Sun, 3 Apr 2022 at 04:39, 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 > Cc: Simon Glass > Cc: Marek Vasut > ---