public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.21.0-9: avoid int overflow on arches with 32bit long
Date: Mon, 02 Nov 2026 14:29:45 GMT [thread overview]
Message-ID: <179362978542.1.7235503598970810048.rpms-curl-a12eed4ad539@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.21.0-9
Commit : a12eed4ad5397b49769efddf07f1db4260e0154a
Author : Kamil Dudka <kdudka@redhat.com>
Date : 2017-08-09T14:34:27+02:00
Stats : +33/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/a12eed4ad5397b49769efddf07f1db4260e0154a?branch=curl-v8.21.0-9
Log:
avoid int overflow on arches with 32bit long
Bug: https://github.com/curl/curl/pull/1748
---
diff --git a/0002-curl-7.55.0-32bit-overflow.patch b/0002-curl-7.55.0-32bit-overflow.patch
new file mode 100644
index 0000000..f2499b0
--- /dev/null
+++ b/0002-curl-7.55.0-32bit-overflow.patch
@@ -0,0 +1,26 @@
+From b478816720e1a6b909f454c421dc620e18383947 Mon Sep 17 00:00:00 2001
+From: Kamil Dudka <kdudka@redhat.com>
+Date: Wed, 9 Aug 2017 14:27:05 +0200
+Subject: [PATCH] curl: avoid int overflow on arches with 32bit long
+
+This makes test1427 pass on i386.
+---
+ src/tool_paramhlp.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c
+index b9dedc9..205c260 100644
+--- a/src/tool_paramhlp.c
++++ b/src/tool_paramhlp.c
+@@ -218,7 +218,7 @@ static ParameterError str2double(double *val, const char *str, long max)
+ num = strtod(str, &endptr);
+ if(errno == ERANGE)
+ return PARAM_NUMBER_TOO_LARGE;
+- if((long)num > max) {
++ if(num > (double)LONG_MAX || (long)num > max) {
+ /* too large */
+ return PARAM_NUMBER_TOO_LARGE;
+ }
+--
+2.9.4
+
diff --git a/curl.spec b/curl.spec
index 011ef60..3490632 100644
--- a/curl.spec
+++ b/curl.spec
@@ -10,6 +10,10 @@ Source: https://curl.haxx.se/download/%{name}-%{version}.tar.xz
# https://github.com/curl/curl/pull/1744
Patch1: 0001-curl-7.55.0-tests-missing-py-scripts.patch
+# avoid int overflow on arches with 32bit long
+# https://github.com/curl/curl/pull/1748
+Patch2: 0002-curl-7.55.0-32bit-overflow.patch
+
# patch making libcurl multilib ready
Patch101: 0101-curl-7.32.0-multilib.patch
@@ -156,6 +160,9 @@ be installed.
%patch1 -p1
chmod +x tests/{dictserver,negtelnetserver}.py
+# not yet upstream
+%patch2 -p1
+
# Fedora patches
%patch101 -p1
%patch102 -p1
reply other threads:[~2026-11-02 14:29 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=179362978542.1.7235503598970810048.rpms-curl-a12eed4ad539@fedoraproject.org \
--to=kdudka@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