mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-28 22:50:07 +03:00
parser: Report OOM errors even after parser was stopped
This commit is contained in:
parent
9835ec2b97
commit
c444c96e20
@ -223,14 +223,14 @@ xmlCtxtVErr(xmlParserCtxtPtr ctxt, xmlNodePtr node, xmlErrorDomain domain,
|
||||
int col = 0;
|
||||
int res;
|
||||
|
||||
if (PARSER_STOPPED(ctxt))
|
||||
return;
|
||||
|
||||
if (code == XML_ERR_NO_MEMORY) {
|
||||
xmlCtxtErrMemory(ctxt);
|
||||
return;
|
||||
}
|
||||
|
||||
if (PARSER_STOPPED(ctxt))
|
||||
return;
|
||||
|
||||
if (level == XML_ERR_WARNING) {
|
||||
if (ctxt->nbWarnings >= XML_MAX_ERRORS)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user