mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Buffer Overrun
Warning 545843.5806721
This commit is contained in:
@@ -11173,7 +11173,7 @@ err:
|
|||||||
pemSz = (int)(l - i);
|
pemSz = (int)(l - i);
|
||||||
|
|
||||||
/* check calculated length */
|
/* check calculated length */
|
||||||
if (pemSz > MAX_WOLFSSL_FILE_SIZE || pemSz < 0) {
|
if (pemSz > MAX_WOLFSSL_FILE_SIZE || pemSz <= 0) {
|
||||||
WOLFSSL_MSG("PEM_read_X509_ex file size error");
|
WOLFSSL_MSG("PEM_read_X509_ex file size error");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user