Bug #68676 [Asn->Csd]: Explicit Double Free
| From: | kalle@php.net | Date: | Mon, 29 Dec 2014 10:03:11 +0000 |
| Subject: | Bug #68676 [Asn->Csd]: Explicit Double Free | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189303@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68676&edit=1
ID: 68676
Updated by: kalle@php.net
Reported by: bugreports at internot dot info
Summary: Explicit Double Free
-Status: Assigned
+Status: Closed
Type: Bug
Package: *General Issues
Operating System: Linux Ubuntu 14.04
PHP Version: master-Git-2014-12-29 (Git)
Assigned To: kalle
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=php-src.git;a=commit;h=2bcf69d073190e4f032d883f3416dea1b027a39e
Log: Fixed bug #68676 (Explicit Double Free)
Previous Comments:
------------------------------------------------------------------------
[2014-12-29 02:23:09] bugreports at internot dot info
Nope.
It's been here since 2002!
# git blame -L 142,143 Zend/zend_ts_hash.c
d5e64b22 (Harald Radi 2002-03-20 21:26:46 +0000 142) tsrm_mutex_free(ht->mx_reader);
d5e64b22 (Harald Radi 2002-03-20 21:26:46 +0000 143) tsrm_mutex_free(ht->mx_reader);
commit d5e64b2287b1a8c38d29af1597af6d63a0f7e68c
Author: Harald Radi <phanto@php.net>
Date: Wed Mar 20 21:26:46 2002 +0000
added thread safe hashtable which allows concurrent
reads but only exclusive writes
------------------------------------------------------------------------
[2014-12-29 02:16:43] bugreports at internot dot info
Description:
------------
Hi,
In /Zend/zend_ts_hash.c:
142 tsrm_mutex_free(ht->mx_reader);
143 tsrm_mutex_free(ht->mx_reader);
This is a double free.
Probably a merge mistake. I'll check it out.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68676&edit=1