Blame SOURCES/0004-curl-7.61.1-CVE-2018-16842.patch

d73b74
From 27d6c92acdac671ddf8f77f72956b2181561f774 Mon Sep 17 00:00:00 2001
d73b74
From: Daniel Stenberg <daniel@haxx.se>
d73b74
Date: Sun, 28 Oct 2018 01:33:23 +0200
d73b74
Subject: [PATCH 1/2] voutf: fix bad arethmetic when outputting warnings to
d73b74
 stderr
d73b74
d73b74
CVE-2018-16842
d73b74
Reported-by: Brian Carpenter
d73b74
Bug: https://curl.haxx.se/docs/CVE-2018-16842.html
d73b74
d73b74
Upstream-commit: d530e92f59ae9bb2d47066c3c460b25d2ffeb211
d73b74
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
d73b74
---
d73b74
 src/tool_msgs.c | 2 +-
d73b74
 1 file changed, 1 insertion(+), 1 deletion(-)
d73b74
d73b74
diff --git a/src/tool_msgs.c b/src/tool_msgs.c
d73b74
index 9cce806..05bec39 100644
d73b74
--- a/src/tool_msgs.c
d73b74
+++ b/src/tool_msgs.c
d73b74
@@ -67,7 +67,7 @@ static void voutf(struct GlobalConfig *config,
d73b74
         (void)fwrite(ptr, cut + 1, 1, config->errors);
d73b74
         fputs("\n", config->errors);
d73b74
         ptr += cut + 1; /* skip the space too */
d73b74
-        len -= cut;
d73b74
+        len -= cut + 1;
d73b74
       }
d73b74
       else {
d73b74
         fputs(ptr, config->errors);
d73b74
-- 
d73b74
2.17.2
d73b74
d73b74
d73b74
From 23f8c641b02e6c302d0e8cc5a5ee225a33b01f28 Mon Sep 17 00:00:00 2001
d73b74
From: Daniel Stenberg <daniel@haxx.se>
d73b74
Date: Sun, 28 Oct 2018 10:43:57 +0100
d73b74
Subject: [PATCH 2/2] test2080: verify the fix for CVE-2018-16842
d73b74
d73b74
Upstream-commit: 350306e4726b71b5b386fc30e3fecc039a807157
d73b74
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
d73b74
---
d73b74
 tests/data/Makefile.inc |   4 ++--
d73b74
 tests/data/test2080     | Bin 0 -> 20659 bytes
d73b74
 2 files changed, 2 insertions(+), 2 deletions(-)
d73b74
 create mode 100644 tests/data/test2080
d73b74
d73b74
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc
d73b74
index e045748..aa5fff0 100644
d73b74
--- a/tests/data/Makefile.inc
d73b74
+++ b/tests/data/Makefile.inc
d73b74
@@ -198,7 +198,7 @@ test2048 test2049 test2050 test2051 test2052 test2053 test2054 test2055 \
d73b74
 test2056 test2057 test2058 test2059 test2060 test2061 test2062 test2063 \
d73b74
 test2064 test2065 test2066 test2067 test2068 test2069 \
d73b74
 \
d73b74
-test2070 test2071 test2072 test2073 \
d73b74
-test2074 test2075 \
d73b74
+test2070 test2071 test2072 test2073 test2074 test2075 \
d73b74
+test2080 \
d73b74
 \
d73b74
 test3000 test3001
d73b74
diff --git a/tests/data/test2080 b/tests/data/test2080
d73b74
new file mode 100644
d73b74
index 0000000000000000000000000000000000000000..47e376ecb5d7879c0a98e392bff48ccc52e9db0a
d73b74
GIT binary patch
d73b74
literal 20659
d73b74
zcmeI)Pj3@35QkyT{uI*`iBshYE(n>u@JB+F3kdG+t~asjwJY0gl}``eO+)FONU8ef
d73b74
zl6Ca+%<OZ|nCeRHZE>A4K8~q<UAgUD%0ubY=PwtZRG;GL*UIRJ-;Lfy)u}p_A1>dz
d73b74
zd{+G6l*#ToY+DU||F9%J1n*+KPxQ;7MapuoQ!&MMQSXmpqMh0_yS6g=;N;HNjilBk
d73b74
zY$c?)mULZxib{;$g~jw~nrs|8b@sJI)_QmS_4(WLrNld}2Y0LEO$e>m->_NA&o$n!
d73b74
z9^YDZ>cvMs2q1s}0tg_000PG)@a?$9VHyMwKmY**5I_I{1Q0m1z~!MEP#*yV5I_I{
d73b74
z1Q0*~0R#|0009ILKmY**4ldvh-hl=PAb
d73b74
z2q1s}0tg_0z|jf3Ji3V(2mu5TK;StGoIK~3=iL!N0D=D{@VjlsoA=?(>-+Xw`j-8D
d73b74
zzg+g?Rt8(G*s;1Sb>n1S94H%G
d73b74
jB)+~1L0rx$OS-AbERTH}TH`mZ^*=|W_vMU!*i-li)g+9V
d73b74
d73b74
literal 0
d73b74
HcmV?d00001
d73b74
d73b74
-- 
d73b74
2.17.2
d73b74