-
Notifications
You must be signed in to change notification settings - Fork 142
Closed
Description
Line 166 in ecfb438
static bool valid_header(char *p, size_t len) |
This function should be modified like this?
static bool valid_header(char *p, size_t len)
{
if (len < sizeof(struct fdt_header) ||
fdt_magic(p) != FDT_MAGIC ||
fdt_version(p) > MAX_VERSION ||
fdt_last_comp_version(p) > MAX_VERSION ||
fdt_totalsize(p) > len ||
fdt_off_dt_struct(p) >= len ||
fdt_off_dt_strings(p) >= len)
return 0;
else
return 1;
}
Metadata
Metadata
Assignees
Labels
No labels