eb890c0f77
Currently fdt_check_header() performs only some rudimentary checks, which is not really what the name suggests. This strengthens fdt_check_header() to check as much about the blob as is possible from the header alone: as well as checking the magic number and version, it checks that the total size is sane, and that all the sub-blocks within the blob lie within the total size. * This broadens the meaning of FDT_ERR_TRUNCATED to cover all sorts of improperly terminated blocks as well as just a structure block without FDT_END. * This makes fdt_check_header() only succeed on "complete" blobs, not in-progress sequential write blobs. The only reason this didn't fail before was that this function used to be called by many RO functions which are supposed to also work on incomplete SW blobs. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Simon Glass <sjg@chromium.org>
65 lines
953 B
Text
65 lines
953 B
Text
*.dtb
|
|
*.dts.test.s
|
|
*.test.dts
|
|
tmp.*
|
|
/add_subnode_with_nops
|
|
/addr_size_cells
|
|
/appendprop[12]
|
|
/asm_tree_dump
|
|
/boot-cpuid
|
|
/char_literal
|
|
/check_header
|
|
/check_path
|
|
/del_node
|
|
/del_property
|
|
/dtbs_equal_ordered
|
|
/dtbs_equal_unordered
|
|
/dtb_reverse
|
|
/dumptrees
|
|
/extra-terminating-null
|
|
/find_property
|
|
/get_alias
|
|
/get_mem_rsv
|
|
/get_name
|
|
/get_path
|
|
/get_phandle
|
|
/getprop
|
|
/incbin
|
|
/integer-expressions
|
|
/mangle-layout
|
|
/move_and_save
|
|
/node_check_compatible
|
|
/node_offset_by_compatible
|
|
/node_offset_by_phandle
|
|
/node_offset_by_prop_value
|
|
/nop_node
|
|
/nop_property
|
|
/nopulate
|
|
/notfound
|
|
/open_pack
|
|
/overlay
|
|
/overlay_bad_fixup
|
|
/parent_offset
|
|
/path-references
|
|
/path_offset
|
|
/path_offset_aliases
|
|
/phandle_format
|
|
/property_iterate
|
|
/propname_escapes
|
|
/references
|
|
/root_node
|
|
/rw_tree1
|
|
/set_name
|
|
/setprop
|
|
/setprop_inplace
|
|
/sized_cells
|
|
/string_escapes
|
|
/stringlist
|
|
/subnode_iterate
|
|
/subnode_offset
|
|
/supernode_atdepth_offset
|
|
/sw_tree1
|
|
/sw_states
|
|
/truncated_property
|
|
/utilfdt_test
|
|
/value-labels
|