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

throw ArgumentError instead of SecurityError #6064

Closed
wants to merge 1 commit into from

Conversation

ahorek
Copy link
Contributor

@ahorek ahorek commented Feb 15, 2020

String tests Poison null byte raises error
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

   expected ArgumentError, got #<SecurityError: string contains null byte> with backtrace:
     # ./spec/ffi/string_spec.rb:27:in `block in <main>'
     # ./spec/ffi/string_spec.rb:27:in `block in <main>'
     # ./spec/ffi/string_spec.rb:27:in `block in <main>'

#5948

@headius
Copy link
Member

headius commented Feb 16, 2020

Cherry-picked to update_ffi in bcec463.

@headius headius closed this Feb 16, 2020
@headius headius added this to the JRuby 9.3.0.0 milestone Feb 16, 2020
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.

None yet

2 participants