In last-resort fallback va_copy change 'memcmp' to 'memcpy'
authorSam Hartman <hartmans@mit.edu>
Tue, 9 Aug 2011 20:00:07 +0000 (20:00 +0000)
committerSam Hartman <hartmans@mit.edu>
Tue, 9 Aug 2011 20:00:07 +0000 (20:00 +0000)
Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
Signed-off-by: Sam Hartman <hartmans@painless-security.com>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25080 dc483132-0cff-0310-8789-dd5450dbe970

src/include/k5-platform.h

index 147f87fb727b59b5170ead43fd465b26ae4e78a9..2f24ffaff64a2cd986a158cb6f3937aa82d7a456 100644 (file)
@@ -916,7 +916,7 @@ set_cloexec_file(FILE *f)
    allocate some storage pointed to by the va_list, and in that case
    we'll just lose.  If anyone cares, we could try to devise a test
    for that case.  */
-#define va_copy(dest, src)      memcmp(dest, src, sizeof(va_list))
+#define va_copy(dest, src)      memcpy(dest, src, sizeof(va_list))
 #endif
 
 /* Provide strlcpy/strlcat interfaces. */