php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70330 Segmentation Fault with multiple "curl_copy_handle"
Submitted: 2015-08-23 00:50 UTC Modified: -
From: r dot deloge at uni-alteri dot com Assigned:
Status: Closed Package: cURL related
PHP Version: 7.0.0RC1 OS: Linus
Private report: No CVE-ID: None
 [2015-08-23 00:50 UTC] r dot deloge at uni-alteri dot com
Description:
------------
Hi,

There are a bug with PHP 7 (it works with PHP5.4 to 5.6) when there are several calls to the method curl_copy_handle() with several cURL handles.


Test script:
---------------
<?php
//Cause a segmentation fault or a zend_mm_heap corrupted error
$t2 = curl_init();
$t3 = curl_copy_handle($t2);
$t3 = curl_copy_handle($t2);
$t4 = curl_init();
$t3 = curl_copy_handle($t4);
$t5 = curl_init();
$t6 = curl_copy_handle($t5);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-23 05:08 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4df6f2644252de00d70577c00a120ff674fee029
Log: Fixed bug #70330 (Segmentation Fault with multiple &quot;curl_copy_handle&quot;)
 [2015-08-23 05:08 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2015-09-03 18:10 UTC] ab@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4df6f2644252de00d70577c00a120ff674fee029
Log: Fixed bug #70330 (Segmentation Fault with multiple &quot;curl_copy_handle&quot;)
 [2016-07-20 11:36 UTC] davey@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4df6f2644252de00d70577c00a120ff674fee029
Log: Fixed bug #70330 (Segmentation Fault with multiple &quot;curl_copy_handle&quot;)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 05:01:29 2024 UTC