diff options
| author | Michael Brown | 2025-03-28 15:08:18 +0100 |
|---|---|---|
| committer | Michael Brown | 2025-03-28 16:11:39 +0100 |
| commit | 3860313dd59af568de28f048bccfb644e20ba3b0 (patch) | |
| tree | cc700121a8f5b3e0178a767344d5b8c6ac95d1e8 /src/interface | |
| parent | [fdt] Allow for the existence of multiple device trees (diff) | |
| download | ipxe-3860313dd59af568de28f048bccfb644e20ba3b0.tar.gz ipxe-3860313dd59af568de28f048bccfb644e20ba3b0.tar.xz ipxe-3860313dd59af568de28f048bccfb644e20ba3b0.zip | |
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/interface')
| -rw-r--r-- | src/interface/efi/efi_fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
