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