summaryrefslogtreecommitdiff
path: root/textproc/libxml2/patches/patch-CVE-2012-5134
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/libxml2/patches/patch-CVE-2012-5134')
-rw-r--r--textproc/libxml2/patches/patch-CVE-2012-513413
1 files changed, 13 insertions, 0 deletions
diff --git a/textproc/libxml2/patches/patch-CVE-2012-5134 b/textproc/libxml2/patches/patch-CVE-2012-5134
new file mode 100644
index 00000000000..a81f5d908a0
--- /dev/null
+++ b/textproc/libxml2/patches/patch-CVE-2012-5134
@@ -0,0 +1,13 @@
+$NetBSD: patch-CVE-2012-5134,v 1.1 2012/12/15 12:39:24 drochner Exp $
+
+--- parser.c.orig 2012-09-11 04:24:08.000000000 +0000
++++ parser.c
+@@ -4075,7 +4075,7 @@ xmlParseAttValueComplex(xmlParserCtxtPtr
+ goto error;
+
+ if ((in_space) && (normalize)) {
+- while (buf[len - 1] == 0x20) len--;
++ while ((len > 0) && (buf[len - 1] == 0x20)) len--;
+ }
+ buf[len] = 0;
+ if (RAW == '<') {