Bug #54348 [Opn->Csd]: Crash (Call stack overflow) in ExchangeArray
| From: | nikic@php.net | Date: | Sun, 21 Feb 2016 12:30:14 +0000 |
| Subject: | Bug #54348 [Opn->Csd]: Crash (Call stack overflow) in ExchangeArray | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-199368@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54348&edit=1
ID: 54348
Updated by: nikic@php.net
Reported by: decoder-php at own-hero dot net
Summary: Crash (Call stack overflow) in ExchangeArray
-Status: Open
+Status: Closed
Type: Bug
Package: Reproducible crash
Operating System: Linux x86-64
PHP Version: *
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
This has been fixed in PHP 7.0.
Previous Comments:
------------------------------------------------------------------------
[2014-07-13 02:52:36] yohgaki@php.net
http://3v4l.org/LMNaW
------------------------------------------------------------------------
[2011-03-22 14:02:20] decoder-php at own-hero dot net
Description:
------------
Attached testcase crashes on PHP 5.3.6 due to a call stack overflow.
Test script:
---------------
<?php
$ao = new ArrayObject();
$obj = new ArrayObject($ao);
$ao->exchangeArray($obj);
?>
Actual result:
--------------
==26022== Process terminating with default action of signal 11 (SIGSEGV)
==26022== Access not within mapped region at address 0x7FE801FF8
==26022== at 0x80F319: zend_object_store_get_object (zend_objects_API.c:269)
==26022== by 0x63E719: spl_array_get_hash_table (spl_array.c:86)
==26022== by 0x63E72E: spl_array_get_hash_table (spl_array.c:87)
==26022== by 0x63E72E: spl_array_get_hash_table (spl_array.c:87)
==26022== by 0x63E72E: spl_array_get_hash_table (spl_array.c:87)
==26022== by 0x63E72E: spl_array_get_hash_table (spl_array.c:87)
==26022== by 0x63E72E: spl_array_get_hash_table (spl_array.c:87)
==26022== by 0x63E72E: spl_array_get_hash_table (spl_array.c:87)
==26022== by 0x63E72E: spl_array_get_hash_table (spl_array.c:87)
==26022== by 0x63E72E: spl_array_get_hash_table (spl_array.c:87)
==26022== by 0x63E72E: spl_array_get_hash_table (spl_array.c:87)
==26022== by 0x63E72E: spl_array_get_hash_table (spl_array.c:87)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=54348&edit=1