Re: [PATCH] fastboot: Fix off by 1 error

2025-07-22 Thread Tom Rini
On Thu, 17 Jul 2025 09:43:29 +0100, Andrew Goodbody wrote: > strlen only reports length of string not including terminating 0 byte > but this has to be included in length of receiving buffer on copy so > adjust length check to be correct. > > This issue found by Smatch. > > > [...] Applied to

Re: [PATCH] fastboot: Fix off by 1 error

2025-07-18 Thread Mattijs Korpershoek
Hi Andrew, Thank you for the patch. On Thu, Jul 17, 2025 at 09:43, Andrew Goodbody wrote: > strlen only reports length of string not including terminating 0 byte > but this has to be included in length of receiving buffer on copy so > adjust length check to be correct. > > This issue found by