diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2018-01-22 15:40:05 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2018-01-22 15:42:26 +0100 |
commit | ab362ab0ad3af54406ae8237a525405c6e2a705b (patch) | |
tree | ebfd2cc848b04dc6cce5937478b3f4770f888057 | |
parent | 60dded12cbf1705927803c5ed615a7a0132aebbd (diff) | |
download | libxml2-ab362ab0ad3af54406ae8237a525405c6e2a705b.tar.gz |
Halt parser in case of encoding errorv2.9.8-rc1
Should fix crbug.com/793715, although I wasn't able to reproduce the
issue.
-rw-r--r-- | parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -12218,6 +12218,7 @@ xmldecl_done: /* TODO 2.6.0 */ xmlGenericError(xmlGenericErrorContext, "xmlParseChunk: encoder error\n"); + xmlHaltParser(ctxt); return(XML_ERR_INVALID_ENCODING); } xmlBufSetInputBaseCur(in->buffer, ctxt->input, base, current); |