Skip to content

Commit 716870c

Browse files
authored
Merge pull request #7370 from anhu/quickie
sizeof(oriType) ---> sizeof(asnDataOid)
2 parents 42a0cb2 + 28a88d1 commit 716870c

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
@@ -41748,7 +41748,9 @@ static int myOriEncryptCb(PKCS7* pkcs7, byte* cek, word32 cekSz, byte* oriType,
4174841748
int i;
4174941749

4175041750
/* make sure buffers are large enough */
41751-
if ((*oriValueSz < (2 + cekSz)) || (*oriTypeSz < sizeof(oriType)))
41751+
if (*oriValueSz < (2 + cekSz))
41752+
return WC_TEST_RET_ENC_NC;
41753+
if (*oriTypeSz < sizeof(asnDataOid))
4175241754
return WC_TEST_RET_ENC_NC;
4175341755

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

0 commit comments

Comments
 (0)