|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-04-27 14:37 UTC] drealecs at gmail dot com
[2018-04-27 14:41 UTC] spam2 at rhsoft dot net
[2018-04-27 14:47 UTC] nikic@php.net
-Status: Open
+Status: Wont fix
[2018-04-27 14:47 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 15:00:01 2025 UTC |
Description: ------------ There seems to be a buffer overflow in all PHP version 4.* and 5.* but not on PHP 7.* Test script: --------------- $string = ''; for ($i = 0; $i < 10000; $i++) { $string .= chr(rand(65, 122)); } echo "Calling preg_match_all()\n"; preg_match_all('/(\D|3)*/', $string, $matches); echo "It didn't broke php\n"; Expected result: ---------------- Calling preg_match_all() It didn't broke php Actual result: -------------- Calling preg_match_all() Segmentation fault