public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Macku <jamacku@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: fix --cert parameter
Date: Tue, 03 Nov 2026 12:39:26 GMT [thread overview]
Message-ID: <179370956636.1.2385313247757456054.rpms-curl-5e5bbeb413ed@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.23.0-3
Commit : 5e5bbeb413edc79263a785e0ba467df9cb9c093c
Author : Jan Macku <jamacku@redhat.com>
Date : 2025-03-13T09:30:38+01:00
Stats : +67/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/5e5bbeb413edc79263a785e0ba467df9cb9c093c?branch=curl-v8.23.0-3
Log:
fix --cert parameter
Resolves: #2351531
---
diff --git a/0002-curl-8.13.0~rc1-fix--cert-parameter-clearing.patch b/0002-curl-8.13.0~rc1-fix--cert-parameter-clearing.patch
new file mode 100644
index 0000000..e08a349
--- /dev/null
+++ b/0002-curl-8.13.0~rc1-fix--cert-parameter-clearing.patch
@@ -0,0 +1,60 @@
+From 886569e2db200c31073895a2626d20e0712e5207 Mon Sep 17 00:00:00 2001
+From: Stefan Eissing <stefan@eissing.org>
+Date: Wed, 12 Mar 2025 14:42:19 +0100
+Subject: [PATCH] curl: fix --cert parameter clearing
+
+Blank the argument *after* it has been copied.
+
+Reported-by: Jan Macku
+Fixes #16686
+Closes #16688
+---
+ src/tool_getparam.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/tool_getparam.c b/src/tool_getparam.c
+index 9f227abbfdb5..e5272de74feb 100644
+--- a/src/tool_getparam.c
++++ b/src/tool_getparam.c
+@@ -2481,8 +2481,8 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
+ }
+ break;
+ case C_CERT: /* --cert */
+- cleanarg(clearthis);
+ GetFileAndPassword(nextarg, &config->cert, &config->key_passwd);
++ cleanarg(clearthis);
+ break;
+ case C_CACERT: /* --cacert */
+ err = getstr(&config->cacert, nextarg, DENY_BLANK);
+@@ -2601,18 +2601,18 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
+ config->tcp_fastopen = TRUE;
+ break;
+ case C_PROXY_TLSUSER: /* --proxy-tlsuser */
+- cleanarg(clearthis);
+ if(!feature_tls_srp)
+ err = PARAM_LIBCURL_DOESNT_SUPPORT;
+ else
+ err = getstr(&config->proxy_tls_username, nextarg, ALLOW_BLANK);
++ cleanarg(clearthis);
+ break;
+ case C_PROXY_TLSPASSWORD: /* --proxy-tlspassword */
+- cleanarg(clearthis);
+ if(!feature_tls_srp)
+ err = PARAM_LIBCURL_DOESNT_SUPPORT;
+ else
+ err = getstr(&config->proxy_tls_password, nextarg, DENY_BLANK);
++ cleanarg(clearthis);
+ break;
+ case C_PROXY_TLSAUTHTYPE: /* --proxy-tlsauthtype */
+ if(!feature_tls_srp)
+@@ -2624,9 +2624,9 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
+ }
+ break;
+ case C_PROXY_CERT: /* --proxy-cert */
+- cleanarg(clearthis);
+ GetFileAndPassword(nextarg, &config->proxy_cert,
+ &config->proxy_key_passwd);
++ cleanarg(clearthis);
+ break;
+ case C_PROXY_CERT_TYPE: /* --proxy-cert-type */
+ err = getstr(&config->proxy_cert_type, nextarg, DENY_BLANK);
diff --git a/curl.spec b/curl.spec
index 80a56c3..c7f41cc 100644
--- a/curl.spec
+++ b/curl.spec
@@ -7,7 +7,7 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 8.13.0~rc1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: curl
Source0: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz
Source1: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz.asc
@@ -19,6 +19,9 @@ Source2: mykey.asc
# Test 1022 add support for rc releases
Patch001: 0001-curl-8.13.0~rc1-test1022-add-support-for-rc-releases.patch
+# Fix --cert parameter (#2351531)
+Patch002: 0002-curl-8.13.0~rc1-fix--cert-parameter-clearing.patch
+
# patch making libcurl multilib ready
# Patch101: 0101-curl-7.32.0-multilib.patch
@@ -410,6 +413,9 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
%{_libdir}/libcurl.so.4.[0-9].[0-9].minimal
%changelog
+* Thu Mar 13 2025 Jan Macku <jamacku@redhat.com> - 8.13.0~rc1-2
+- fix --cert parameter (#2351531)
+
* Mon Mar 10 2025 Jan Macku <jamacku@redhat.com> - 8.13.0~rc1-1
- new upstream release candidate
reply other threads:[~2026-11-03 12:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179370956636.1.2385313247757456054.rpms-curl-5e5bbeb413ed@fedoraproject.org \
--to=jamacku@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox