|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-10 12:42 UTC] derick@php.net
[2006-05-10 13:04 UTC] alex at onix-systems dot com
[2006-05-11 20:41 UTC] edink@php.net
[2006-05-12 08:58 UTC] alex at onix-systems dot com
[2006-05-12 09:07 UTC] tony2001@php.net
[2006-05-12 09:28 UTC] alex at onix-systems dot com
[2006-05-12 09:37 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 07:00:01 2025 UTC |
Description: ------------ Can be reproduced on Win32. Works fine under Linux. Appieared in PHP-5.1.3 ans still exists in PHP-5.1.4 The following code results stack overflow and PHP crash. 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