mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 09:30:49 +02:00
prevent out of bounds read in loadX509orX509REQFromPemBio()
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user