mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 12:25:09 +03:00
Fix a failure to report xmlreader parsing failures
Related to https://bugzilla.gnome.org/show_bug.cgi?id=654567 the problem is that the provided patch failed to raise an error on xmlTextReaderRead() return when an actual parsing error occured
This commit is contained in:
parent
549f06a8bd
commit
c508fa3f0b
@ -907,8 +907,11 @@ xmlTextReaderPushData(xmlTextReaderPtr reader) {
|
||||
}
|
||||
}
|
||||
reader->state = oldstate;
|
||||
if (reader->ctxt->wellFormed == 0)
|
||||
if (reader->ctxt->wellFormed == 0) {
|
||||
reader->mode = XML_TEXTREADER_MODE_EOF;
|
||||
return(-1);
|
||||
}
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user