mirror of
https://github.com/ipxe/ipxe
synced 2026-02-05 08:53:52 +03:00
[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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user