[pcre-dev] [Bug 1347] Deep recursion causing SegFault

Top Page
Delete this message
Author: Zoltan Herczeg
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1347] Deep recursion causing SegFault
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1347

Zoltan Herczeg <hzmester@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hzmester@???





--- Comment #5 from Zoltan Herczeg <hzmester@???> 2013-04-17 18:55:37 ---
> - - Do you know if PHP uses the pcrejit option? And if yes, since around
> which version?


Me neither knows PHP, but if it does support pcrejit, that solves your problem.
JIT
1) uses far less stack than the interpreter
2) stack can be allocated on the heap (by mmap, so it grows automatically when
memory is needed)
3) pcrejit checks all stack allocations, so there must not be any memory
overrun (crash) issues
4) runs on all widely used CPUs

When pcre 8.33 arrives (soon) JIT will basically know everything that PCRE
supports.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email