php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69485 Double free on zend_list_dtor
Submitted: 2015-04-20 03:36 UTC Modified: -
From: laruence@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: master-Git-2015-04-20 (Git) OS:
Private report: No CVE-ID: None
 [2015-04-20 03:36 UTC] laruence@php.net
Description:
------------
double free on recursively call to list dtor

Test script:
---------------
<?php

class O {
    public $ch;
    public function dummy() {
    }
}

$ch = curl_init();

$o = new O;
$o->ch = $ch;
curl_setopt($ch, CURLOPT_WRITEFUNCTION, array($o, "dummy"));

Expected result:
----------------
non segfault

Actual result:
--------------
segfault

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-20 03:58 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d66045fe73fb646f15a45286313231908e656a37
Log: Fixed bug #69485 (Double free on zend_list_dtor).
 [2015-04-20 03:58 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-07-20 11:39 UTC] davey@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d66045fe73fb646f15a45286313231908e656a37
Log: Fixed bug #69485 (Double free on zend_list_dtor).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC