Skip to content

Commit d164a6c

Browse files
author
Andras Fekete
committed
Buffer Overrun
Warning 545843.5806721
1 parent b206e07 commit d164a6c

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
@@ -11173,7 +11173,7 @@ int wolfSSL_i2d_X509_NAME(WOLFSSL_X509_NAME* name, unsigned char** out)
1117311173
pemSz = (int)(l - i);
1117411174

1117511175
/* check calculated length */
11176-
if (pemSz > MAX_WOLFSSL_FILE_SIZE || pemSz < 0) {
11176+
if (pemSz > MAX_WOLFSSL_FILE_SIZE || pemSz <= 0) {
1117711177
WOLFSSL_MSG("PEM_read_X509_ex file size error");
1117811178
return NULL;
1117911179
}

0 commit comments

Comments
 (0)