mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
One less argument for raisef(); fix #3355
This issue was reported by https://hackerone.com/mg36
This commit is contained in:
@@ -155,7 +155,8 @@ static void
|
||||
check_pos_arg(mrb_state *mrb, int posarg, int n)
|
||||
{
|
||||
if (posarg > 0) {
|
||||
mrb_raisef(mrb, E_ARGUMENT_ERROR, "numbered(%S) after unnumbered(%S)", mrb_fixnum_value(n));
|
||||
mrb_raisef(mrb, E_ARGUMENT_ERROR, "numbered(%S) after unnumbered(%S)",
|
||||
mrb_fixnum_value(n), mrb_fixnum_value(posarg));
|
||||
}
|
||||
if (posarg == -2) {
|
||||
mrb_raisef(mrb, E_ARGUMENT_ERROR, "numbered(%S) after named", mrb_fixnum_value(n));
|
||||
|
||||
Reference in New Issue
Block a user