Skip to content

Commit 0a5a5a6

Browse files
committed
Fix valgrind issue with memcpy
1 parent 5194a29 commit 0a5a5a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/aes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8410,7 +8410,7 @@ int wc_AesGcmInit(Aes* aes, const byte* key, word32 len, const byte* iv,
84108410
if (ret == 0) {
84118411
/* Set the IV passed in if it is smaller than a block. */
84128412
if ((iv != NULL) && (ivSz <= AES_BLOCK_SIZE)) {
8413-
XMEMCPY((byte*)aes->reg, iv, ivSz);
8413+
XMEMMOVE((byte*)aes->reg, iv, ivSz);
84148414
aes->nonceSz = ivSz;
84158415
}
84168416
/* No IV passed in, check for cached IV. */

0 commit comments

Comments
 (0)