[PATCH] fastboot: Fix off by 1 error

Tom Rini trini at konsulko.com
Tue Jul 22 21:46:12 CEST 2025


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 u-boot/master, thanks!

[1/1] fastboot: Fix off by 1 error
      commit: 23d2c182d4be9f993a4e4d8f4fc6293e4d5a9ff8
-- 
Tom




More information about the U-Boot mailing list