ID:               28461
 Updated by:       [EMAIL PROTECTED]
 Reported By:      xanthor at xanthor dot tk
-Status:           Suspended
+Status:           Wont fix
 Bug Type:         PCRE related
 Operating System: *
 PHP Version:      4.4.1
 Assigned To:      andrei
 New Comment:

Andrei says this is not possible to fix since we can't tell what the
limit for recursion should be.


Previous Comments:
------------------------------------------------------------------------

[2005-11-20 23:41:25] xanthor at xanthor dot tk

> It's not really useful since it doesn't exist. Try again..
You should have been a bit faster to look at it, while it was online.

I re-paste it here :

#0  0x080ad99c in match (eptr=0x8358fe4 ' ' <repeats 200 times>...,
ecode=0x834faf5 "I", offset_top=6, md=0xbffaa264, ims=0, 
    eptrb=0x0, flags=2) at
/home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:357
357     {
(gdb) bt
#0  0x080ad99c in match (eptr=0x8358fe4 ' ' <repeats 200 times>...,
ecode=0x834faf5 "I", offset_top=6, md=0xbffaa264, ims=0, 
    eptrb=0x0, flags=2) at
/home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:357
#1  0x080adb9b in match (eptr=Variable "eptr" is not available.
) at /home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:747
#2  0x080b1222 in match (eptr=Variable "eptr" is not available.
) at /home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:589
#3  0x080b2327 in match (eptr=Variable "eptr" is not available.
) at
/home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:1123
#4  0x080b1222 in match (eptr=Variable "eptr" is not available.
) at /home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:589
#5  0x080b2327 in match (eptr=Variable "eptr" is not available.
) at
/home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:1123
#6  0x080b1222 in match (eptr=Variable "eptr" is not available.
) at /home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:589
#7  0x080b2327 in match (eptr=Variable "eptr" is not available.
) at
/home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:1123
#8  0x080b1222 in match (eptr=Variable "eptr" is not available.
) at /home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:589
#9  0x080b2327 in match (eptr=Variable "eptr" is not available.
) at
/home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:1123
#10 0x080b1222 in match (eptr=Variable "eptr" is not available.
) at /home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:589
#11 0x080b2327 in match (eptr=Variable "eptr" is not available.
) at
/home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:1123
#12 0x080b1222 in match (eptr=Variable "eptr" is not available.
) at /home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:589
#13 0x080b2327 in match (eptr=Variable "eptr" is not available.
) at
/home/xanthor/temp/web/php-4.4.1/ext/pcre/pcrelib/pcre_exec.c:1123

And same thing again and again...

------------------------------------------------------------------------

[2005-11-20 19:34:05] [EMAIL PROTECTED]

Andrei says this is not possible to fix since we can't tell what the
limit for recursion should be.


------------------------------------------------------------------------

[2005-11-16 04:48:51] xanthor at xanthor dot tk

Still crashes with 4.4.1, increasing the length of the string.

------------------------------------------------------------------------

[2004-12-09 14:57:59] [EMAIL PROTECTED]

This is the standard "PCRE uses on-stack recursion" bug which has been
filed and closed umpteen times.  To reproduce just increase the length
of the string until exhausts your stack space.

One way PHP could mitigate the issue is to to set the match_limit field
in the pcre_extra structure which puts a limit on the depth of the stack
recursion.  

------------------------------------------------------------------------

[2004-12-09 14:13:26] xanthor at xanthor dot tk

Still segfault with PHP 4.3.10RC2 and PCRE Library Version      4.5
01-December-2003

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/28461

-- 
Edit this bug report at http://bugs.php.net/?id=28461&edit=1

Reply via email to