Skip to content

Commit 3c23f39

Browse files
fix for out of bounds edge case CID 327299
1 parent ed00182 commit 3c23f39

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
@@ -13035,7 +13035,7 @@ static int GenerateDNSEntryRIDString(DNS_entry* entry, void* heap)
1303513035
j = 0;
1303613036
/* Append each number of dotted form. */
1303713037
for (i = 0; i < tmpSize; i++) {
13038-
if (j > MAX_OID_SZ) {
13038+
if (j >= MAX_OID_SZ) {
1303913039
return BUFFER_E;
1304013040
}
1304113041

0 commit comments

Comments
 (0)