com php-src: Fix leak when creating timezone with null bytes: ext/date/php_date.c

From: Date: Thu, 14 Jul 2016 16:39:16 +0000
Subject: com php-src: Fix leak when creating timezone with null bytes: ext/date/php_date.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-93018@lists.php.net to get a copy of this message
Commit: 411eee7b5ae8b529b10184f98e3f9b02d93ba864 Author: Nikita Popov <nikic@php.net> Thu, 14 Jul 2016 17:43:29 +0200 Parents: 00047fcf843fa5b99c1615b0d65502a43fada924 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=411eee7b5ae8b529b10184f98e3f9b02d93ba864 Log: Fix leak when creating timezone with null bytes Changed paths: M ext/date/php_date.c Diff: diff --git a/ext/date/php_date.c b/ext/date/php_date.c index f494d6c..dbcd9d0 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -3611,6 +3611,7 @@ static int timezone_initialize(php_timezone_obj *tzobj, /*const*/ char *tz, size if (strlen(tz) != tz_len) { php_error_docref(NULL, E_WARNING, "Timezone must not contain null bytes"); + efree(dummy_t); return FAILURE; }

« previous php.cvs (#93018) next »