[pcre-dev] [Bug 704] New: stack overflow crash

Etusivu
Poista viesti
Lähettäjä: Lothar Scholz
Päiväys:  
Vastaanottaja: pcre-dev
Uudet otsikot: [pcre-dev] [Bug 704] stack overflow crash
Aihe: [pcre-dev] [Bug 704] New: stack overflow crash
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=704
           Summary: stack overflow crash
           Product: PCRE
           Version: N/A
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: bug
          Priority: high
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: scholz@???
                CC: pcre-dev@???



If i try to match this line (one single line)

backlog (0.31.1, 0.31.0, 0.30.0, 0.29.0, 0.28.0, 0.26.0, 0.25.0, 0.24.0,
0.23.1, 0.23.0, 0.22.1, 0.22.0, 0.21.3, 0.21.2, 0.21.1, 0.21.0, 0.20.1, 0.20.0,
0.19.0, 0.18.0, 0.17.6, 0.17.5, 0.17.4, 0.17.3, 0.17.2, 0.17.1, 0.17.0, 0.16.0,
0.15.1, 0.15.0, 0.14.4, 0.14.3, 0.14.2, 0.14.1, 0.14.0, 0.13.1, 0.13.0, 0.12.4,
0.12.3, 0.12.2, 0.12.1, 0.12.0, 0.11.0, 0.10.8, 0.10.7, 0.10.6, 0.10.5, 0.10.4,
0.10.3, 0.10.2, 0.10.1, 0.10.0, 0.9.1, 0.9.0, 0.8.1, 0.8.0, 0.7.12, 0.7.11,
0.7.10, 0.7.9, 0.7.8, 0.7.7, 0.7.6, 0.7.5, 0.7.4, 0.7.3, 0.7.2, 0.7.1, 0.7.0,
0.6.6, 0.6.5, 0.6.4, 0.6.3, 0.6.2, 0.6.1, 0.6.0, 0.5.10, 0.5.9, 0.5.8, 0.5.7,
0.5.6, 0.5.5, 0.5.4, 0.5.3, 0.5.2, 0.5.1, 0.5.0, 0.4.0, 0.3.9, 0.3.8, 0.3.7,
0.3.6, 0.3.5, 0.3.4, 0.3.3, 0.3.2, 0.3.1, 0.3.0, 0.2.1, 0.2.0, 0.1.2, 0.1.1,
0.1.0, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1, 0.0.0)

against this 7.6 utf8 regexpr on WinXP:

^([a-zA-Z0-9-_.]+)\s*\(\d+(\.\d+)*\s*(,\s*\d+(\.\d+)*)*\)\s*$

the library crashs with a stack overflow error in pcre_exec.
int vec[200];
pcre_exec(r->expr, NULL, str, len, 0, PCRE_ANCHORED, vec, 200);


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