diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-08 08:09:44 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-08 08:09:44 +0000 |
commit | c9116c68f404457d23be77ab7c57bb1ffb269e2e (patch) | |
tree | 82d28d7ce125323e1f8c8688a3e32f712c40f0e8 | |
parent | 751a5cfa0cb4ac1718c23aa6e63f33ac90790422 (diff) |
merges r29798 from trunk into ruby_1_9_2.
--
* vm_eval.c (rb_funcall): ensure va_end after va_init_list. Coverity
Scan found this bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | version.h | 2 | ||||
-rw-r--r-- | vm_eval.c | 3 |
3 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Mon Nov 15 22:47:27 2010 Yusuke Endoh <mame@tsg.ne.jp> + + * vm_eval.c (rb_funcall): ensure va_end after va_init_list. Coverity + Scan found this bug. + Mon Nov 15 06:43:48 2010 Aaron Patterson <aaron@tenderlovemaking.com> * etc/openssl/ossl_ssl.c (ossl_ssl_get_cert): raise exception if @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_PATCHLEVEL 93 +#define RUBY_PATCHLEVEL 94 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 @@ -619,11 +619,12 @@ rb_funcall(VALUE recv, ID mid, int n, ...) { VALUE *argv; va_list ar; - va_init_list(ar, n); if (n > 0) { long i; + va_init_list(ar, n); + argv = ALLOCA_N(VALUE, n); for (i = 0; i < n; i++) { |