[php-src] PR #22506: Fix GH-17387: crash on unterminated quote in phpdbg lexer

From: Date: Sun, 28 Jun 2026 23:38:13 +0000
Subject: [php-src] PR #22506: Fix GH-17387: crash on unterminated quote in phpdbg lexer
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36724@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22506 Author: iliaal Completes the partial fix from 8.3.17. A lone unterminated quote (e.g. a';) matched no rule in the NORMAL lexer condition, so re2c fell back to a zero-length GENERIC_ID accept and yyleng - unescape_string(yytext) underflowed size_t into a roughly 4GB estrndup. An explicit one-character accept for a bare quote advances the cursor and keeps unescape_string off malformed tokens. The broader cross-condition default-rule cleanup stays with GH-17523. Fixes #17387

« previous php.git-pulls (#36724) next »