php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #63123
Patch 63123 revision 2012-09-21 02:06 UTC by 274611049 at qq dot com
revision 2012-09-20 15:43 UTC by 274611049 at qq dot com

Patch 63123 for taint Bug #63123

Patch version 2012-09-21 02:06 UTC

Return to Bug #63123 | Download this patch
Patch Revisions: 2012-09-21 02:06 UTC | 2012-09-20 15:43 UTC

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-20 23:24:44.000000000 +0800
 @@ -133,6 +133,7 @@
 +++ 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_internal_pointer_reset(ht);
 +	zend_hash_set_pointer(ht, &hp);
   } /* }}} */
   
   static void taint_pzval_unlock_func(zval *z, zend_free_op *should_free, int unref) /* {{{ */ {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 23:01:30 2024 UTC