Match limit check added to recursion.

This commit is contained in:
Zoltán Herczeg 2015-08-14 09:36:04 +00:00
parent d98800a946
commit 1370a49dfe
2 changed files with 4 additions and 0 deletions

View File

@ -142,6 +142,9 @@ repeats. This issue was found by Karl Skomski with a custom LLVM fuzzer.
38. A bug which was introduced by the single character repetition optimization
was fixed.
39. Match limit check added to recursion. This issue was found by Karl Skomski
with a custom LLVM fuzzer.
Version 10.20 30-June-2015
--------------------------

View File

@ -10251,6 +10251,7 @@ common->currententry->entry = LABEL();
set_jumps(common->currententry->calls, common->currententry->entry);
sljit_emit_fast_enter(compiler, TMP2, 0);
count_match(common);
allocate_stack(common, private_data_size + framesize + alternativesize);
OP1(SLJIT_MOV, SLJIT_MEM1(STACK_TOP), STACK(private_data_size + framesize + alternativesize - 1), TMP2, 0);
copy_private_data(common, ccbegin, ccend, TRUE, private_data_size + framesize + alternativesize, framesize + alternativesize, needs_control_head);