svn rev #25080: trunk/src/include/

hartmans@MIT.EDU hartmans at MIT.EDU
Tue Aug 9 16:00:07 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25080
Commit By: hartmans
Log Message:
In last-resort fallback va_copy change 'memcmp' to 'memcpy'

Signed-off-by: Kevin Wasserman <kevin.wasserman at painless-security.com>
Signed-off-by: Sam Hartman <hartmans at painless-security.com>


Changed Files:
U   trunk/src/include/k5-platform.h
Modified: trunk/src/include/k5-platform.h
===================================================================
--- trunk/src/include/k5-platform.h	2011-08-09 19:26:32 UTC (rev 25079)
+++ trunk/src/include/k5-platform.h	2011-08-09 20:00:07 UTC (rev 25080)
@@ -916,7 +916,7 @@
    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. */




More information about the cvs-krb5 mailing list