From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 203E1158086 for ; Wed, 17 Nov 2021 21:24:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21D91E0894; Wed, 17 Nov 2021 21:24:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D94ECE0894 for ; Wed, 17 Nov 2021 21:24:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0748A342BE5 for ; Wed, 17 Nov 2021 21:24:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 98E1E163 for ; Wed, 17 Nov 2021 21:24:49 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1637184279.d201d8ef750dddb7e15281716702a97dbe6ca54f.blueness@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/curl/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/curl/files/curl-7.79.0-http-3digit-response-code.patch net-misc/curl/files/curl-7.79.0-http2-connection-data.patch X-VCS-Directories: net-misc/curl/files/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: d201d8ef750dddb7e15281716702a97dbe6ca54f X-VCS-Branch: master Date: Wed, 17 Nov 2021 21:24:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d78bbcb2-001c-4f05-85c2-8270ad3f7f99 X-Archives-Hash: b2ea6379425558819a91bddfb76b6289 commit: d201d8ef750dddb7e15281716702a97dbe6ca54f Author: Michael Mair-Keimberger levelnine at> AuthorDate: Tue Nov 16 16:52:58 2021 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Wed Nov 17 21:24:39 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d201d8ef net-misc/curl: remove unused patches Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Michael Mair-Keimberger levelnine.at> Signed-off-by: Anthony G. Basile gentoo.org> .../curl-7.79.0-http-3digit-response-code.patch | 47 ---------------------- .../files/curl-7.79.0-http2-connection-data.patch | 43 -------------------- 2 files changed, 90 deletions(-) diff --git a/net-misc/curl/files/curl-7.79.0-http-3digit-response-code.patch b/net-misc/curl/files/curl-7.79.0-http-3digit-response-code.patch deleted file mode 100644 index 4fa701132651..000000000000 --- a/net-misc/curl/files/curl-7.79.0-http-3digit-response-code.patch +++ /dev/null @@ -1,47 +0,0 @@ -https://github.com/curl/curl/commit/beb8990d934a01acf103871e463d4e61afc9ded2 - -From: Daniel Stenberg -Date: Fri, 17 Sep 2021 16:31:25 +0200 -Subject: [PATCH] http: fix the broken >3 digit response code detection - -When the "reason phrase" in the HTTP status line starts with a digit, -that was treated as the forth response code digit and curl would claim -the response to be non-compliant. - -Added test 1466 to verify this case. - -Regression brought by 5dc594e44f73b17 -Reported-by: Glenn de boer -Fixes #7738 -Closes #7739 ---- a/lib/http.c -+++ b/lib/http.c -@@ -4232,9 +4232,9 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy *data, - char separator; - char twoorthree[2]; - int httpversion = 0; -- int digit4 = -1; /* should remain untouched to be good */ -+ char digit4 = 0; - nc = sscanf(HEADER1, -- " HTTP/%1d.%1d%c%3d%1d", -+ " HTTP/%1d.%1d%c%3d%c", - &httpversion_major, - &httpversion, - &separator, -@@ -4250,13 +4250,13 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy *data, - - /* There can only be a 4th response code digit stored in 'digit4' if - all the other fields were parsed and stored first, so nc is 5 when -- digit4 is not -1 */ -- else if(digit4 != -1) { -+ digit4 a digit */ -+ else if(ISDIGIT(digit4)) { - failf(data, "Unsupported response code in HTTP response"); - return CURLE_UNSUPPORTED_PROTOCOL; - } - -- if((nc == 4) && (' ' == separator)) { -+ if((nc >= 4) && (' ' == separator)) { - httpversion += 10 * httpversion_major; - switch(httpversion) { - case 10: diff --git a/net-misc/curl/files/curl-7.79.0-http2-connection-data.patch b/net-misc/curl/files/curl-7.79.0-http2-connection-data.patch deleted file mode 100644 index bdb1484d1b16..000000000000 --- a/net-misc/curl/files/curl-7.79.0-http2-connection-data.patch +++ /dev/null @@ -1,43 +0,0 @@ -https://github.com/curl/curl/commit/901804ef95777b8e735a55b77f8dd630a58c575b - -From: Daniel Stenberg -Date: Thu, 16 Sep 2021 08:50:54 +0200 -Subject: [PATCH] Curl_http2_setup: don't change connection data on repeat - invokes - -Regression from 3cb8a748670ab88c (releasde in 7.79.0). That change moved -transfer oriented inits to before the check but also erroneously moved a -few connection oriented ones, which causes problems. - -Reported-by: Evangelos Foutras -Fixes #7730 -Closes #7731 ---- a/lib/http2.c -+++ b/lib/http2.c -@@ -2221,12 +2221,6 @@ CURLcode Curl_http2_setup(struct Curl_easy *data, - stream->mem = data->state.buffer; - stream->len = data->set.buffer_size; - -- httpc->inbuflen = 0; -- httpc->nread_inbuf = 0; -- -- httpc->pause_stream_id = 0; -- httpc->drain_total = 0; -- - multi_connchanged(data->multi); - /* below this point only connection related inits are done, which only needs - to be done once per connection */ -@@ -2252,6 +2246,12 @@ CURLcode Curl_http2_setup(struct Curl_easy *data, - conn->httpversion = 20; - conn->bundle->multiuse = BUNDLE_MULTIPLEX; - -+ httpc->inbuflen = 0; -+ httpc->nread_inbuf = 0; -+ -+ httpc->pause_stream_id = 0; -+ httpc->drain_total = 0; -+ - infof(data, "Connection state changed (HTTP/2 confirmed)"); - - return CURLE_OK; -