summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2018-03-17 19:02:58 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2018-06-07 11:49:17 +1000
commitc14223fb229255c4e7e2719022c77653630ad28c (patch)
treea8847fc7c782483303a5fc76461d88e25c381006 /.travis.yml
parent5b67d2b955a3ef6bc4ce6fec3b06c660539aa8ce (diff)
downloaddevice-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.yml1
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