[pcre-dev] [Bug 1373] New: Conditional results in incorrect …

Página superior
Eliminar este mensaje
Autor: Serge
Fecha:  
A: pcre-dev
Asunto: [pcre-dev] [Bug 1373] New: Conditional results in incorrect match
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1373
           Summary: Conditional results in incorrect match
           Product: PCRE
           Version: 8.31
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: high
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: t.sergiu@???
                CC: pcre-dev@???



Compiling the regex "(?(?=ab)ab)" and exec'ing on "ca" results in the first
(empty) match at position 1 rather than position 0. If, instead, it is exec'ed
on a string not containing 'a', it always results in the (empty) match
occurring at the very end of the string. The expected behavior is to match at
position 0. This seems to be due to an optimization not working as expected.


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