summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libsoup/libsoup-2.4/CVE-2018-12910.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libsoup/libsoup-2.4/CVE-2018-12910.patch')
-rw-r--r--meta/recipes-support/libsoup/libsoup-2.4/CVE-2018-12910.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-support/libsoup/libsoup-2.4/CVE-2018-12910.patch b/meta/recipes-support/libsoup/libsoup-2.4/CVE-2018-12910.patch
new file mode 100644
index 0000000000..158bf93093
--- /dev/null
+++ b/meta/recipes-support/libsoup/libsoup-2.4/CVE-2018-12910.patch
@@ -0,0 +1,32 @@
1CVE: CVE-2018-12910
2Upstream-Status: Backport
3Signed-off-by: Ross Burton <ross.burton@intel.com>
4
5From db2b0d5809d5f8226d47312b40992cadbcde439f Mon Sep 17 00:00:00 2001
6From: Michael Catanzaro <mcatanzaro@igalia.com>
7Date: Sun, 24 Jun 2018 19:46:19 -0500
8Subject: [PATCH] cookie-jar: bail if hostname is an empty string
9
10There are several other ways to fix the problem with this function, but
11skipping over all of the code is probably the simplest.
12
13Fixes #3
14---
15 libsoup/soup-cookie-jar.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/libsoup/soup-cookie-jar.c b/libsoup/soup-cookie-jar.c
19index 2369c8a7..b2b78909 100644
20--- a/libsoup/soup-cookie-jar.c
21+++ b/libsoup/soup-cookie-jar.c
22@@ -307,7 +307,7 @@ get_cookies (SoupCookieJar *jar, SoupURI *uri, gboolean for_http, gboolean copy_
23
24 priv = soup_cookie_jar_get_instance_private (jar);
25
26- if (!uri->host)
27+ if (!uri->host || !uri->host[0])
28 return NULL;
29
30 /* The logic here is a little weird, but the plan is that if
31--
322.17.1