diff options
Diffstat (limited to 'recipes-core/libxml/libxml2/libxml2-CVE-2017-8872.patch')
-rw-r--r-- | recipes-core/libxml/libxml2/libxml2-CVE-2017-8872.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/recipes-core/libxml/libxml2/libxml2-CVE-2017-8872.patch b/recipes-core/libxml/libxml2/libxml2-CVE-2017-8872.patch deleted file mode 100644 index 6319280..0000000 --- a/recipes-core/libxml/libxml2/libxml2-CVE-2017-8872.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | From d2f873a541c72b0f67e15562819bf98b884b30b7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Wed, 23 Aug 2017 16:04:49 +0800 | ||
4 | Subject: [PATCH] fix CVE-2017-8872 | ||
5 | |||
6 | this makes xmlHaltParser "empty" the buffer, as it resets cur and ava | ||
7 | il too here. | ||
8 | |||
9 | this seems to cure this specific issue, and also passes the testsuite | ||
10 | |||
11 | Signed-off-by: Marcus Meissner <meissner@suse.de> | ||
12 | |||
13 | https://bugzilla.gnome.org/show_bug.cgi?id=775200 | ||
14 | |||
15 | CVE: CVE-2017-8872 | ||
16 | Upstream-Status: Backport [https://bugzilla.gnome.org/attachment.cgi?id=355527&action=diff] | ||
17 | |||
18 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
19 | Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com> | ||
20 | --- | ||
21 | parser.c | 4 ++++ | ||
22 | 1 file changed, 4 insertions(+) | ||
23 | |||
24 | diff --git a/parser.c b/parser.c | ||
25 | index 9506ead..6c07ffd 100644 | ||
26 | --- a/parser.c | ||
27 | +++ b/parser.c | ||
28 | @@ -12664,6 +12664,10 @@ xmlHaltParser(xmlParserCtxtPtr ctxt) { | ||
29 | } | ||
30 | ctxt->input->cur = BAD_CAST""; | ||
31 | ctxt->input->base = ctxt->input->cur; | ||
32 | + if (ctxt->input->buf) { | ||
33 | + xmlBufEmpty (ctxt->input->buf->buffer); | ||
34 | + } else | ||
35 | + ctxt->input->length = 0; | ||
36 | } | ||
37 | } | ||
38 | |||
39 | -- | ||
40 | 2.7.4 | ||
41 | |||