Skip to content

Commit 52f003f

Browse files
authored
Merge pull request #7281 from philljj/zd17416
Fix Coverity issues.
2 parents 67d4019 + b3c276b commit 52f003f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31642,8 +31642,8 @@ int wc_SetExtKeyUsage(Cert *cert, const char *value)
3164231642
int wc_SetExtKeyUsageOID(Cert *cert, const char *in, word32 sz, byte idx,
3164331643
void* heap)
3164431644
{
31645-
byte oid[MAX_OID_SZ];
31646-
word32 oidSz = MAX_OID_SZ;
31645+
byte oid[CTC_MAX_EKU_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)