From 3c23f39437f4eda3c3bd28da014e71c1a1a6c9b0 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Mon, 16 Oct 2023 13:34:05 -0600 Subject: [PATCH] fix for out of bounds edge case CID 327299 --- wolfcrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index ea440a391..e379f7e7c 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -13035,7 +13035,7 @@ static int GenerateDNSEntryRIDString(DNS_entry* entry, void* heap) j = 0; /* Append each number of dotted form. */ for (i = 0; i < tmpSize; i++) { - if (j > MAX_OID_SZ) { + if (j >= MAX_OID_SZ) { return BUFFER_E; }