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

* 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/trunk@29798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-11-15 13:48:37 +00:00
parent cb2235c112
commit e20d736467
2 changed files with 7 additions and 1 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 08:36:12 2010 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/racc/parser.rb (do_parse, yyparse): using class eval to define

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