cvs: ZendEngine2(PHP_5_3) / zend_ini_scanner.l
"Nuno Lopes" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.zend |
|---|---|
| Message-ID | <cvsnlopess1218111720@cvsserver> |
nlopess Thu Aug 7 12:22:00 2008 UTC
Modified files: (Branch: PHP_5_3)
/ZendEngine2 zend_ini_scanner.l
Log:
fix crash: yytext can't be modified because it is mmaped(). strndup() will take care of last zero char
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_ini_scanner.l?r1=1.41.2.2.2.2.2.7&r2=1.41.2.2.2.2.2.8&diff_format=u
Index: ZendEngine2/zend_ini_scanner.l
diff -u ZendEngine2/zend_ini_scanner.l:1.41.2.2.2.2.2.7 ZendEngine2/zend_ini_scanner.l:1.41.2.2.2.2.2.8
--- ZendEngine2/zend_ini_scanner.l:1.41.2.2.2.2.2.7 Mon Apr 7 11:39:14 2008
+++ ZendEngine2/zend_ini_scanner.l Thu Aug 7 12:22:00 2008
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_ini_scanner.l,v 1.41.2.2.2.2.2.7 2008/04/07 11:39:14 scottmac Exp $ */
+/* $Id: zend_ini_scanner.l,v 1.41.2.2.2.2.2.8 2008/08/07 12:22:00 nlopess Exp $ */
#include <errno.h>
#include "zend.h"
@@ -406,7 +406,6 @@
if (yytext[0] == '"' && yytext[yyleng - 1] == '"') {
SCNG(yy_text)++;
yyleng = yyleng - 2;
- yytext[yyleng] = 0;
}
RETURN_TOKEN(TC_RAW, yytext, yyleng);
}
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php