diff options
author | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-16 11:58:33 +0000 |
---|---|---|
committer | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-16 11:58:33 +0000 |
commit | 16aedfe0a04432e9912dd4c8c662c5e416c67af9 (patch) | |
tree | e4eb1cc3ae7663a3420cdf599992791b0016454b | |
parent | b38334e2ec11ffdd8b2d37bb77167bcc7fedbfe9 (diff) | |
download | ruby-16aedfe0a04432e9912dd4c8c662c5e416c67af9.tar.gz |
* vm.c (ENV_IN_HEAP_P): fix off-by-one error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | vm.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Sat Feb 16 20:51:17 2013 Kazuki Tsujimoto <kazuki@callcc.net> + + * vm.c (ENV_IN_HEAP_P): fix off-by-one error. + Sat Feb 16 20:47:16 2013 Akinori MUSHA <knu@iDaemons.org> * configure.in (LIBRUBY_DLDFLAGS): Fix a bug where --with-opt-dir @@ -262,7 +262,7 @@ ruby_vm_run_at_exit_hooks(rb_vm_t *vm) */ #define ENV_IN_HEAP_P(th, env) \ - (!((th)->stack < (env) && (env) < ((th)->stack + (th)->stack_size))) + (!((th)->stack <= (env) && (env) < ((th)->stack + (th)->stack_size))) #define ENV_VAL(env) ((env)[1]) static void |