summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/libxml/libxml2/libxml2-CVE-2012-2871.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/libxml/libxml2/libxml2-CVE-2012-2871.patch')
-rw-r--r--meta/recipes-core/libxml/libxml2/libxml2-CVE-2012-2871.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-core/libxml/libxml2/libxml2-CVE-2012-2871.patch b/meta/recipes-core/libxml/libxml2/libxml2-CVE-2012-2871.patch
new file mode 100644
index 0000000000..41b19d0183
--- /dev/null
+++ b/meta/recipes-core/libxml/libxml2/libxml2-CVE-2012-2871.patch
@@ -0,0 +1,36 @@
1libxml2 CVE-2012-2871
2
3the patch come from:
4http://src.chromium.org/viewvc/chrome/trunk/src/third_party/libxml/src \
5/include/libxml/tree.h?r1=56276&r2=149930
6
7libxml2 2.9.0-rc1 and earlier, as used in Google Chrome before 21.0.1180.89,
8does not properly support a cast of an unspecified variable during handling
9of XSL transforms, which allows remote attackers to cause a denial of service
10or possibly have unknown other impact via a crafted document, related to the
11_xmlNs data structure in include/libxml/tree.h.
12
13http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-2871
14
15Upstream-Status: Pending
16
17Signed-off-by: Li Wang <li.wang@windriver.com>
18---
19 include/libxml/tree.h | 1 +
20 1 files changed, 1 insertions(+), 0 deletions(-)
21
22diff --git a/include/libxml/tree.h b/include/libxml/tree.h
23index b733589..5422dda 100644
24--- a/include/libxml/tree.h
25+++ b/include/libxml/tree.h
26@@ -351,6 +351,7 @@ struct _xmlNs {
27 struct _xmlNs *next; /* next Ns link for this node */
28 xmlNsType type; /* global or local */
29 const xmlChar *href; /* URL for the namespace */
30+ const char *dummy_children; /* lines up with node->children */
31 const xmlChar *prefix; /* prefix for the namespace */
32 void *_private; /* application data */
33 struct _xmlDoc *context; /* normally an xmlDoc */
34--
351.7.0.5
36