[pcre-dev] [Bug 1235] New: Stackoverflow caused by geshi's j…

Page principale
Supprimer ce message
Auteur: Florian Pritz
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Bug 1235] New: Stackoverflow caused by geshi's java regex
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1235
           Summary: Stackoverflow caused by geshi's java regex
           Product: PCRE
           Version: 8.30
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: high
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: bluewind@???
                CC: pcre-dev@???



Created an attachment (id=558)
--> (http://bugs.exim.org/attachment.cgi?id=558)
pcretest example

The attached pcretest causes a segfault on my 64bit machines, 32bit work fine.
Topmost 2 frames from my backtrace:

#0  0x00007ffff7982f11 in match (eptr=0x62a1e6 "——·c  +  ———·z  =  
   6\n", ' ' <repeats 17 times>, "10       100       100", ' ' <repeats 16
times>, "\n\n       10·a  +  100·b  +      c  -      z  =     90\n\n         
a  +   10·b  +  100·c  -      z  =     "..., ecode=0x638feb
"\036<\036D\036O\036T\036>q", mstart=<error reading variable: Cannot access
memory at address 0x7fffff7fed58>, offset_top=<error reading variable: Cannot
access memory at address 0x7fffff7fed54>, md=<error reading variable: Cannot
access memory at address 0x7fffff7fed48>, eptrb=<error reading variable: Cannot
access memory at address 0x7fffff7fed40>, rdepth=10262) at pcre_exec.c:473
#1  0x00007ffff7983cef in match (eptr=0x62a1e6 "——·c  +  ———·z  =  
   6\n", ' ' <repeats 17 times>, "10       100       100", ' ' <repeats 16
times>, "\n\n       10·a  +  100·b  +      c  -      z  =     90\n\n         
a  +   10·b  +  100·c  -      z  =     "..., ecode=0x638fe8 "}",
mstart=0x6279d5 "6\n\n   10a + 100b + c - z = 90\n\n   a + 10b + 100c - z =
198\n\n   \n\n Umformen und sortieren (Variablen alphabetisch links, Konstanten
rechts):\n\n   100a + 10b + c - z = 0\n\n   a + b + c = 6\n\n   10a + 100b
"..., offset_top=6, md=0x7fffffffb770, eptrb=0x0, rdepth=10261) at
pcre_exec.c:1044


I haven't tested if it works in previous pcre versions.

Arch Linux
pcre 8.30


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