mirror of
https://github.com/ipxe/ipxe
synced 2026-05-04 03:03:43 +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:
@@ -107,6 +107,7 @@ extern int fdt_u64 ( struct fdt *fdt, unsigned int offset, const char *name,
|
||||
uint64_t *value );
|
||||
extern int fdt_mac ( struct fdt *fdt, unsigned int offset,
|
||||
struct net_device *netdev );
|
||||
extern int fdt_parse ( struct fdt *fdt, const struct fdt_header *hdr );
|
||||
extern int fdt_parse ( struct fdt *fdt, const struct fdt_header *hdr,
|
||||
size_t max_len );
|
||||
|
||||
#endif /* _IPXE_FDT_H */
|
||||
|
||||
Reference in New Issue
Block a user