From 06b88373ef1e3779fc07677ea75d7b49b8cd7ff8 Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Mon, 14 Mar 2022 22:57:56 +0000 Subject: [PATCH] curl: Fix regression in 7.82.0 --- build/curl/patches/openssl-cn-bug.patch | 22 ++++++++++++++++++++++ build/curl/patches/series | 1 + 2 files changed, 23 insertions(+) create mode 100644 build/curl/patches/openssl-cn-bug.patch diff --git a/build/curl/patches/openssl-cn-bug.patch b/build/curl/patches/openssl-cn-bug.patch new file mode 100644 index 0000000000..1926918e70 --- /dev/null +++ b/build/curl/patches/openssl-cn-bug.patch @@ -0,0 +1,22 @@ + +Regression introduced in curl 7.82.0, see + +https://github.com/curl/curl/issues/8559 +https://github.com/curl/curl/issues/8582 + +affects the pkg test suite. + +Should be fixed in the next release, but they do not seem in a rush +to do that. + +diff -wpruN '--exclude=*.orig' a~/lib/vtls/openssl.c a/lib/vtls/openssl.c +--- a~/lib/vtls/openssl.c 1970-01-01 00:00:00 ++++ a/lib/vtls/openssl.c 1970-01-01 00:00:00 +@@ -1808,6 +1808,7 @@ CURLcode Curl_ossl_verifyhost(struct Cur + memcpy(peer_CN, ASN1_STRING_get0_data(tmp), peerlen); + peer_CN[peerlen] = '\0'; + } ++ else + result = CURLE_OUT_OF_MEMORY; + } + } diff --git a/build/curl/patches/series b/build/curl/patches/series index 6726658d8d..3398ce6a0d 100644 --- a/build/curl/patches/series +++ b/build/curl/patches/series @@ -1 +1,2 @@ tests.patch +openssl-cn-bug.patch