summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfdrake <fdrake>2006-07-01 03:57:29 +0000
committerfdrake <fdrake>2006-07-01 03:57:29 +0000
commit54130e31026947f83505345ccef96dbc2e29ee83 (patch)
tree6efbaaa41d0e638ea8a6b5ac432f96b3dab512f7
parent1c8197b58108c1c63dde40b3ee35f8c72472f9be (diff)
downloadlibexpat-54130e31026947f83505345ccef96dbc2e29ee83.tar.gz
SF bug #1515266: missing check of stopped parser in doContext() for loop
(variation of patch by Brett Cannon; test case to come tomorrow)
-rw-r--r--lib/xmlparse.c2
1 files changed, 2 insertions, 0 deletions
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;
}
}