mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
SIGSEGV handlers are incompatible with -fsanitize=address
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user