From c4aa6b041b68d378537fa261ec1e95c72e98faae Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Mon, 13 Aug 2012 16:37:58 +0000 Subject: [PATCH] gosthash.c: use memmove in circle_xor8, as input pointers can be equal [from HEAD]. PR: 2858 --- engines/ccgost/gosthash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/ccgost/gosthash.c b/engines/ccgost/gosthash.c index a5c0662ffc..8c278aa645 100644 --- a/engines/ccgost/gosthash.c +++ b/engines/ccgost/gosthash.c @@ -42,7 +42,7 @@ static void circle_xor8 (const byte *w, byte *k) byte buf[8]; int i; memcpy(buf,w,8); - memcpy(k,w+8,24); + memmove(k,w+8,24); for(i=0;i<8;i++) k[i+24]=buf[i]^k[i]; } -- 2.25.1