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

Crashes when using super in instance_eval #3490

Closed
clayton-shopify opened this issue Mar 8, 2017 · 0 comments
Closed

Crashes when using super in instance_eval #3490

clayton-shopify opened this issue Mar 8, 2017 · 0 comments

Comments

@clayton-shopify
Copy link
Contributor

@clayton-shopify clayton-shopify commented Mar 8, 2017

https://hackerone.com/icanthack reported many ways of crashing MRuby by using super within instance_eval. Each of the following inputs result in a crash:

p.instance_eval { super() {1} [ ++1] }
p.instance_eval {break*super() {1} }
p [1]..instance_eval {break*Array,super() {1} }
p 'a'.instance_eval {delete Array d p super() {with1} }
false.instance_eval {break*Array,super() {1} }
p [1].instance_eval {String [1] {1} while dup super() {1} }
[1].instance_eval {String while dup Array String:super() {1} }
[1].instance_eval {String while dup.length String&super() {1} }
[1].instance_eval {String Math:[1] {1} while dup super() {1} }
Math.instance_eval {String@Math while dup Array Array super() {1} }
'a' [1].instance_eval {String Math while$dup. Array String:super() {1} {1} }

Related issue: #3389

matz added a commit that referenced this issue Mar 10, 2017
@matz matz closed this as completed in ff262f2 Mar 10, 2017
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

No branches or pull requests

1 participant