Disable stack checks when running with ASAN in Debug builds

Fixes: https://github.com/quickjs-ng/quickjs/issues/502
This commit is contained in:
Saúl Ibarra Corretgé 2024-09-10 23:47:47 +02:00
parent dc6745a4b8
commit 4be1bcdb5e

View file

@ -2352,7 +2352,7 @@ JSRuntime *JS_GetRuntime(JSContext *ctx)
static void update_stack_limit(JSRuntime *rt) static void update_stack_limit(JSRuntime *rt)
{ {
#if defined(__wasi__) #if defined(__wasi__) || (defined(__ASAN__) && !defined(NDEBUG))
rt->stack_limit = 0; /* no limit */ rt->stack_limit = 0; /* no limit */
#else #else
if (rt->stack_size == 0) { if (rt->stack_size == 0) {