diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2016-02-07 12:12:19 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2016-02-10 00:03:26 +0000 |
commit | 2c9f7ff8e77f13267519311c294eba51e5ea1b38 (patch) | |
tree | ff1a5bc7a4f3bf93e3de9ad9126caceea15d8941 /src | |
parent | 8ea69f926b5c97af51b7ae6666b80643f5456dbd (diff) |
Testsuite: Support running exim under valgrind
Fails mostly thanks to lack of suid handling, but -be tests usable
if you retry after de-suid of eximdir/exim
Diffstat (limited to 'src')
-rw-r--r-- | src/src/store.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/src/store.c b/src/src/store.c index e402835c7..9c1d1d83f 100644 --- a/src/src/store.c +++ b/src/src/store.c @@ -354,7 +354,11 @@ the released memory. */ newlength = bc + b->length - (char *)ptr; #ifndef COMPILE_UTILITY -if (running_in_test_harness) memset(ptr, 0xF0, newlength); +if (running_in_test_harness) + { + (void) VALGRIND_MAKE_MEM_DEFINED(ptr, newlength); + memset(ptr, 0xF0, newlength); + } #endif (void) VALGRIND_MAKE_MEM_NOACCESS(ptr, newlength); yield_length[store_pool] = newlength - (newlength % alignment); |