From 5fd91b8f0f0f521b4d01d47e77b13faa79ec377f Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 16 Oct 2014 14:08:43 -0700 Subject: [PATCH] SIGSEGV handlers are incompatible with -fsanitize=address --- test/default/sodium_utils2.c | 4 ++++ test/default/sodium_utils3.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/test/default/sodium_utils2.c b/test/default/sodium_utils2.c index 11f1df68..e0d4895f 100644 --- a/test/default/sodium_utils2.c +++ b/test/default/sodium_utils2.c @@ -7,6 +7,10 @@ #define TEST_NAME "sodium_utils2" #include "cmptest.h" +#ifdef __SANITIZE_ADDRESS__ +# error This test requires address sanitizer to be off +#endif + static void segv_handler(int sig) { printf("Intentional segfault / bus error caught\n"); diff --git a/test/default/sodium_utils3.c b/test/default/sodium_utils3.c index f2bcdaee..67fdb31e 100644 --- a/test/default/sodium_utils3.c +++ b/test/default/sodium_utils3.c @@ -7,6 +7,10 @@ #define TEST_NAME "sodium_utils3" #include "cmptest.h" +#ifdef __SANITIZE_ADDRESS__ +# error This test requires address sanitizer to be off +#endif + static void segv_handler(int sig) { printf("Intentional segfault / bus error caught\n");