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

Stack overflow looking up class path for nested singleton classes #3382

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

Comments

Projects
None yet
1 participant
@clayton-shopify
Contributor

clayton-shopify commented Jan 9, 2017

The following input demonstrates a crash:

class << Proc
  class << Proc
    class P
      t
    end
  end
end

MRuby gets stuck in an infinite loop here, presumably because the outer class is the same as the inner class:

mruby/src/class.c

Line 1574 in c4491e4

mrb_value base = mrb_class_path(mrb, outer);

This issue was reported by https://hackerone.com/mg36

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