From 3860313dd59af568de28f048bccfb644e20ba3b0 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 28 Mar 2025 14:08:18 +0000 Subject: [fdt] Allow for parsing device trees where the length is known in advance Allow for parsing device trees where an external factor (such as a downloaded image length) determines the maximum length, which must be validated against the length within the device tree header. Signed-off-by: Michael Brown --- src/interface/efi/efi_fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interface') diff --git a/src/interface/efi/efi_fdt.c b/src/interface/efi/efi_fdt.c index f81e6ad63..e207f7e6d 100644 --- a/src/interface/efi/efi_fdt.c +++ b/src/interface/efi/efi_fdt.c @@ -54,7 +54,7 @@ static void efi_fdt_init ( void ) { DBGC ( &efi_fdt, "EFIFDT configuration table at %p\n", efi_fdt ); /* Parse as system device tree */ - if ( ( rc = fdt_parse ( &sysfdt, efi_fdt ) ) != 0 ) { + if ( ( rc = fdt_parse ( &sysfdt, efi_fdt, -1UL ) ) != 0 ) { DBGC ( &efi_fdt, "EFIFDT could not parse: %s\n", strerror ( rc ) ); return; -- cgit v1.2.3-55-g7522