mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Disable stack checks when running with ASAN in Debug builds
Fixes: https://github.com/quickjs-ng/quickjs/issues/502
This commit is contained in:
parent
dc6745a4b8
commit
4be1bcdb5e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue