[PATCH] test: dm: fdtdec: Validate FDT size in unit test
Tom Rini
trini at konsulko.com
Wed Dec 10 18:12:51 CET 2025
On Tue, 09 Dec 2025 07:55:38 -0800, Adriana Nicolae wrote:
> The current FDT decoding tests calculate the memory required
> for FDT manipulation by directly adding a fixed margin to
> fdt_totalsize(gd->fdt_blob). The static analyzer flagged
> "gd->fdt_blob->totalsize" as a tainted value being passed
> to fdt_open_into().
>
> Ensure the size is validated by checking that the total size
> is within a reasonable maximum FDT limit for unit tests.
>
> [...]
Applied to u-boot/master, thanks!
[1/1] test: dm: fdtdec: Validate FDT size in unit test
commit: 93d000bc5237a82e74d437b5fc3c5fdf5237df2d
--
Tom
More information about the U-Boot
mailing list