Commit ab362ab0 authored by Nick Wellnhofer's avatar Nick Wellnhofer
Browse files

Halt parser in case of encoding error

Should fix crbug.com/793715, although I wasn't able to reproduce the
issue.
parent 60dded12
...@@ -12218,6 +12218,7 @@ xmldecl_done: ...@@ -12218,6 +12218,7 @@ xmldecl_done:
/* TODO 2.6.0 */ /* TODO 2.6.0 */
xmlGenericError(xmlGenericErrorContext, xmlGenericError(xmlGenericErrorContext,
"xmlParseChunk: encoder error\n"); "xmlParseChunk: encoder error\n");
xmlHaltParser(ctxt);
return(XML_ERR_INVALID_ENCODING); return(XML_ERR_INVALID_ENCODING);
} }
xmlBufSetInputBaseCur(in->buffer, ctxt->input, base, current); xmlBufSetInputBaseCur(in->buffer, ctxt->input, base, current);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment