1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
yugui 2010-12-08 08:09:44 +00:00
parent 751a5cfa0c
commit c9116c68f4
3 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -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++) {