Module Name: xsrc
Committed By: bouyer
Date: Wed Jan 27 20:43:00 UTC 2010
Modified Files:
xsrc/external/mit/expat/dist/lib [netbsd-5]: xmlparse.c
Log Message:
Pull up following revision(s) (requested by tron in ticket #1283):
xsrc/external/mit/expat/dist/lib/xmlparse.c: revision 1.2
Add patch from upstream CVS to fix CVE-2009-3560 (possible DOS due to
crash on bad input).
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
xsrc/external/mit/expat/dist/lib/xmlparse.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/expat/dist/lib/xmlparse.c
diff -u xsrc/external/mit/expat/dist/lib/xmlparse.c:1.1.1.1 xsrc/external/mit/expat/dist/lib/xmlparse.c:1.1.1.1.2.1
--- xsrc/external/mit/expat/dist/lib/xmlparse.c:1.1.1.1 Tue Jul 29 05:35:07 2008
+++ xsrc/external/mit/expat/dist/lib/xmlparse.c Wed Jan 27 20:43:00 2010
@@ -3703,6 +3703,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 */