commit | ab362ab0ad3af54406ae8237a525405c6e2a705b | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Mon Jan 22 15:40:05 2018 +0100 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Mon Jan 22 15:42:26 2018 +0100 |
tree | ebfd2cc848b04dc6cce5937478b3f4770f888057 | |
parent | 60dded12cbf1705927803c5ed615a7a0132aebbd [diff] |
Halt parser in case of encoding error Should fix crbug.com/793715, although I wasn't able to reproduce the issue.
diff --git a/parser.c b/parser.c index d1ce8b5..5e800e1 100644 --- a/parser.c +++ b/parser.c
@@ -12218,6 +12218,7 @@ /* TODO 2.6.0 */ xmlGenericError(xmlGenericErrorContext, "xmlParseChunk: encoder error\n"); + xmlHaltParser(ctxt); return(XML_ERR_INVALID_ENCODING); } xmlBufSetInputBaseCur(in->buffer, ctxt->input, base, current);