# HG changeset patch # User Matt Johnston # Date 1244553532 0 # Node ID e12c9225acbd80d4f7afca1f857462b0637038dc # Parent c9128994a2d622bdff3bbc817a873833d37614b0 - Don't memcpy() in place with void_encrypt diff -r c9128994a2d6 -r e12c9225acbd common-algo.c --- a/common-algo.c Mon Jun 08 14:53:29 2009 +0000 +++ b/common-algo.c Tue Jun 09 13:18:52 2009 +0000 @@ -31,7 +31,9 @@ static int void_cipher(const unsigned char* in, unsigned char* out, unsigned long len, void *cipher_state) { - memcpy(out, in, len); + if (in != out) { + memmove(out, in, len); + } return CRYPT_OK; }