mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
str_len check includes any value less than 0
This commit is contained in:
@@ -3549,7 +3549,7 @@ int wolfSSL_ASN1_STRING_print_ex(WOLFSSL_BIO *bio, WOLFSSL_ASN1_STRING *str,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!err) && (str_len != -1)) {
|
if ((!err) && (str_len >= 0)) {
|
||||||
/* Include any characters written for type. */
|
/* Include any characters written for type. */
|
||||||
str_len += type_len;
|
str_len += type_len;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user