#47799 [Opn->Fbk]: Segfault with Regex

From: Date: Fri, 27 Mar 2009 16:16:34 +0000
Subject: #47799 [Opn->Fbk]: Segfault with Regex
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-135214@lists.php.net to get a copy of this message
ID: 47799 Updated by: felipe@php.net Reported By: mb at insidetheweb dot de -Status: Open +Status: Feedback Bug Type: PCRE related PHP Version: 5.2.9 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2009-03-27 01:09:11] mb at insidetheweb dot de Description: ------------ When i do this Regex #^\{\|(.*?)(?:^\|\+(.*?))?(^(?:((?R))|.)*?)^\|}#msi on larger requests, it causes a seqfault. You just need to be some chars above some kind of limit and you got the error. Reproduce code: --------------- http://cvs.php.net/viewvc.cgi/pear/Text_Wiki/Text/Wiki/Parse/Mediawiki/Table.php?revision=1.11&view=markup Its Text_Wiki_Mediawiki. Expected result: ---------------- HTTPD Seqfault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47799&edit=1

« previous php.bugs (#135214) next »