Browse Source

increase regexp executor recursion limit for deep stack configuration

pull/1/head
Sami Vaarala 11 years ago
parent
commit
0d2093f7e8
  1. 4
      src/duk_regexp.h

4
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 */

Loading…
Cancel
Save