php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54348 Crash (Call stack overflow) in ExchangeArray
Submitted: 2011-03-22 14:02 UTC Modified: 2016-02-21 12:30 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: decoder-php at own-hero dot net Assigned: nikic (profile)
Status: Closed Package: Reproducible crash
PHP Version: * OS: Linux x86-64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: decoder-php at own-hero dot net
New email:
PHP Version: OS:

 

 [2011-03-22 14:02 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-27 09:07 UTC] stas@php.net
-Type: Security +Type: Bug
 [2014-07-13 02:52 UTC] yohgaki@php.net
-PHP Version: 5.3.6 +PHP Version: *
 [2016-02-21 12:30 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2016-02-21 12:30 UTC] nikic@php.net
This has been fixed in PHP 7.0.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 14:01:29 2024 UTC