Skip to content

Commit d54c2a0

Browse files
committed
False effective head detection: fdt_totalsize(p) equal the len of dtb
file should be legitimate Signed-off-by: juiceRv <juicemail@163.com>
1 parent 0869f82 commit d54c2a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fdtdump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ static bool valid_header(char *p, size_t len)
169169
fdt_magic(p) != FDT_MAGIC ||
170170
fdt_version(p) > MAX_VERSION ||
171171
fdt_last_comp_version(p) > MAX_VERSION ||
172-
fdt_totalsize(p) >= len ||
172+
fdt_totalsize(p) > len ||
173173
fdt_off_dt_struct(p) >= len ||
174174
fdt_off_dt_strings(p) >= len)
175175
return 0;

0 commit comments

Comments
 (0)