From 0d2093f7e8825356d4a32291ad080eca862d15b2 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Tue, 21 Jan 2014 00:48:37 +0200 Subject: [PATCH] increase regexp executor recursion limit for deep stack configuration --- src/duk_regexp.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/duk_regexp.h b/src/duk_regexp.h index 33f99138..92d7fb66 100644 --- a/src/duk_regexp.h +++ b/src/duk_regexp.h @@ -17,7 +17,11 @@ #define DUK_RE_COMPILE_TOKEN_LIMIT 100000000L /* 1e8 */ /* regexp execution limits */ +#if defined(DUK_USE_DEEP_C_STACK) +#define DUK_RE_EXECUTE_RECURSION_LIMIT 1000 +#else #define DUK_RE_EXECUTE_RECURSION_LIMIT 100 +#endif #define DUK_RE_EXECUTE_STEPS_LIMIT 1000000000L /* 1e9 */ /* regexp opcodes */