[PATCH v2] of: fdt: fix overflow caused by fdt_prop extending beyond fdt
Sascha Hauer
s.hauer at pengutronix.de
Mon Nov 25 00:24:26 PST 2024
On Tue, 19 Nov 2024 23:26:04 +0200, Abdelrahman Youssef wrote:
> While parsing FDT, fdt_prop sometimes extends beyond FDT resulting in
> heap-overflow.
>
> dt_ptr_ok() checks a pointer is within bounds of the FDT, so we can use it
> here to fix the issue.
>
>
> [...]
Applied, thanks!
[1/1] of: fdt: fix overflow caused by fdt_prop extending beyond fdt
https://git.pengutronix.de/cgit/barebox/commit/?id=4e9331dd33be (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list