diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2018-03-17 19:02:58 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-04-11 16:49:38 +1000 |
commit | 27a63cf0742fa75fc51eb6b906a135440a693642 (patch) | |
tree | fc5cdaf5397378550c0984244f5af40b989e0f5e /libfdt/libfdt.h | |
parent | cbc9533eb576090e7b320aae7ea64e87dc79190c (diff) | |
download | device-tree-compiler-27a63cf0742fa75fc51eb6b906a135440a693642.tar.gz |
tests: Use valgrind client requests for better checking
libfdt is never supposed to access memory outside the the blob, or outside
the sub-blocks within it, even if the blob is badly corrupted.
We can leverage valgrind's client requests to do better testing of this.
This adds a vg_prepare_blob() function which marks just the valid parts of
an fdt blob as properly initialized, explicitly marking the rest as
uninitialized. This means valgrind should catch any bad accesses.
We add a call to vg_prepare_blob() to load_blob() so that lots of the
existing testcases will benefit from the extra checking.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt/libfdt.h')
0 files changed, 0 insertions, 0 deletions