[PATCH] missing va_end() in some IO functions (gmp 6.1.2)

Hans Åberg haberg-1 at telia.com
Wed Mar 13 17:22:00 UTC 2019


> On 13 Mar 2019, at 13:58, Vincent Lefevre <vincent at vinc17.net> wrote:
> 
> As described in the va_copy(3) man page:
> 
>    Each invocation of va_copy() must be matched by a corresponding
>    invocation of va_end() in the same function.

It is also in the POSIX specification [1]:
  Each invocation of the va_start() and va_copy() macros shall be matched by a corresponding invocation of the va_end() macro in the same function.

1. http://pubs.opengroup.org/onlinepubs/009696899/basedefs/stdarg.h.html




More information about the gmp-bugs mailing list