From 4be1bcdb5ee09333b267fdde6ace8f63c0c88aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 10 Sep 2024 23:47:47 +0200 Subject: [PATCH] Disable stack checks when running with ASAN in Debug builds Fixes: https://github.com/quickjs-ng/quickjs/issues/502 --- quickjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickjs.c b/quickjs.c index 1a48a26..b85952f 100644 --- a/quickjs.c +++ b/quickjs.c @@ -2352,7 +2352,7 @@ JSRuntime *JS_GetRuntime(JSContext *ctx) static void update_stack_limit(JSRuntime *rt) { -#if defined(__wasi__) +#if defined(__wasi__) || (defined(__ASAN__) && !defined(NDEBUG)) rt->stack_limit = 0; /* no limit */ #else if (rt->stack_size == 0) {