cvs: Zend(PHP_4_3) / zend_execute_API.c
| From: | Stanislav Malyshev | Date: | Wed, 18 May 2005 17:58:09 +0000 |
| Subject: | cvs: Zend(PHP_4_3) / zend_execute_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3664@lists.php.net to get a copy of this message | ||
stas Wed May 18 13:58:09 2005 EDT
Modified files: (Branch: PHP_4_3)
/Zend zend_execute_API.c
Log:
fix #29890 - stack corruption when function call fails
http://cvs.php.net/diff.php/Zend/zend_execute_API.c?r1=1.155.2.8&r2=1.155.2.9&ty=u
Index: Zend/zend_execute_API.c
diff -u Zend/zend_execute_API.c:1.155.2.8 Zend/zend_execute_API.c:1.155.2.9
--- Zend/zend_execute_API.c:1.155.2.8 Wed Nov 3 18:15:05 2004
+++ Zend/zend_execute_API.c Wed May 18 13:58:09 2005
@@ -507,6 +507,11 @@
zval *new_zval;
if (no_separation) {
+ if(i) {
+ /* hack to clean up the stack */
+ zend_ptr_stack_n_push(&EG(argument_stack), 2, (void *) (long) i, NULL);
+ zend_ptr_stack_clear_multiple(TSRMLS_C);
+ }
return FAILURE;
}
ALLOC_ZVAL(new_zval);