cvs: Zend(PHP_4_3) / zend_compile.c
| From: | Wez Furlong | Date: | Thu, 29 May 2003 09:00:25 +0000 |
| Subject: | cvs: Zend(PHP_4_3) / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1279@lists.php.net to get a copy of this message | ||
wez Thu May 29 05:00:25 2003 EDT
Modified files: (Branch: PHP_4_3)
/Zend zend_compile.c
Log:
Fix for Bug #23285 (Potential Stack overflow in zendlex).
Index: Zend/zend_compile.c
diff -u Zend/zend_compile.c:1.240.2.3 Zend/zend_compile.c:1.240.2.4
--- Zend/zend_compile.c:1.240.2.3 Tue Feb 11 10:44:09 2003
+++ Zend/zend_compile.c Thu May 29 05:00:25 2003
@@ -2450,6 +2450,7 @@
{
int retval;
+again:
if (CG(increment_lineno)) {
CG(zend_lineno)++;
CG(increment_lineno) = 0;
@@ -2461,8 +2462,8 @@
case T_COMMENT:
case T_OPEN_TAG:
case T_WHITESPACE:
- retval = zendlex(zendlval TSRMLS_CC);
- break;
+ goto again;
+
case T_CLOSE_TAG:
if (LANG_SCNG(yy_text)[LANG_SCNG(yy_leng)-1]=='\n'
|| (LANG_SCNG(yy_text)[LANG_SCNG(yy_leng)-2]=='\r' &&
LANG_SCNG(yy_text)[LANG_SCNG(yy_leng)-1])) {