summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/curl/curl/CVE-2018-16842.patch
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2018-11-02 14:07:49 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-07 23:08:54 +0000
commitc67e7d1eb3d26d04bfe426d93f56a8b3a85dae93 (patch)
treec3ba9ed640c2a5ddc8aca4ae49afe445f80ef47b /meta/recipes-support/curl/curl/CVE-2018-16842.patch
parentfaacc5048746c5bd0366881cdf46470bfeef4300 (diff)
downloadpoky-c67e7d1eb3d26d04bfe426d93f56a8b3a85dae93.tar.gz
curl: fix for CVE-2018-16839/CVE-2018-16840/CVE-2018-16842
(From OE-Core rev: 0f0db9fc8512a0ecd0cdba3304a195cd925a5029) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/curl/curl/CVE-2018-16842.patch')
-rw-r--r--meta/recipes-support/curl/curl/CVE-2018-16842.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl/CVE-2018-16842.patch b/meta/recipes-support/curl/curl/CVE-2018-16842.patch
new file mode 100644
index 0000000000..82e7557063
--- /dev/null
+++ b/meta/recipes-support/curl/curl/CVE-2018-16842.patch
@@ -0,0 +1,35 @@
1From 0e4a6058b130f07cfa52fde8a3cb6f2abfe4c700 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Thu, 1 Nov 2018 15:30:56 +0800
4Subject: [PATCH] voutf: fix bad arethmetic when outputting warnings to stderr
5
6CVE-2018-16842
7Reported-by: Brian Carpenter
8Bug: https://curl.haxx.se/docs/CVE-2018-16842.html
9
10Upstream-Status: Backport [https://github.com/curl/curl/commit
11/d530e92f59ae9bb2d47066c3c460b25d2ffeb211]
12
13CVE: CVE-2018-16842
14
15Signed-off-by: Changqing Li <changqing.li@windriver.com>
16---
17 src/tool_msgs.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/src/tool_msgs.c b/src/tool_msgs.c
21index 9cce806..05bec39 100644
22--- a/src/tool_msgs.c
23+++ b/src/tool_msgs.c
24@@ -67,7 +67,7 @@ static void voutf(struct GlobalConfig *config,
25 (void)fwrite(ptr, cut + 1, 1, config->errors);
26 fputs("\n", config->errors);
27 ptr += cut + 1; /* skip the space too */
28- len -= cut;
29+ len -= cut + 1;
30 }
31 else {
32 fputs(ptr, config->errors);
33--
342.7.4
35