Permalink
Browse files

Expand stack for method_missing; fix #3528

  • Loading branch information...
matz committed Apr 1, 2017
1 parent 9eb2ed0 commit 195af525fba4dcf8900dbf7e67f0e8e3d62f9911
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/vm.c
View
@@ -1227,6 +1227,10 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
mid = missing;
if (n != CALL_MAXARGS) {
mrb_value blk = regs[bidx];
if (a+2 > irep->nregs) {
stack_extend(mrb, a+2, a+n+1);
}
regs[a+1] = mrb_ary_new_from_values(mrb, n, regs+a+1);
regs[a+2] = blk;
n = CALL_MAXARGS;

0 comments on commit 195af52

Please sign in to comment.