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

Integer overflow in mrb_str_concat #3360

Closed
clayton-shopify opened this issue Dec 20, 2016 · 0 comments
Closed

Integer overflow in mrb_str_concat #3360

clayton-shopify opened this issue Dec 20, 2016 · 0 comments

Comments

@clayton-shopify
Copy link
Contributor

The following input causes a crash:

a = "a"
31.times { a << a }

The occurs because of an integer overflow here:

len = RSTR_LEN(s1) + RSTR_LEN(s2);

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

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