Patch 63123 for taint Bug #63123
Patch version 2012-09-21 02:06 UTC
Return to Bug #63123 |
Download this patch
Patch Revisions:
Developer: 274611049@qq.com
--- taint-1.0.0.orig/taint.c 2012-06-23 17:32:10.000000000 +0800
+++ taint-1.0.0/taint.c 2012-09-21 10:00:30.000000000 +0800
@@ -119,7 +119,9 @@
static void php_taint_mark_strings(zval *symbol_table TSRMLS_DC) /* {{{ */ {
zval **ppzval;
HashTable *ht = Z_ARRVAL_P(symbol_table);
+ HashPointer hp;
+ zend_hash_get_pointer(ht, &hp);
for(zend_hash_internal_pointer_reset(ht);
zend_hash_has_more_elements(ht) == SUCCESS;
zend_hash_move_forward(ht)) {
@@ -133,6 +135,7 @@
PHP_TAINT_MARK(*ppzval, PHP_TAINT_MAGIC_POSSIBLE);
}
}
+ zend_hash_set_pointer(ht, &hp);
} /* }}} */
static void taint_pzval_unlock_func(zval *z, zend_free_op *should_free, int unref) /* {{{ */ {
|