This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add va_end() calls where missing for a va_start() or va_end().
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 23 Apr 2014 16:53:42 +0000 (12:53 -0400)
committerTony Cook <tony@develop-help.com>
Thu, 29 May 2014 06:20:18 +0000 (16:20 +1000)
commit3ed3a8afebd64616aef147205403b96b30a4b4ee
tree17ccf956ff4b2802650f5c391dda020e0014e1a6
parentdc21de0ce42c790f35d2d6062e09e01e787138af
add va_end() calls where missing for a va_start() or va_end().

Fix for Coverity perl5 CIDs 29225, 29226, 29227, 29228, 29229: Missing
varargs init or cleanup (VARARGS) missing va_end: va_end was not
called for foo.

Use of va_args must be finished off with va_end (in other words,
use of va_start or va_copy must be bracketed off with va_end).
In most platforms va_end is a no-op, but in some platforms it is
required for proper cleanup (or face stack smash, or memory leak).

Tony: move va_start() out of the declaration block
ext/PerlIO-via/via.xs
mathoms.c
perlio.c
util.c