From 98a856ee200f1eada80c7808a325217d65e4b829 Mon Sep 17 00:00:00 2001 From: Karl Waclawek Date: Tue, 29 Dec 2009 18:42:05 +0000 Subject: [PATCH] Revised fix for issue# 2894085: differentiated between two cases where the next pointer should be updated to the end pointer or not - the differentiating negative token value is -XML_TOK_PROLOG_S. --- expat/lib/xmlparse.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 72488d41..c766d405 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -3701,6 +3701,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 */ @@ -3723,6 +3726,7 @@ doProlog(XML_Parser parser, return XML_ERROR_NO_ELEMENTS; default: tok = -tok; + next = end; break; } } -- 2.40.0