Bug #60264 [Opn->Dup]: stack/memory exhaustion
| From: | aharvey@php.net | Date: | Fri, 11 Nov 2011 12:57:39 +0000 |
| Subject: | Bug #60264 [Opn->Dup]: stack/memory exhaustion | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165047@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60264&edit=1
ID: 60264
Updated by: aharvey@php.net
Reported by: max at cxib dot net
Summary: stack/memory exhaustion
-Status: Open
+Status: Duplicate
Type: Bug
Package: *Regular Expressions
Operating System: linux
PHP Version: 5.4.0RC1
Block user comment: N
Private report: N
New Comment:
Depressingly, this is expected behaviour. See also bug #52818, amongst (many)
others.
Previous Comments:
------------------------------------------------------------------------
[2011-11-11 11:49:11] max at cxib dot net
Description:
------------
pcre allow to stack or heap memory exhaustion
stack
cx () cx64:/www$ cat crash0.php
<?php
preg_match("/((.*)((!?.*)+)\\w+)/iU",str_repeat(" ",4096),$exxx);
?>
cx () cx64:/www$ php crash0.php
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60264&edit=1