Bug #78472 [Csd]: Crash on unserializing large dataset
| From: | martin at tiogatours dot nl | Date: | Thu, 29 Aug 2019 06:13:18 +0000 |
| Subject: | Bug #78472 [Csd]: Crash on unserializing large dataset | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222477@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78472&edit=1
ID: 78472
User updated by: martin at tiogatours dot nl
Reported by: martin at tiogatours dot nl
Summary: Crash on unserializing large dataset
Status: Closed
Type: Bug
Package: Reproducible crash
Operating System: Windows 10 x64
PHP Version: 7.4.0beta4
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
Thanks! Keep up the good work!
Previous Comments:
------------------------------------------------------------------------
[2019-08-28 15:03:07] nikic@php.net
We fixed a couple of serialization related bugs in 7.4 recently, and both of your examples run fine
on current 7.4 HEAD. So this will be resolved in the next release :)
------------------------------------------------------------------------
[2019-08-28 14:54:17] martin at tiogatours dot nl
Description:
------------
I got unexpected PHP crashes when unserializing a object. There is no recursiveness in the
serialized object as the data is created from a JSON object.
However, when you disable the recursive ArrayObject creation, the script succeeds. Also, when
creating a recursive stdClass(), the problem doesn't exist
Test script:
---------------
Error unserializing with ArrayObject:
https://3v4l.org/hbSRC
This succeeds with the stdClass:
https://3v4l.org/HNXR6
Expected result:
----------------
Valid unserializing
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78472&edit=1