Skip to content

ResumableParser#<<: call rb_str_modify before shrinking the buffer#1014

Merged
byroot merged 1 commit into
ruby:masterfrom
byroot:fix-resumable-parser-buffering
Jun 17, 2026
Merged

ResumableParser#<<: call rb_str_modify before shrinking the buffer#1014
byroot merged 1 commit into
ruby:masterfrom
byroot:fix-resumable-parser-buffering

Conversation

@byroot

@byroot byroot commented Jun 17, 2026

Copy link
Copy Markdown
Member

Fix: #1013

The string may be shared.

@byroot byroot merged commit 11ed694 into ruby:master Jun 17, 2026
41 of 42 checks passed
@byroot byroot deleted the fix-resumable-parser-buffering branch June 17, 2026 06:34
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.

JSON::ResumableParser#<< raises "can't set length of shared string" (and corrupts the source buffer) when fed after a partial parse

1 participant