Skip to content

[pull] master from ruby:master#1224

Merged
pull[bot] merged 2 commits into
turkdevops:masterfrom
ruby:master
Jul 19, 2026
Merged

[pull] master from ruby:master#1224
pull[bot] merged 2 commits into
turkdevops:masterfrom
ruby:master

Conversation

@pull

@pull pull Bot commented Jul 19, 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 : )

peterzhu2118 and others added 2 commits July 18, 2026 13:22
The heredoc handler in parse_expression_prefix stores the address of
its stack-local common_whitespace into the heredoc lex mode. When the
heredoc terminator is missing, expect1_heredoc_term reports an error
without popping the lex mode, so the stored pointer outlives the stack
frame and subsequent lexing reads dead stack memory.

Clear the pointer before leaving the handler; the lexer already guards
against NULL.

ruby/prism@70519ed720

Co-authored-by: Claude <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Jul 19, 2026
@pull pull Bot added the ⤵️ pull label Jul 19, 2026
@pull
pull Bot merged commit 7802cdb into turkdevops:master Jul 19, 2026
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