Meta/curl: Add upstream patch for issue 17917
Some checks are pending
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run

See: https://github.com/curl/curl/issues/17917

This allows us to connect to https://developer.mozilla.org/ with
HTTP/3 enabled.

Thanks to Tim Ledbetter (https://github.com/tcl3) for finding that we
couldn't connect!
This commit is contained in:
Luke Wilde 2025-07-13 16:32:17 +01:00 committed by Jelle Raaijmakers
commit a3cacbfaaa
Notes: github-actions[bot] 2025-07-13 18:55:50 +00:00
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,14 @@
diff --git a/lib/altsvc.c b/lib/altsvc.c
index 602ef61de..0c443268e 100644
--- a/lib/altsvc.c
+++ b/lib/altsvc.c
@@ -487,8 +487,7 @@ CURLcode Curl_altsvc_parse(struct Curl_easy *data,
DEBUGASSERT(asi);
/* initial check for "clear" */
- if(!curlx_str_until(&p, &alpn, MAX_ALTSVC_LINE, ';') &&
- !curlx_str_single(&p, ';')) {
+ if(!curlx_str_cspn(&p, &alpn, ";\n\r")) {
curlx_str_trimblanks(&alpn);
/* "clear" is a magic keyword */
if(curlx_str_casecompare(&alpn, "clear")) {

View file

@ -9,6 +9,7 @@ vcpkg_from_github(
PATCHES
dependencies.patch
pkgconfig-curl-config.patch
curl-issue-17917.patch # FIXME: This is an upstream patch that can be removed when it lands in a stable version. See: https://github.com/curl/curl/issues/17917
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS