[pcre-dev] [Bug 2042] New: Stackoverflow processing pattern …

Kezdőlap
Üzenet törlése
Szerző: admin
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 2042] New: Stackoverflow processing pattern "((?:.|\\n)*)"
https://bugs.exim.org/show_bug.cgi?id=2042

            Bug ID: 2042
           Summary: Stackoverflow processing pattern "((?:.|\\n)*)"
           Product: PCRE
           Version: 10.23 (PCRE2)
          Hardware: x86-64
                OS: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: raul.bocanegra.algarra@???
                CC: pcre-dev@???


Created attachment 982
--> https://bugs.exim.org/attachment.cgi?id=982&action=edit
Project files and sources to reproduce the issue in Visual Studio 2015.

Hi,

We have discovered that when the pattern "((?:.|\\n)*)" is processed over a
line of over 800 characters, a stackoverflow exception is thrown.

Platform: Windows 10 with VS 2015.

I am not sure if this is due to what is explained in the match context section
regarding long strings (here:
http://www.pcre.org/current/doc/html/pcre2api.html#SEC16). I don't know how
long is a long string considered.

We of course can use a match context to limit the recursive calls, but we was
wondering if this is a bug or a limitation of the library, because a test on
https://regex101.com/ seems to work properly.
We have also tested it on pcretest and we get the same crash.

Thanks for your work!

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