Skip to content

Commit 8df8e4a

Browse files
committed
prevent out of bounds read in loadX509orX509REQFromPemBio()
1 parent 6fc93ac commit 8df8e4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/x509.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13192,7 +13192,7 @@ static WOLFSSL_X509 *loadX509orX509REQFromPemBio(WOLFSSL_BIO *bp,
1319213192
pem = newPem;
1319313193
pemSz = newSz;
1319413194
}
13195-
else if (i > pemSz) {
13195+
else if (i >= pemSz) {
1319613196
/* Buffer full for non-streaming source - this shouldn't happen */
1319713197
break;
1319813198
}

0 commit comments

Comments
 (0)