We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 333f5dd commit 5447473Copy full SHA for 5447473
NEWS
@@ -9,6 +9,9 @@ PHP NEWS
9
. Fixed bug GH-17623 (Broken stack overflow detection for variable
10
compilation). (ilutov)
11
12
+- PHPDBG:
13
+ . Partially fixed bug GH-17387 (Trivial crash in phpdbg lexer). (nielsdos)
14
+
15
13 Feb 2025, PHP 8.3.17
16
17
- Core:
sapi/phpdbg/phpdbg_lexer.l
@@ -160,8 +160,9 @@ INPUT ("\\"[#"']|["]("\\\\"|"\\"["]|[^\n\000"])*["]|[']("\\"[']|"\\\\"|[^\
160
161
<NORMAL>{GENERIC_ID} {
162
phpdbg_init_param(yylval, STR_PARAM);
163
- yylval->str = estrndup(yytext, yyleng - unescape_string(yytext));
164
- yylval->len = yyleng;
+ size_t len = yyleng - unescape_string(yytext);
+ yylval->str = estrndup(yytext, len);
165
+ yylval->len = len;
166
return T_ID;
167
}
168
0 commit comments