From 432a846e669a44f041860875ede5f0d144e176e5 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 8 Apr 2015 10:18:31 +0200 Subject: [PATCH] unit-tests: Disable AddressSanitizer for threading cleanup function As the cleanup function reads from the correct address on the parent frame, it is currently unclear why AddressSanitizer complains about that pointer dereference. --- src/libstrongswan/tests/suites/test_threading.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libstrongswan/tests/suites/test_threading.c b/src/libstrongswan/tests/suites/test_threading.c index 90ebca62e..cd0101a51 100644 --- a/src/libstrongswan/tests/suites/test_threading.c +++ b/src/libstrongswan/tests/suites/test_threading.c @@ -1214,6 +1214,8 @@ START_TEST(test_cancel_point) } END_TEST +/* not sure why AddressSanitizer complains here, pointer looks fine */ +ADDRESS_SANITIZER_EXCLUDE static void close_fd_ptr(void *fd) { close(*(int*)fd); @@ -1253,6 +1255,8 @@ static void cancellation_read() } } +/* the AddressSaniziter complains about the fd_set here for some reason */ +ADDRESS_SANITIZER_EXCLUDE static void cancellation_select() { int sv[2];