com php-src: Fixed bug #65564 stack-buffer-overflow in DateTimeZone stuff caught by AddressSanitizer: ext/date/php_date.c

From: Date: Wed, 16 Oct 2013 08:23:54 +0000
Subject: com php-src: Fixed bug #65564 stack-buffer-overflow in DateTimeZone stuff caught by AddressSanitizer: ext/date/php_date.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73548@lists.php.net to get a copy of this message
Commit: a296e3d032b9c24477b558668f59a15dd7887669 Author: Remi Collet <remi@php.net> Fri, 30 Aug 2013 10:45:33 +0200 Committer: Anatol Belski <ab@php.net> Wed, 16 Oct 2013 01:23:54 -0700 Parents: 3df4c3eb7020e48c063cdce18bf1e54a214891ca Branches: str_size_and_int64 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a296e3d032b9c24477b558668f59a15dd7887669 Log: Fixed bug #65564 stack-buffer-overflow in DateTimeZone stuff caught by AddressSanitizer Bugs: https://bugs.php.net/65564 Changed paths: M ext/date/php_date.c Diff: diff --git a/ext/date/php_date.c b/ext/date/php_date.c index d6f7bc3..1c601d3 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -2306,7 +2306,7 @@ static HashTable *date_object_get_properties_timezone(zval *object TSRMLS_DC) MAKE_STD_ZVAL(zv); ZVAL_LONG(zv, tzobj->type); - zend_hash_update(props, "timezone_type", 14, &zv, sizeof(zval), NULL); + zend_hash_update(props, "timezone_type", 14, &zv, sizeof(zv), NULL); MAKE_STD_ZVAL(zv); switch (tzobj->type) { @@ -2328,7 +2328,7 @@ static HashTable *date_object_get_properties_timezone(zval *object TSRMLS_DC) ZVAL_STRING(zv, tzobj->tzi.z.abbr, 1); break; } - zend_hash_update(props, "timezone", 9, &zv, sizeof(zval), NULL); + zend_hash_update(props, "timezone", 9, &zv, sizeof(zv), NULL); return props; }

« previous php.cvs (#73548) next »