aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/libxml/libxml2/libxml2-CVE-2012-2871.patch
blob: 3c66a9ca5e1a5724fe6123c9272aea185a775ba9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
libxml2 CVE-2012-2871

the patch come from:
http://src.chromium.org/viewvc/chrome/trunk/src/third_party/libxml/src \
/include/libxml/tree.h?r1=56276&r2=149930

libxml2 2.9.0-rc1 and earlier, as used in Google Chrome before 21.0.1180.89,
does not properly support a cast of an unspecified variable during handling
of XSL transforms, which allows remote attackers to cause a denial of service
or possibly have unknown other impact via a crafted document, related to the
_xmlNs data structure in include/libxml/tree.h.

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-2871

Signed-off-by: Li Wang <li.wang@windriver.com>
---
 include/libxml/tree.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/libxml/tree.h b/include/libxml/tree.h
index b733589..5422dda 100644
--- a/include/libxml/tree.h
+++ b/include/libxml/tree.h
@@ -351,6 +351,7 @@ struct _xmlNs {
     struct _xmlNs  *next;	/* next Ns link for this node  */
     xmlNsType      type;	/* global or local */
     const xmlChar *href;	/* URL for the namespace */
+    const char *dummy_children;	/* lines up with node->children */
     const xmlChar *prefix;	/* prefix for the namespace */
     void           *_private;   /* application data */
     struct _xmlDoc *context;		/* normally an xmlDoc */
-- 
1.7.0.5