cvs: ZendEngine2 / zend_compile.c

From: Date: Thu, 29 May 2003 09:01:55 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1280@lists.php.net to get a copy of this message
wez Thu May 29 05:01:55 2003 EDT Modified files: /ZendEngine2 zend_compile.c Log: Fix Bug #23285 (Potential Stack Overflow in zendlex). Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.419 ZendEngine2/zend_compile.c:1.420 --- ZendEngine2/zend_compile.c:1.419 Wed May 28 16:42:40 2003 +++ ZendEngine2/zend_compile.c Thu May 29 05:01:55 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.419 2003/05/28 20:42:40 sterling Exp $ */ +/* $Id: zend_compile.c,v 1.420 2003/05/29 09:01:55 wez Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -3351,6 +3351,7 @@ { int retval; +again: if (CG(increment_lineno)) { CG(zend_lineno)++; CG(increment_lineno) = 0; @@ -3363,8 +3364,8 @@ case T_DOC_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])) {

« previous php.zend-engine.cvs (#1280) next »