From: Andy Polyakov Date: Fri, 8 Jul 2005 16:46:22 +0000 (+0000) Subject: Latest Intel compiler means every word in "if copying [with memcpy] takes X-Git-Tag: OpenSSL_0_9_8k^2~1939 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8f3bdc72d057a76c3af6cdb4802d5302164dfbcd;p=oweals%2Fopenssl.git Latest Intel compiler means every word in "if copying [with memcpy] takes place between objects that overlap, the behavior is undefined." It's hard to comprehend, but it reportedly manages to be case. --- diff --git a/crypto/des/cfb_enc.c b/crypto/des/cfb_enc.c index 6738e7c0e5..720f29a28e 100644 --- a/crypto/des/cfb_enc.c +++ b/crypto/des/cfb_enc.c @@ -125,7 +125,7 @@ void DES_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits, sh[0]=v0, sh[1]=v1, sh[2]=d0, sh[3]=d1; #endif if (rem==0) - memcpy(ovec,ovec+num,8); + memmove(ovec,ovec+num,8); else for(i=0 ; i < 8 ; ++i) ovec[i]=ovec[i+num]<