8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67c1197 commit f31307dCopy full SHA for f31307d
vm.c
@@ -992,10 +992,12 @@ invoke_iseq_block_from_c(rb_thread_t *th, const struct rb_captured_block *captur
992
const rb_iseq_t *iseq = rb_iseq_check(captured->code.iseq);
993
int i, opt_pc;
994
VALUE type = is_lambda ? VM_FRAME_MAGIC_LAMBDA : VM_FRAME_MAGIC_BLOCK;
995
- VALUE *sp = th->cfp->sp;
+ rb_control_frame_t *cfp = th->cfp;
996
+ VALUE *sp = cfp->sp;
997
const rb_callable_method_entry_t *me = th->passed_bmethod_me;
998
th->passed_bmethod_me = NULL;
999
1000
+ CHECK_VM_STACK_OVERFLOW(cfp, argc);
1001
for (i=0; i<argc; i++) {
1002
sp[i] = argv[i];
1003
}
0 commit comments