From: Xinchen Hui Date: Fri, 16 May 2014 11:11:38 +0000 (+0800) Subject: Fixed invalid read in ext/pdo/tests/pdo_025.phpt(pgsql) X-Git-Tag: POST_PHPNG_MERGE~336 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d85e39cf4ab0e4c7c1ccd2a05741c4e2dc14d34b;p=php Fixed invalid read in ext/pdo/tests/pdo_025.phpt(pgsql) --- diff --git a/Zend/zend_objects_API.c b/Zend/zend_objects_API.c index bd6673c0bb..01a403f66c 100644 --- a/Zend/zend_objects_API.c +++ b/Zend/zend_objects_API.c @@ -79,7 +79,7 @@ ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects zend_uint i; /* Free object properties but don't free object their selves */ - for (i = 1; i < objects->top ; i++) { + for (i = objects->top - 1; i > 0 ; i--) { zend_object *obj = objects->object_buckets[i]; if (IS_OBJ_VALID(obj)) {