Description
Curl_verifyhost has some broken code due to recent code shuffling. The issue is visible here:
https://github.com/curl/curl/blob/curl-7_87_0/lib/vtls/x509asn1.c#L1355
The code doesn't compile and it also leaks some memory for empty ("") strings if parenthesis are added. The issue was introduced by commit 6b19247
The easiest solution is to revert the first section of the patch. Note how utf8asn1str always sets the pointer to NULL on error.
curl/libcurl version
curl-7_87_0 tag
Description
Curl_verifyhosthas some broken code due to recent code shuffling. The issue is visible here:https://github.com/curl/curl/blob/curl-7_87_0/lib/vtls/x509asn1.c#L1355
The code doesn't compile and it also leaks some memory for empty ("") strings if parenthesis are added. The issue was introduced by commit 6b19247
The easiest solution is to revert the first section of the patch. Note how
utf8asn1stralways sets the pointer to NULL on error.curl/libcurl version
curl-7_87_0 tag