prevent out of bounds read in loadX509orX509REQFromPemBio()

This commit is contained in:
Ruby Martin
2026-03-31 14:47:19 -06:00
parent 6fc93ac412
commit 8df8e4a87a
+1 -1
View File
@@ -13192,7 +13192,7 @@ static WOLFSSL_X509 *loadX509orX509REQFromPemBio(WOLFSSL_BIO *bp,
pem = newPem;
pemSz = newSz;
}
else if (i > pemSz) {
else if (i >= pemSz) {
/* Buffer full for non-streaming source - this shouldn't happen */
break;
}