[pcre-dev] [Bug 1023] New: Infinite loop in match()

Pàgina inicial
Delete this message
Autor: John Lindal
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 1023] New: Infinite loop in match()
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1023
           Summary: Infinite loop in match()
           Product: PCRE
           Version: 8.10
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: bug
          Priority: high
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: exim@???
                CC: pcre-dev@???



Created an attachment (id=403)
--> (http://bugs.exim.org/attachment.cgi?id=403)
File that causes infinite loop

I used the following pattern:

&"(.|\n)+?instead\\n"\n

My call to pcre_exec() generates an endless number of recursive calls to
match(), until the stack overflows. The call is:

pcre_exec(<regex>, NULL, <str>, 20036, 0, 0, <pmatch>, 6);

on the attached file


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