Skip to content

Commit 1768b03

Browse files
committed
Fix wc_SetExtKeyUsageOID buffer warning.
1 parent a77c6d1 commit 1768b03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31643,7 +31643,7 @@ int wc_SetExtKeyUsageOID(Cert *cert, const char *in, word32 sz, byte idx,
3164331643
void* heap)
3164431644
{
3164531645
byte oid[MAX_OID_SZ];
31646-
word32 oidSz = MAX_OID_SZ;
31646+
word32 oidSz = CTC_MAX_EKU_OID_SZ;
3164731647

3164831648
if (idx >= CTC_MAX_EKU_NB || sz >= CTC_MAX_EKU_OID_SZ) {
3164931649
WOLFSSL_MSG("Either idx or sz was too large");

0 commit comments

Comments
 (0)