diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2018-03-18 00:12:12 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-06-07 11:49:17 +1000 |
commit | 4b8fcc3d015c6b70c74997fb735614c2ef9e6610 (patch) | |
tree | eccb7b7518e7b29c58a26df95d87eec4be112e1e /tests/dumptrees.c | |
parent | c14223fb229255c4e7e2719022c77653630ad28c (diff) | |
download | device-tree-compiler-4b8fcc3d015c6b70c74997fb735614c2ef9e6610.tar.gz |
libfdt: Add fdt_check_full() function
This new function implements a complete and thorough check of an fdt blob's
structure. Given a buffer containing an fdt, it should return 0 only if
the fdt within is structurally sound in all regards. It doesn't check
anything about the blob's contents (i.e. the actual values of the nodes and
properties), of course.
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>
Diffstat (limited to 'tests/dumptrees.c')
-rw-r--r-- | tests/dumptrees.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/dumptrees.c b/tests/dumptrees.c index 87d1c3d..ff5818d 100644 --- a/tests/dumptrees.c +++ b/tests/dumptrees.c @@ -37,6 +37,8 @@ static struct { TREE(test_tree1), TREE(bad_node_char), TREE(bad_node_format), TREE(bad_prop_char), TREE(ovf_size_strings), + TREE(truncated_property), TREE(truncated_string), + TREE(truncated_memrsv), }; #define NUM_TREES (sizeof(trees) / sizeof(trees[0])) |