From: Christoph M. Becker Date: Thu, 4 Jun 2015 00:40:05 +0000 (+0200) Subject: fixed bug, where a linebreak immediately after an opening quote of a value caused... X-Git-Tag: php-5.5.27RC1~9^2~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36222eb4cc9eb13a861e0291671aa15ffa98d4d5;p=php fixed bug, where a linebreak immediately after an opening quote of a value caused a segfault --- diff --git a/Zend/zend_ini_scanner.l b/Zend/zend_ini_scanner.l index a0a4df7d49..6019bf2fbc 100644 --- a/Zend/zend_ini_scanner.l +++ b/Zend/zend_ini_scanner.l @@ -472,7 +472,7 @@ end_raw_value_chars: } /* Eat leading and trailing double quotes */ - if (yytext[0] == '"' && yytext[yyleng - 1] == '"') { + if (yyleng > 1 && yytext[0] == '"' && yytext[yyleng - 1] == '"') { SCNG(yy_text)++; yyleng = yyleng - 2; } else if (sc) {