mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm.c (invoke_block): merge 2 stack overflow checks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cd84310864
commit
8394de7bfc
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Dec 18 21:09:23 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* vm.c (invoke_block): merge 2 stack overflow checks.
|
||||||
|
|
||||||
Tue Dec 18 20:58:35 2007 Koichi Sasada <ko1@atdot.net>
|
Tue Dec 18 20:58:35 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* compile.c, insnhelper.ci, insns.def, object.c, vm.c, vm.h:
|
* compile.c, insnhelper.ci, insns.def, object.c, vm.c, vm.h:
|
||||||
|
|
3
vm.c
3
vm.c
|
@ -550,8 +550,7 @@ invoke_block(rb_thread_t *th, rb_block_t *block, VALUE self, int argc, VALUE *ar
|
||||||
|
|
||||||
rb_vm_set_finish_env(th);
|
rb_vm_set_finish_env(th);
|
||||||
|
|
||||||
CHECK_STACK_OVERFLOW(th->cfp, argc);
|
CHECK_STACK_OVERFLOW(th->cfp, argc + iseq->stack_max);
|
||||||
CHECK_STACK_OVERFLOW(th->cfp, iseq->stack_max);
|
|
||||||
|
|
||||||
for (i=0; i<argc; i++) {
|
for (i=0; i<argc; i++) {
|
||||||
th->cfp->sp[i] = argv[i];
|
th->cfp->sp[i] = argv[i];
|
||||||
|
|
Loading…
Reference in a new issue