com php-src: Fixed invalid read in ext/pdo/tests/pdo_02 5.phpt(pgsql): Zend/zend_objects_API.c
| From: | Xinchen Hui | Date: | Fri, 16 May 2014 11:11:38 +0000 |
| Subject: | com php-src: Fixed invalid read in ext/pdo/tests/pdo_02 5.phpt(pgsql): Zend/zend_objects_API.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78411@lists.php.net to get a copy of this message | ||
Commit: d85e39cf4ab0e4c7c1ccd2a05741c4e2dc14d34b
Author: Xinchen Hui <laruence@php.net> Fri, 16 May 2014 19:11:38 +0800
Parents: 68598900910893642bad279a3486382746831b09
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d85e39cf4ab0e4c7c1ccd2a05741c4e2dc14d34b
Log:
Fixed invalid read in ext/pdo/tests/pdo_025.phpt(pgsql)
Changed paths:
M Zend/zend_objects_API.c
Diff:
diff --git a/Zend/zend_objects_API.c b/Zend/zend_objects_API.c
index bd6673c..01a403f 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)) {