Skip to content

Commit 2bb3ade

Browse files
Merge pull request #6416 from embhorn/gh6413
Fix valgrind issue with memcpy
2 parents a5106ec + 0a5a5a6 commit 2bb3ade

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)