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

[2.1] Comparable#== needs a recursion guard for missing <=> #1111

Closed
headius opened this issue Oct 10, 2013 · 0 comments · Fixed by #3006
Closed

[2.1] Comparable#== needs a recursion guard for missing <=> #1111

headius opened this issue Oct 10, 2013 · 0 comments · Fixed by #3006

Comments

@headius
Copy link
Member

headius commented Oct 10, 2013

Without a recursion guard, Comparable#== can blow the stack when included into a class that has no <=> defined.

See #1099 and https://bugs.ruby-lang.org/issues/9003 for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant