Skip to content

Commit 9c2ea12

Browse files
committed
Fix blake2 final coverity issue
1 parent efdca85 commit 9c2ea12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfcrypt/src/blake2b.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ int blake2b_final( blake2b_state *S, byte *out, byte outlen )
358358
S->buflen -= BLAKE2B_BLOCKBYTES;
359359
if ( S->buflen > BLAKE2B_BLOCKBYTES )
360360
return BAD_LENGTH_E;
361-
XMEMCPY( S->buf, S->buf + BLAKE2B_BLOCKBYTES, (wolfssl_word)S->buflen );
361+
XMEMMOVE( S->buf, S->buf + BLAKE2B_BLOCKBYTES, (wolfssl_word)S->buflen );
362362
}
363363

364364
blake2b_increment_counter( S, S->buflen );

0 commit comments

Comments
 (0)