diff options
| -rw-r--r-- | meta/recipes-support/curl/curl/0001-sigpipe-init-the-struct-so-that-first-apply-ignores.patch | 38 | ||||
| -rw-r--r-- | meta/recipes-support/curl/curl_8.9.1.bb (renamed from meta/recipes-support/curl/curl_8.8.0.bb) | 3 |
2 files changed, 40 insertions, 1 deletions
diff --git a/meta/recipes-support/curl/curl/0001-sigpipe-init-the-struct-so-that-first-apply-ignores.patch b/meta/recipes-support/curl/curl/0001-sigpipe-init-the-struct-so-that-first-apply-ignores.patch new file mode 100644 index 0000000000..15c69e1430 --- /dev/null +++ b/meta/recipes-support/curl/curl/0001-sigpipe-init-the-struct-so-that-first-apply-ignores.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From 3eec5afbd0b6377eca893c392569b2faf094d970 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Daniel Stenberg <daniel@haxx.se> | ||
| 3 | Date: Mon, 5 Aug 2024 00:17:17 +0200 | ||
| 4 | Subject: [PATCH] sigpipe: init the struct so that first apply ignores | ||
| 5 | |||
| 6 | Initializes 'no_signal' to TRUE, so that a call to sigpipe_apply() after | ||
| 7 | init ignores the signal (unless CURLOPT_NOSIGNAL) is set. | ||
| 8 | |||
| 9 | I have read the existing code multiple times now and I think it gets the | ||
| 10 | initial state reversed this missing to ignore. | ||
| 11 | |||
| 12 | Regression from 17e6f06ea37136c36d27 | ||
| 13 | |||
| 14 | Reported-by: Rasmus Thomsen | ||
| 15 | Fixes #14344 | ||
| 16 | Closes #14390 | ||
| 17 | |||
| 18 | Upstream-Status: Backport [https://github.com/curl/curl/commit/3eec5afbd0b6377eca893c392569b2faf094d970] | ||
| 19 | Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org> | ||
| 20 | --- | ||
| 21 | lib/sigpipe.h | 1 + | ||
| 22 | 1 file changed, 1 insertion(+) | ||
| 23 | |||
| 24 | diff --git a/lib/sigpipe.h b/lib/sigpipe.h | ||
| 25 | index b91a2f513..d78afd905 100644 | ||
| 26 | --- a/lib/sigpipe.h | ||
| 27 | +++ b/lib/sigpipe.h | ||
| 28 | @@ -39,6 +39,7 @@ struct sigpipe_ignore { | ||
| 29 | static void sigpipe_init(struct sigpipe_ignore *ig) | ||
| 30 | { | ||
| 31 | memset(ig, 0, sizeof(*ig)); | ||
| 32 | + ig->no_signal = TRUE; | ||
| 33 | } | ||
| 34 | |||
| 35 | /* | ||
| 36 | -- | ||
| 37 | 2.44.2 | ||
| 38 | |||
diff --git a/meta/recipes-support/curl/curl_8.8.0.bb b/meta/recipes-support/curl/curl_8.9.1.bb index 533c2ac199..4d96a4e034 100644 --- a/meta/recipes-support/curl/curl_8.8.0.bb +++ b/meta/recipes-support/curl/curl_8.9.1.bb | |||
| @@ -14,8 +14,9 @@ SRC_URI = " \ | |||
| 14 | file://run-ptest \ | 14 | file://run-ptest \ |
| 15 | file://disable-tests \ | 15 | file://disable-tests \ |
| 16 | file://no-test-timeout.patch \ | 16 | file://no-test-timeout.patch \ |
| 17 | file://0001-sigpipe-init-the-struct-so-that-first-apply-ignores.patch \ | ||
| 17 | " | 18 | " |
| 18 | SRC_URI[sha256sum] = "0f58bb95fc330c8a46eeb3df5701b0d90c9d9bfcc42bd1cd08791d12551d4400" | 19 | SRC_URI[sha256sum] = "f292f6cc051d5bbabf725ef85d432dfeacc8711dd717ea97612ae590643801e5" |
| 19 | 20 | ||
| 20 | # Curl has used many names over the years... | 21 | # Curl has used many names over the years... |
| 21 | CVE_PRODUCT = "haxx:curl haxx:libcurl curl:curl curl:libcurl libcurl:libcurl daniel_stenberg:curl" | 22 | CVE_PRODUCT = "haxx:curl haxx:libcurl curl:curl curl:libcurl libcurl:libcurl daniel_stenberg:curl" |
