diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2018-07-23 12:16:09 +1000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-07-23 12:16:09 +1000 |
commit | 85bce8b2f06d17a909d9e20358630a2034f381ff (patch) | |
tree | 1a59ab5e5423a547393b67d0791925b132bbf4c3 /Makefile | |
parent | 57f7f9e7bc7cbcf1eb4dc00692d0229c73057d69 (diff) | |
download | dtc-85bce8b2f06d17a909d9e20358630a2034f381ff.zip dtc-85bce8b2f06d17a909d9e20358630a2034f381ff.tar.gz dtc-85bce8b2f06d17a909d9e20358630a2034f381ff.tar.bz2 |
tests: Correction to vg_prepare_blob()
vg_prepare_blob() assumes a valid return from fdt_num_mem_rsv() in order
to make sensible initialization of the valgrind mem checker. Usually
that's fine, but it breaks down on the (deliberately corrupted)
truncated_memrsv testcase.
That led to marking a negative-size (== enormously sized once cast to
size_t) as defined with VALGRIND_MAKE_MEM_DEFINED, which casued valgrind
to freeze up and consume ludicrous amounts of memory until OOMing.
This correction makes us robust in that case.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions