[pcre-dev] [Bug 2290] Recursion issue

Kezdőlap
Üzenet törlése
Szerző: admin
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 2290] Recursion issue
https://bugs.exim.org/show_bug.cgi?id=2290

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID


--- Comment #2 from Philip Hazel <ph10@???> ---
You appear to have typed too many backslashes. The example from the PCRE manual
works for me (under Linux):

$ pcretest
PCRE version 8.42 2018-03-20

re> "\(([^()]++|(?R))*\)"
data> (ab(cd)ef(gh(ij)))

0: (ab(cd)ef(gh(ij)))
1: (gh(ij))
data>


How are you calling pcre_exec()? PCRE1 (the 8.xx series) is obsolescent, though
I will try to mend very serious bugs. A -5 error is slightly worrying; it
suggests there has been overwriting. I do not understand your reference to
maxOnStackIndexes as I cannot find that string in the source. Nor can I find
numMaxSubExpression. Are these values in the application you are using?

PCRE1 recursion code is messy and I can no longer remember exactly how it
works. In PCRE2 (the 10.xx series) the code has been refactored and no longer
uses the system stack. If you are starting a new application, you should be
using PCRE2 (revised API) because that is where all development is happening.

I don't think this is a bug.

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