[PATCH 1/2] of: fdt: fix length comparison
Sascha Hauer
s.hauer at pengutronix.de
Thu Jun 12 00:44:06 PDT 2025
On Thu, 05 Jun 2025 13:26:06 +0200, Ahmad Fatoum wrote:
> If haystack_len equals needle_len the following memcmp would overflow,
> because needle_len is incremented in the memcmp.
>
>
Applied, thanks!
[1/2] of: fdt: fix length comparison
https://git.pengutronix.de/cgit/barebox/commit/?id=e80ce6356246 (link may not be stable)
[2/2] of: fdt: verify length within bounds before using it
https://git.pengutronix.de/cgit/barebox/commit/?id=b578ab6d4df9 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list