diff options
Diffstat (limited to 'meta/recipes-extended/libsolv/libsolv/0003-Fix-Dereference-of-null-pointer.patch')
-rw-r--r-- | meta/recipes-extended/libsolv/libsolv/0003-Fix-Dereference-of-null-pointer.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-extended/libsolv/libsolv/0003-Fix-Dereference-of-null-pointer.patch b/meta/recipes-extended/libsolv/libsolv/0003-Fix-Dereference-of-null-pointer.patch new file mode 100644 index 0000000000..b10fd82770 --- /dev/null +++ b/meta/recipes-extended/libsolv/libsolv/0003-Fix-Dereference-of-null-pointer.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From fcd9e3aba122a220af617a802c4f47bad4b51e64 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jaroslav Rohel <jrohel@redhat.com> | ||
3 | Date: Fri, 7 Dec 2018 07:05:10 +0100 | ||
4 | Subject: [PATCH] Fix: Dereference of null pointer | ||
5 | Reply-To: muislam@microsoft.com | ||
6 | CVE: CVE-2018-20532 CVE-2018-20533 CVE-2018-20534 | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | |||
10 | Signed-off-by: Muminul Islam <muislam@microsoft.com> | ||
11 | |||
12 | Cherry picked from https://github.com/openSUSE/libsolv/pull/291/commits | ||
13 | |||
14 | --- | ||
15 | ext/repo_repomdxml.c | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/ext/repo_repomdxml.c b/ext/repo_repomdxml.c | ||
19 | index 760d481f..b2a5b8dd 100644 | ||
20 | --- a/ext/repo_repomdxml.c | ||
21 | +++ b/ext/repo_repomdxml.c | ||
22 | @@ -181,7 +181,7 @@ startElement(struct solv_xmlparser *xmlp, int state, const char *name, const cha | ||
23 | while (value) | ||
24 | { | ||
25 | char *p = strchr(value, ','); | ||
26 | - if (*p) | ||
27 | + if (p) | ||
28 | *p++ = 0; | ||
29 | if (*value) | ||
30 | repodata_add_poolstr_array(pd->data, SOLVID_META, REPOSITORY_UPDATES, value); | ||
31 | -- | ||
32 | 2.23.0 | ||
33 | |||