Skip to content

Prevent buffer over-read when generating EOF error#988

Merged
byroot merged 1 commit into
ruby:masterfrom
byroot:late-escape
May 29, 2026
Merged

Prevent buffer over-read when generating EOF error#988
byroot merged 1 commit into
ruby:masterfrom
byroot:late-escape

Conversation

@byroot
Copy link
Copy Markdown
Member

@byroot byroot commented May 29, 2026

When reaching EOS right after an escape the cursor is one byte too far.

When reaching EOS right after an escape the cursor is
one byte too far.

Reported-By: Yuhang Wu <yuhang@depthfirst.com>
@byroot byroot merged commit 3f44b26 into ruby:master May 29, 2026
42 checks passed
@byroot byroot deleted the late-escape branch May 29, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant