From a44f38ff52e3d828173e0719bc27ef7a5f381cf4 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 9 Dec 2007 06:00:56 +0000 Subject: * eval_intern.h (CHECK_STACK_OVERFLOW): reserve frame size. [ruby-dev:32485] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval_intern.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval_intern.h') diff --git a/eval_intern.h b/eval_intern.h index e5680a2731..61164de9a9 100644 --- a/eval_intern.h +++ b/eval_intern.h @@ -187,7 +187,7 @@ char *strrchr _((const char *, const char)); } #define CHECK_STACK_OVERFLOW(cfp, margin) do \ - if (((VALUE *)(cfp)->sp) + (margin) >= ((VALUE *)cfp)) { \ + if (((VALUE *)(cfp)->sp) + (margin) + sizeof(rb_control_frame_t) >= ((VALUE *)cfp)) { \ rb_exc_raise(sysstack_error); \ } \ while (0) -- cgit v1.2.1