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:
parent
cb2235c112
commit
e20d736467
2 changed files with 7 additions and 1 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 08:36:12 2010 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||
|
||||
* lib/racc/parser.rb (do_parse, yyparse): using class eval to define
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue