git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/vmware@3028 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2011-11-12 11:30:04 +00:00
parent 8e4acf575b
commit f7b5b22458
5 changed files with 53 additions and 9 deletions

View File

@@ -0,0 +1,15 @@
http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/xmltok_impl.c?r1=1.13&r2=1.15
Index: lib/xmltok_impl.c
===================================================================
--- lib/xmltok_impl.c.orig
+++ lib/xmltok_impl.c
@@ -1741,7 +1741,7 @@ PREFIX(updatePosition)(const ENCODING *e
const char *end,
POSITION *pos)
{
- while (ptr != end) {
+ while (ptr < end) {
switch (BYTE_TYPE(enc, ptr)) {
#define LEAD_CASE(n) \
case BT_LEAD ## n: \

View File

@@ -0,0 +1,16 @@
http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/xmlparse.c?r1=1.164&r2=1.166&view=patch
Index: lib/xmlparse.c
===================================================================
--- lib/xmlparse.c.orig
+++ lib/xmlparse.c
@@ -3615,6 +3615,9 @@ doProlog(XML_Parser parser,
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 */