From 2c9f7ff8e77f13267519311c294eba51e5ea1b38 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 7 Feb 2016 12:12:19 +0000 Subject: 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 --- src/src/store.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3