diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2015-06-04 02:40:05 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-06-10 10:39:37 +0200 |
commit | 36222eb4cc9eb13a861e0291671aa15ffa98d4d5 (patch) | |
tree | 9600c7f540dc90bcbd6b383b083f626750c399b7 /Zend/zend_ini_scanner.l | |
parent | 2ba9681e8efaeddb96a0e2e7d43c50df363d8723 (diff) | |
download | php-git-36222eb4cc9eb13a861e0291671aa15ffa98d4d5.tar.gz |
fixed bug, where a linebreak immediately after an opening quote of a value caused a segfault
Diffstat (limited to 'Zend/zend_ini_scanner.l')
-rw-r--r-- | Zend/zend_ini_scanner.l | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |