SIGSEGV handlers are incompatible with -fsanitize=address

This commit is contained in:
Frank Denis 2014-10-16 14:08:43 -07:00
parent f6de559ee1
commit 5fd91b8f0f
2 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,10 @@
#define TEST_NAME "sodium_utils2" #define TEST_NAME "sodium_utils2"
#include "cmptest.h" #include "cmptest.h"
#ifdef __SANITIZE_ADDRESS__
# error This test requires address sanitizer to be off
#endif
static void segv_handler(int sig) static void segv_handler(int sig)
{ {
printf("Intentional segfault / bus error caught\n"); printf("Intentional segfault / bus error caught\n");

View File

@ -7,6 +7,10 @@
#define TEST_NAME "sodium_utils3" #define TEST_NAME "sodium_utils3"
#include "cmptest.h" #include "cmptest.h"
#ifdef __SANITIZE_ADDRESS__
# error This test requires address sanitizer to be off
#endif
static void segv_handler(int sig) static void segv_handler(int sig)
{ {
printf("Intentional segfault / bus error caught\n"); printf("Intentional segfault / bus error caught\n");