[pcre-dev] [Bug 797] critical crash in match function(stack …

トップ ページ
このメッセージを削除
著者: Philip Hazel
日付:  
To: pcre-dev
題目: [pcre-dev] [Bug 797] critical crash in match function(stack overflow)..pcre_exec.c
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #1 from Philip Hazel <ph10@???> 2009-01-07 19:35:55 ---
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).

Philip


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