gosthash.c: use memmove in circle_xor8, as input pointers can be equal
[from HEAD]. PR: 2858
This commit is contained in:
parent
5c468f0c1f
commit
144517299c
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue