From 54130e31026947f83505345ccef96dbc2e29ee83 Mon Sep 17 00:00:00 2001 From: fdrake Date: Sat, 1 Jul 2006 03:57:29 +0000 Subject: SF bug #1515266: missing check of stopped parser in doContext() for loop (variation of patch by Brett Cannon; test case to come tomorrow) --- lib/xmlparse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/xmlparse.c b/lib/xmlparse.c index 74ace1b..10236fa 100644 --- a/lib/xmlparse.c +++ b/lib/xmlparse.c @@ -2555,6 +2555,8 @@ doContent(XML_Parser parser, (int)(dataPtr - (ICHAR *)dataBuf)); if (s == next) break; + if (ps_parsing == XML_FINISHED) + break; *eventPP = s; } } -- cgit v1.2.1