mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
add +1 for string null terminator
This commit is contained in:
@ -7941,7 +7941,7 @@ static int DecodeAltNames(const byte* input, int sz, DecodedCert* cert)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ipAddr->type = ASN_IP_TYPE;
|
ipAddr->type = ASN_IP_TYPE;
|
||||||
ipAddr->name = (char*)XMALLOC(strLen, cert->heap,
|
ipAddr->name = (char*)XMALLOC(strLen + 1, cert->heap,
|
||||||
DYNAMIC_TYPE_ALTNAME);
|
DYNAMIC_TYPE_ALTNAME);
|
||||||
if (ipAddr->name == NULL) {
|
if (ipAddr->name == NULL) {
|
||||||
WOLFSSL_MSG("\tOut of Memory");
|
WOLFSSL_MSG("\tOut of Memory");
|
||||||
|
Reference in New Issue
Block a user