mirror of
https://github.com/php/php-src.git
synced 2024-12-05 07:46:06 +08:00
fixed bug, where a linebreak immediately after an opening quote of a value caused a segfault
This commit is contained in:
parent
2ba9681e8e
commit
36222eb4cc
@ -472,7 +472,7 @@ end_raw_value_chars:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Eat leading and trailing double quotes */
|
/* Eat leading and trailing double quotes */
|
||||||
if (yytext[0] == '"' && yytext[yyleng - 1] == '"') {
|
if (yyleng > 1 && yytext[0] == '"' && yytext[yyleng - 1] == '"') {
|
||||||
SCNG(yy_text)++;
|
SCNG(yy_text)++;
|
||||||
yyleng = yyleng - 2;
|
yyleng = yyleng - 2;
|
||||||
} else if (sc) {
|
} else if (sc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user