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

Array#pop, Array#shift, Array#clear don't check whether array is frozen #3379

Closed
clayton-shopify opened this Issue Jan 6, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@clayton-shopify
Contributor

clayton-shopify commented Jan 6, 2017

> a = [1, 2, 3].freeze
 => [1, 2, 3]
> a.pop
 => 3
> a
 => [1, 2]
> a.shift
 => 1
> a
 => [2]
> a.clear
 => []

This issue was reported by https://hackerone.com/an0n-j

@matz matz closed this in 392d7fb Jan 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment