diff options
author | Muminul Islam <misla011@fiu.edu> | 2019-10-11 19:21:51 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-15 15:54:01 +0100 |
commit | 507434199d6ba699045692cef441931fa384b6dc (patch) | |
tree | f742f5232edc63ffd8f899039e68897912e13faa /meta/recipes-extended/libsolv/libsolv/0003-Fix-Dereference-of-null-pointer.patch | |
parent | ab318acf535fe20c52bdde2e7f3fc17b1dc22dbd (diff) | |
download | poky-507434199d6ba699045692cef441931fa384b6dc.tar.gz |
libsolv: Security fix for CVEs: <CVE-2018-20532, CVE-2018-20533, CVE-2018-20534>
(From OE-Core rev: 82a9850d6ef8cca816f9e0a53a8d20b056f95320)
Signed-off-by: Muminul Islam <muislam@microsoft.com>
CVE: CVE-2018-20532 CVE-2018-20533 CVE-2018-20534
Upstream-Status: Backport
Cherry picked from https://github.com/openSUSE/libsolv/pull/291/commits
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 | |||