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

Crash in check_pos_arg #3355

Closed
clayton-shopify opened this Issue Dec 19, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@clayton-shopify
Contributor

clayton-shopify commented Dec 19, 2016

The following input causes a crash:

'%a%1$' % 0

I believe the bug may be here, where an argument to mrb_raisef seems to be missing:

mrb_raisef(mrb, E_ARGUMENT_ERROR, "numbered(%S) after unnumbered(%S)", mrb_fixnum_value(n));

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

@matz matz closed this in 5e3077c Dec 21, 2016

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