Autor: Philip Hazel Data: Para: 797 CC: pcre-dev Asunto: Re: [pcre-dev] [Bug 797] New: critical crash in match
function(stack overflow)..pcre_exec.c
On Mon, 29 Dec 2008, dilip wrote:
> javascript engine is useless unless the stack overflow is resolved. suggest a
> PCRE version which resolves the problem or an alternative solution to get
> around the problem.
If you can stand the performance hit, compile PCRE to use the heap
instead of the stack. Even so, you may find you run out of heap with
pathological patterns that recurse and recurse and recurse.
Alternatively, investigate the PCRE facilities for controlling the depth
of recursion (grep the docs for MATCH_LIMIT).