[pcre-dev] [Bug 1816] PCRE2 Demo code failed

Página superior
Eliminar este mensaje
Autor: admin
Fecha:  
A: pcre-dev
Asunto: [pcre-dev] [Bug 1816] PCRE2 Demo code failed
https://bugs.exim.org/show_bug.cgi?id=1816

--- Comment #4 from Boying Xu <xuboying@???> ---
I changed the build flags to use HEAP and now the program works!!!!
-DHEAP_MATCH_RECURSE=1

Test in Perl:
C:\>perl -E "$x='x' x 100000000; $x=~/^(.)+$/;say $1"
x

C:\>perl -E "$x='x' x 1000000000; $x=~/^(.)+$/;say $1"
Out of memory!

Test in C:
#define LEN 1000000 <----Working

#define LEN 10000000 <----Crash

Now PCRE works in similiar behaviour and I can port more scripts to C

Thanks a lot!

--
You are receiving this mail because:
You are on the CC list for the bug.