Skip to content

Commit 28a88d1

Browse files
committed
sizeof(oriType) ---> sizeof(asnDataOid)
1 parent 8970ff4 commit 28a88d1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

wolfcrypt/test/test.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41672,7 +41672,9 @@ static int myOriEncryptCb(PKCS7* pkcs7, byte* cek, word32 cekSz, byte* oriType,
4167241672
int i;
4167341673

4167441674
/* make sure buffers are large enough */
41675-
if ((*oriValueSz < (2 + cekSz)) || (*oriTypeSz < sizeof(oriType)))
41675+
if (*oriValueSz < (2 + cekSz))
41676+
return WC_TEST_RET_ENC_NC;
41677+
if (*oriTypeSz < sizeof(asnDataOid))
4167641678
return WC_TEST_RET_ENC_NC;
4167741679

4167841680
/* our simple encryption algorithm will be take the bitwise complement */

0 commit comments

Comments
 (0)