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-06-07 11:49:17 +1000 |
commit | c14223fb229255c4e7e2719022c77653630ad28c (patch) | |
tree | a8847fc7c782483303a5fc76461d88e25c381006 /.travis.yml | |
parent | 5b67d2b955a3ef6bc4ce6fec3b06c660539aa8ce (diff) | |
download | device-tree-compiler-c14223fb229255c4e7e2719022c77653630ad28c.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>
Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 4af3e60..87adfa0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,7 @@ matrix: - addons: apt: packages: + - valgrind script: - make - make check |