summaryrefslogtreecommitdiffstats
path: root/expat/expat-CVE-2009-3560.patch
blob: 8abdece174846c3e985e4e176fb259c7e67d7b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3560
# http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/xmlparse.c?view=patch&r1=1.166&r2=1.164

--- xmlparse.c	2009/09/29 02:49:16	1.164
+++ xmlparse.c	2009/12/29 18:42:05	1.166
@@ -3701,6 +3701,9 @@
         return XML_ERROR_UNCLOSED_TOKEN;
       case XML_TOK_PARTIAL_CHAR:
         return XML_ERROR_PARTIAL_CHAR;
+      case -XML_TOK_PROLOG_S:
+        tok = -tok;
+        break;
       case XML_TOK_NONE:
 #ifdef XML_DTD
         /* for internal PE NOT referenced between declarations */