aboutsummaryrefslogtreecommitdiffstats
path: root/main/curl/curl-do-bounds-check-using-a-double-comparison.patch
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2017-11-30 04:01:54 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-30 08:20:00 +0000
commitd19c5b26c70a3055c5d6c7d2f15587f62a33a1fe (patch)
treec76b2975039be3201da3901ccad95ec721b7b858 /main/curl/curl-do-bounds-check-using-a-double-comparison.patch
parent6791f008cd52c6ddf0e5e94a564fd0c05e26c0fe (diff)
downloadaports-d19c5b26c70a3055c5d6c7d2f15587f62a33a1fe.tar.bz2
aports-d19c5b26c70a3055c5d6c7d2f15587f62a33a1fe.tar.xz
main/curl: upgrade to 7.57.0
Diffstat (limited to 'main/curl/curl-do-bounds-check-using-a-double-comparison.patch')
-rw-r--r--main/curl/curl-do-bounds-check-using-a-double-comparison.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/main/curl/curl-do-bounds-check-using-a-double-comparison.patch b/main/curl/curl-do-bounds-check-using-a-double-comparison.patch
deleted file mode 100644
index 34e2b6c717..0000000000
--- a/main/curl/curl-do-bounds-check-using-a-double-comparison.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 45a560390c4356bcb81d933bbbb229c8ea2acb63 Mon Sep 17 00:00:00 2001
-From: Adam Sampson <ats@offog.org>
-Date: Wed, 9 Aug 2017 14:11:17 +0100
-Subject: [PATCH] curl: do bounds check using a double comparison
-
-The fix for this in 8661a0aacc01492e0436275ff36a21734f2541bb wasn't
-complete: if the parsed number in num is larger than will fit in a long,
-the conversion is undefined behaviour (causing test1427 to fail for me
-on IA32 with GCC 7.1, although it passes on AMD64 and ARMv7). Getting
-rid of the cast means the comparison will be done using doubles.
-
-It might make more sense for the max argument to also be a double...
-
-Fixes #1750
-Closes #1749
----
- 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 b9dedc989e..85c5e79a7e 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 > max) {
- /* too large */
- return PARAM_NUMBER_TOO_LARGE;
- }