-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Currently vsnprintf_wrapper invokes va_copy but does not invoke va_end before return.
N3220§7.16.1p1
... Each invocation of the
va_startandva_copymacros shall be matched by a corresponding invocation of theva_endmacro in the same function.
"shall" actually means it's undefined behaviour not to do it, but there is a more explicit statement too:
N3220§7.16.1.3p2
... If there is no corresponding invocation of the
va_startorva_copymacro, or if theva_endmacro is not invoked before the return, the behavior is undefined.
This is the same wording as in C99 when va_copy was added.
Metadata
Metadata
Assignees
Labels
No labels