com php-src: Fixed bug #70295 (Segmentation fault with setrawcookie): NEWS ext/standard/head.c

From: Date: Tue, 18 Aug 2015 23:33:19 +0000
Subject: com php-src: Fixed bug #70295 (Segmentation fault with setrawcookie): NEWS ext/standard/head.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88669@lists.php.net to get a copy of this message
Commit: 4df77a6c5852a8ba0ccb1a10e01a49c71d1f54b5 Author: Bob Weinand <bobwei9@hotmail.com> Wed, 19 Aug 2015 01:33:19 +0200 Parents: 32462a807632922f3f9b1e4c84505901c41a1d7b Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4df77a6c5852a8ba0ccb1a10e01a49c71d1f54b5 Log: Fixed bug #70295 (Segmentation fault with setrawcookie) Bugs: https://bugs.php.net/70295 Changed paths: M NEWS M ext/standard/head.c Diff: diff --git a/NEWS b/NEWS index 39c2f36..a495f10 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,9 @@ PHP NEWS - Core: . Fixed bug causing exception traces with anon classes to be truncated. (Bob) +- Standard: + . Fixed bug #70295 (Segmentation fault with setrawcookie). (Bob) + 20 Aug 2015, PHP 7.0..0 RC 1 - Core: diff --git a/ext/standard/head.c b/ext/standard/head.c index 5a53ae2..215089b 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -141,7 +141,7 @@ PHPAPI int php_setcookie(zend_string *name, zend_string *value, time_t expires, if (!p || *(p + 5) != ' ') { zend_string_free(dt); efree(cookie); - zend_string_free(encoded_value); + zend_string_release(encoded_value); zend_error(E_WARNING, "Expiry date cannot have a year greater than 9999"); return FAILURE; } @@ -155,7 +155,7 @@ PHPAPI int php_setcookie(zend_string *name, zend_string *value, time_t expires, } if (encoded_value) { - zend_string_free(encoded_value); + zend_string_release(encoded_value); } if (path && ZSTR_LEN(path)) {

« previous php.cvs (#88669) next »