php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37326 Win32 PHP crash
Submitted: 2006-05-05 11:02 UTC Modified: 2006-05-05 11:16 UTC
From: alex at onix-systems dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.1.4 OS: WinXP
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alex at onix-systems dot com
New email:
PHP Version: OS:

 

 [2006-05-05 11:02 UTC] alex at onix-systems dot com
Description:
------------
Can be reproduced on Win32. Works fine on Linux.
Appieared in PHP-5.1.3 ans still exists in PHP-5.1.4

Code works fine if $a < 1560


Reproduce code:
---------------
<?
$value = "";
for( $a=0; $a < 1561; $a++ ) {
	$value .= "t";
}
$res = preg_split( '/(?:(?:(?:(?<!\\\\)(?:[\\\\](?:[\\\\]{2})*))+[\$])|[^\$])*/', $value );
?>


Expected result:
----------------
nothing in this example

Actual result:
--------------
PHP crash

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-05 11:12 UTC] tony2001@php.net
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.

Not reproducible on Linux.
 [2006-05-05 11:16 UTC] tony2001@php.net
Ah, this is just another stack overflow.
This is expected and actually related to PCRELib, not PHP itself.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC