From ffcf8998750e7657366527cf609b5af3542f2450 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 13 Nov 2022 23:16:58 +0100 Subject: [PATCH] Improve AX_CHECK_CATCHABLE_SEGV --- m4/ax_check_catchable_segv.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m4/ax_check_catchable_segv.m4 b/m4/ax_check_catchable_segv.m4 index d8c7b683..d1f36d9e 100644 --- a/m4/ax_check_catchable_segv.m4 +++ b/m4/ax_check_catchable_segv.m4 @@ -24,6 +24,8 @@ size_t i; signal(SIGSEGV, sig); signal(SIGBUS, sig); #if !defined(__SANITIZE_ADDRESS__) && !defined(__EMSCRIPTEN__) +*((volatile unsigned char *) -1) = 0xd0; +*((volatile unsigned char *) 1) = 0xd0; for (i = 0; i < 10000000; i += 1024) { x[-i] = x[i] = (unsigned char) i; } #endif free((void *) x);