JIT should return with error when the compiled pattern requires more stack space than the maximum.

This commit is contained in:
Zoltán Herczeg 2015-06-28 13:31:24 +00:00
parent 86eeda5411
commit c5f27e1c18
4 changed files with 16 additions and 1 deletions

View File

@ -177,6 +177,9 @@ within a class.
46. \h within a class was incorrectly compiled in EBCDIC environments.
47. JIT should return with error when the compiled pattern requires
more stack space than the maximum.
Version 10.10 06-March-2015
---------------------------

View File

@ -1104,7 +1104,7 @@ while (cc < ccend)
size = 0;
bracketlen = 0;
if (private_data_ptr > SLJIT_MAX_LOCAL_SIZE)
return;
break;
if (*cc == OP_ONCE || *cc == OP_ONCE_NC || *cc == OP_BRA || *cc == OP_CBRA || *cc == OP_COND)
if (detect_repeat(common, cc))

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long