https://bugs.exim.org/show_bug.cgi?id=1816

--- Comment #4 from Boying Xu <[email protected]> ---
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.
-- 
## List details at https://lists.exim.org/mailman/listinfo/pcre-dev 

Reply via email to