[openssh-commits] [openssh] 01/03: need va_copy before va_start

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Oct 16 10:54:25 AEDT 2015


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 0f754e29dd3760fc0b172c1220f18b753fb0957e
Author: Damien Miller <djm at mindrot.org>
Date:   Fri Oct 16 10:53:14 2015 +1100

    need va_copy before va_start
    
    reported by Nicholas Lemonias
---
 openbsd-compat/bsd-asprintf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/openbsd-compat/bsd-asprintf.c b/openbsd-compat/bsd-asprintf.c
index 3368195..db57acc 100644
--- a/openbsd-compat/bsd-asprintf.c
+++ b/openbsd-compat/bsd-asprintf.c
@@ -47,6 +47,7 @@ vasprintf(char **str, const char *fmt, va_list ap)
 	char *string, *newstr;
 	size_t len;
 
+	va_start(ap);
 	VA_COPY(ap2, ap);
 	if ((string = malloc(INIT_SZ)) == NULL)
 		goto fail;

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list