[PATCH] cmd: gpt: Fix off by 1 errors
Tom Rini
trini at konsulko.com
Thu Jul 24 03:37:27 CEST 2025
On Wed, 16 Jul 2025 11:55:47 +0100, Andrew Goodbody wrote:
> The buffer for a name to be copied into must also contain the
> terminating 0 byte but strlen returns the length of the string without
> counting that 0 byte. Adjust the length checks to take this into
> account.
>
> This issue found by Smatch.
>
> [...]
Applied to u-boot/master, thanks!
[1/1] cmd: gpt: Fix off by 1 errors
commit: 25d3e0509c7d812e05d21c2c73038dce6fe9d889
--
Tom
More information about the U-Boot
mailing list