|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60264 stack/memory exhaustion
Submitted: 2011-11-11 11:49 UTC Modified: 2011-11-11 12:57 UTC
From: max at cxib dot net Assigned:
Status: Duplicate Package: *Regular Expressions
PHP Version: 5.4.0RC1 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: max at cxib dot net
New email:
PHP Version: OS:


 [2011-11-11 11:49 UTC] max at cxib dot net
pcre allow to stack or heap memory exhaustion


cx () cx64:/www$ cat crash0.php
preg_match("/((.*)((!?.*)+)\\w+)/iU",str_repeat(" ",4096),$exxx);
cx () cx64:/www$ php crash0.php
Segmentation fault


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-11 12:57 UTC]
Depressingly, this is expected behaviour. See also bug #52818, amongst (many) 
 [2011-11-11 12:57 UTC]
-Status: Open +Status: Duplicate
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 11:05:53 2022 UTC