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

Add arity-checking anywhere it is missing #48

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

headius
Copy link
Contributor

@headius headius commented Apr 12, 2023

As part of jruby/jruby#7751 we are recommending that all extension code manually check the arity of incoming arguments to variable- arity methods, as in CRuby. This ensures that all call paths will be checked, including direct paths from Java or invokedynamic, and avoids array indexing errors in these situations.

As part of jruby/jruby#7751 we are recommending that all extension
code manually check the arity of incoming arguments to variable-
arity methods, as in CRuby. This ensures that all call paths will
be checked, including direct paths from Java or invokedynamic, and
avoids array indexing errors in these situations.
headius added a commit to headius/jruby that referenced this pull request Apr 12, 2023
This will be fixed once ruby/stringio#48 is merged and released.
@headius headius merged commit 06ceff7 into ruby:master Apr 12, 2023
@headius headius deleted the arity_checking_jruby branch April 12, 2023 20:27
@headius
Copy link
Contributor Author

headius commented Apr 12, 2023

@hsbt @jeremyevans @mrkn If we can get this in a small release that would be great. Let me know if you can do it or if I should.

@jeremyevans
Copy link
Contributor

I've never done a stringio release. We should probably ask @nobu, since he is the maintainer and did the last release.

@kou
Copy link
Member

kou commented Apr 13, 2023

I can do it.

@kou
Copy link
Member

kou commented Apr 14, 2023

@headius Released!

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