[pcre-dev] [Bug 725] New: Seg Fault occures when using php's…

Página superior
Eliminar este mensaje
Autor: Markus Schulte
Fecha:  
A: pcre-dev
Asunto: [pcre-dev] [Bug 725] New: Seg Fault occures when using php's preg_replace with an extreme subject (PCRE 7.7)
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=725
           Summary: Seg Fault occures when using php's preg_replace with an
                    extreme subject (PCRE 7.7)
           Product: PCRE
           Version: N/A
          Platform: x86
               URL: http://www.wer-kennt-wen.de
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: markus.schulte@???
                CC: pcre-dev@???



Created an attachment (id=250)
--> (http://bugs.exim.org/attachment.cgi?id=250)
Code to reproduce segmenation fault.

Hi,

i am getting a segmentation fault, when i use preg_replace with an extreme
subject within php. I am using PHP 5.2.6 with PCRE 7.7 on an Ubuntu x86
machine, but the core dump also occurs when using debian on 32 or 64 bit, or an
older version of PCRE.

You can find the file "segFault2.php", which i use to reproduce the seg fault,
in the attachment.

Details:

markusschulte@bart:~/workspace$ php -v
PHP 5.2.6 (cli) (built: Jun 20 2008 18:12:39)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
markusschulte@bart:~/workspace$ pcretest
PCRE version 7.7 2008-05-07

re>

markusschulte@bart:~/workspace$ php segFault2.php
Segmentation fault


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