Skip to content

[pull] master from php:master#1046

Merged
pull[bot] merged 4 commits into
turkdevops:masterfrom
php:master
Jun 29, 2026
Merged

[pull] master from php:master#1046
pull[bot] merged 4 commits into
turkdevops:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Jun 29, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

henderkes and others added 4 commits June 29, 2026 10:51
Saves an offset load every time they're accessed

Closes GH-22287
In the NORMAL condition a lone unterminated quote matched no rule, so
re2c backtracked to a zero-length GENERIC_ID accept. The rule body then
computed yyleng - unescape_string(yytext) as 0 - N, underflowing size_t
into a multi-gigabyte estrndup. Give a bare quote an explicit
one-character accept so the cursor advances and unescape_string is never
reached with a malformed token.

Fixes GH-17387
Closes GH-22506
* PHP-8.4:
  Fix GH-17387: crash on unterminated quote in phpdbg lexer
* PHP-8.5:
  Fix GH-17387: crash on unterminated quote in phpdbg lexer
@pull pull Bot locked and limited conversation to collaborators Jun 29, 2026
@pull pull Bot added the ⤵️ pull label Jun 29, 2026
@pull pull Bot merged commit 10f1d04 into turkdevops:master Jun 29, 2026
0 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants