[pcre-dev] [Bug 2126] Segfault due to stack overflow for lon…

Startseite
Nachricht löschen
Autor: admin
Datum:  
To: pcre-dev
Betreff: [pcre-dev] [Bug 2126] Segfault due to stack overflow for long strings matching a recursive regex
https://bugs.exim.org/show_bug.cgi?id=2126

--- Comment #2 from Philip Hazel <ph10@???> ---
1. PCRE 7.8 is very old (released September 2008). The current release is 8.40.
Having said that, however, this is a "frequently reported non-bug". It is easy
to write a regex that uses up the stack. See the pcrestack documentation.

2. The PCRE 8.xx series is in maintenance only mode. Current development is in
the PCRE2 10.xx series.

3. The next release of PCRE2 (due in a month or two) has a new interpretive
matching function that no longer uses the stack (it uses the heap instead).

4. All these versions have facilities for limiting the depth of search. Check
the documentation for "match limit" and "recursion limit".

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