Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure shared buffer is copied on mutation #117

Merged
merged 4 commits into from
Feb 20, 2025

Conversation

tenderworks
Copy link
Contributor

We need to ensure shared buffers are made independent on mutation. Otherwise we could end up mutating unrelated string buffers.

We need to ensure shared buffers are made independent on mutation.
Otherwise we could end up mutating unrelated string buffers.

Co-Authored-By: Alan Wu <[email protected]>
@kou kou merged commit 5101cfb into ruby:master Feb 20, 2025
47 checks passed
@kou
Copy link
Member

kou commented Feb 20, 2025

Thanks.

matzbot pushed a commit to ruby/ruby that referenced this pull request Feb 20, 2025
(ruby/stringio#117)

We need to ensure shared buffers are made independent on mutation.
Otherwise we could end up mutating unrelated string buffers.

---------

ruby/stringio@5101cfb030

Co-authored-by: Aaron Patterson <[email protected]>
Co-authored-by: Alan Wu <[email protected]>
Co-authored-by: Aaron Patterson <[email protected]>
Co-authored-by: Sutou Kouhei <[email protected]>
mrzasa pushed a commit to mrzasa/ruby that referenced this pull request Feb 21, 2025
(ruby/stringio#117)

We need to ensure shared buffers are made independent on mutation.
Otherwise we could end up mutating unrelated string buffers.

---------

ruby/stringio@5101cfb030

Co-authored-by: Aaron Patterson <[email protected]>
Co-authored-by: Alan Wu <[email protected]>
Co-authored-by: Aaron Patterson <[email protected]>
Co-authored-by: Sutou Kouhei <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants