diff options
Diffstat (limited to 'meta/recipes-core/libxml/libxml2/CVE-2016-1762.patch')
-rw-r--r-- | meta/recipes-core/libxml/libxml2/CVE-2016-1762.patch | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/meta/recipes-core/libxml/libxml2/CVE-2016-1762.patch b/meta/recipes-core/libxml/libxml2/CVE-2016-1762.patch new file mode 100644 index 0000000000..8fff179ce9 --- /dev/null +++ b/meta/recipes-core/libxml/libxml2/CVE-2016-1762.patch | |||
@@ -0,0 +1,84 @@ | |||
1 | From a7a94612aa3b16779e2c74e1fa353b5d9786c602 Mon Sep 17 00:00:00 2001 | ||
2 | From: Daniel Veillard <veillard@redhat.com> | ||
3 | Date: Tue, 9 Feb 2016 12:55:29 +0100 | ||
4 | Subject: [PATCH] Heap-based buffer overread in xmlNextChar | ||
5 | |||
6 | For https://bugzilla.gnome.org/show_bug.cgi?id=759671 | ||
7 | |||
8 | when the end of the internal subset isn't properly detected | ||
9 | xmlParseInternalSubset should just return instead of trying | ||
10 | to process input further. | ||
11 | |||
12 | Upstream-Status: Backport | ||
13 | CVE: CVE-2016-1762 | ||
14 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
15 | |||
16 | --- | ||
17 | parser.c | 1 + | ||
18 | result/errors/754946.xml.err | 10 +++++----- | ||
19 | result/errors/content1.xml.err | 2 +- | ||
20 | result/valid/t8.xml.err | 2 +- | ||
21 | result/valid/t8a.xml.err | 2 +- | ||
22 | 5 files changed, 9 insertions(+), 8 deletions(-) | ||
23 | |||
24 | Index: libxml2-2.9.2/parser.c | ||
25 | =================================================================== | ||
26 | --- libxml2-2.9.2.orig/parser.c | ||
27 | +++ libxml2-2.9.2/parser.c | ||
28 | @@ -8480,6 +8480,7 @@ xmlParseInternalSubset(xmlParserCtxtPtr | ||
29 | */ | ||
30 | if (RAW != '>') { | ||
31 | xmlFatalErr(ctxt, XML_ERR_DOCTYPE_NOT_FINISHED, NULL); | ||
32 | + return; | ||
33 | } | ||
34 | NEXT; | ||
35 | } | ||
36 | Index: libxml2-2.9.2/result/errors/754946.xml.err | ||
37 | =================================================================== | ||
38 | --- libxml2-2.9.2.orig/result/errors/754946.xml.err | ||
39 | +++ libxml2-2.9.2/result/errors/754946.xml.err | ||
40 | @@ -11,9 +11,9 @@ Entity: line 1: parser error : DOCTYPE i | ||
41 | Entity: line 1: | ||
42 | A<lbbbbbbbbbbbbbbbbbbb_ | ||
43 | ^ | ||
44 | -./test/errors/754946.xml:1: parser error : Start tag doesn't start and stop in the same entity | ||
45 | ->%SYSTEM;<![ | ||
46 | - ^ | ||
47 | -./test/errors/754946.xml:1: parser error : Extra content at the end of the document | ||
48 | ->%SYSTEM;<![ | ||
49 | +Entity: line 1: parser error : Start tag expected, '<' not found | ||
50 | + %SYSTEM; | ||
51 | ^ | ||
52 | +Entity: line 1: | ||
53 | +A<lbbbbbbbbbbbbbbbbbbb_ | ||
54 | +^ | ||
55 | Index: libxml2-2.9.2/result/errors/content1.xml.err | ||
56 | =================================================================== | ||
57 | --- libxml2-2.9.2.orig/result/errors/content1.xml.err | ||
58 | +++ libxml2-2.9.2/result/errors/content1.xml.err | ||
59 | @@ -13,4 +13,4 @@ | ||
60 | ^ | ||
61 | ./test/errors/content1.xml:7: parser error : Start tag expected, '<' not found | ||
62 | <!ELEMENT aElement (a |b * > | ||
63 | - ^ | ||
64 | + ^ | ||
65 | Index: libxml2-2.9.2/result/valid/t8.xml.err | ||
66 | =================================================================== | ||
67 | --- libxml2-2.9.2.orig/result/valid/t8.xml.err | ||
68 | +++ libxml2-2.9.2/result/valid/t8.xml.err | ||
69 | @@ -16,4 +16,4 @@ Entity: line 1: parser error : Start tag | ||
70 | ^ | ||
71 | Entity: line 1: | ||
72 | <!ELEMENT root (middle) > | ||
73 | - ^ | ||
74 | +^ | ||
75 | Index: libxml2-2.9.2/result/valid/t8a.xml.err | ||
76 | =================================================================== | ||
77 | --- libxml2-2.9.2.orig/result/valid/t8a.xml.err | ||
78 | +++ libxml2-2.9.2/result/valid/t8a.xml.err | ||
79 | @@ -16,4 +16,4 @@ Entity: line 1: parser error : Start tag | ||
80 | ^ | ||
81 | Entity: line 1: | ||
82 | <!ELEMENT root (middle) > | ||
83 | - ^ | ||
84 | +^ | ||