#34306 [Opn]: wddx_serialize_value() crashes with long and weird array keys
| From: | sniper@php.net | Date: | Wed, 31 Aug 2005 09:27:11 +0000 |
| Subject: | #34306 [Opn]: wddx_serialize_value() crashes with long and weird array keys | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84227@lists.php.net to get a copy of this message | ||
ID: 34306
Updated by: sniper@php.net
Reported By: dmitrysp at yandex dot ru
Status: Open
Bug Type: WDDX related
Operating System: Windows XP sp2
PHP Version: 5.1.0RC1
New Comment:
Apparently the maximum array key lenght for wddx serializer is 254. It
doesn't matter what the content is.
Previous Comments:
------------------------------------------------------------------------
[2005-08-30 14:10:10] dmitrysp at yandex dot ru
Description:
------------
Apache2 crash.
Try Apache2 + PHP 5.1.0RC1,
Apache2 + PHP 5.1.0-dev (built: Aug 30 2005 08:42:21),
php.exe 4.3.0 console.
szAppName : Apache.exe szAppVer : 2.0.54.0 szModName :
php5ts.dll
szModVer : 5.1.0.0 offset : 001e144d
Reproduce code:
---------------
$str='';
for ($i=1; $i<255; $i++) $str.=chr($i);
$mix=array($str=>1);
$buf=wddx_serialize_value($mix, 'name'); // apache crash here
echo "ok";
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34306&edit=1