aboutsummaryrefslogtreecommitdiffstats
path: root/xmlIO.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-10-31 10:36:03 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-10-31 10:36:03 +0000
commit157fee019d02e1ba4ed377ea21172b67f479241b (patch)
treea4d39c614ae74410bfb87a021037255187b3de95 /xmlIO.c
parent8a0a633ceaaf93faae6900d3c13d6328f4f06a9d (diff)
downloadandroid_external_libxml2-157fee019d02e1ba4ed377ea21172b67f479241b.tar.gz
android_external_libxml2-157fee019d02e1ba4ed377ea21172b67f479241b.tar.bz2
android_external_libxml2-157fee019d02e1ba4ed377ea21172b67f479241b.zip
previous fix for #124044 was broken, correct fix provided. fix
* python/libxml.c: previous fix for #124044 was broken, correct fix provided. * HTMLparser.c parser.c parserInternals.c xmlIO.c: fix xmlStopParser() and the error handlers to address #125877 Daniel
Diffstat (limited to 'xmlIO.c')
-rw-r--r--xmlIO.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmlIO.c b/xmlIO.c
index f93c4970..33c544b8 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -409,6 +409,9 @@ __xmlLoaderErr(void *ctx, const char *msg, const char *filename)
void *data = NULL;
xmlErrorLevel level = XML_ERR_ERROR;
+ if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
+ (ctxt->instate == XML_PARSER_EOF))
+ return;
if ((ctxt != NULL) && (ctxt->sax != NULL)) {
if (ctxt->validate) {
channel = ctxt->sax->error;