Files
android_external_dtc/tests
David Gibson c14223fb22 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>
2018-06-07 11:49:17 +10:00
..
2017-12-15 13:26:57 +11:00
2018-03-07 14:55:39 +11:00
2007-02-15 11:02:44 -06:00
2007-02-15 11:02:44 -06:00
2007-02-15 11:02:44 -06:00
2017-03-06 12:08:53 +11:00
2012-07-08 13:45:21 -05:00
2018-06-07 11:49:14 +10:00
2017-03-06 12:08:53 +11:00
2017-03-06 12:08:53 +11:00
2017-02-24 11:12:50 +11:00
2017-03-06 12:08:53 +11:00
2017-10-26 09:25:14 +02:00
2017-03-06 12:08:53 +11:00
2007-02-15 11:02:44 -06:00
2007-02-15 11:02:44 -06:00
2017-06-15 15:37:07 +08:00
2017-03-06 12:08:53 +11:00