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

Cipher#update make the output string modifiable #823

Closed
wants to merge 1 commit into from

Conversation

byroot
Copy link
Member

@byroot byroot commented Dec 10, 2024

[Bug #20937]

If the provided string is shared rb_str_set_len raises an error. So we must call rb_str_modify first to unshare it if necessary.

[Bug #20937]

If the provided string is shared `rb_str_set_len` raises an error.
So we must call `rb_str_modify` first to unshare it if necessary.
@byroot byroot closed this Dec 10, 2024
@rhenium
Copy link
Member

rhenium commented Dec 10, 2024

As I added a comment at https://bugs.ruby-lang.org/issues/20937, I think #824 would be a better fix for this bug.

@byroot
Copy link
Member Author

byroot commented Dec 10, 2024

Absolutely.

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.

2 participants