Commit 0e0f37a3 authored by Daniel Veillard's avatar Daniel Veillard

fixing Red Hat bug #91013 where xmllint was accepting an improper UTF8

* parserInternals.c: fixing Red Hat bug #91013 where xmllint was
  accepting an improper UTF8 sequence
Daniel
parent fb7f0845
Tue May 20 14:21:23 CEST 2003 Daniel Veillard <daniel@veillard.com>
* parserInternals.c: fixing Red Hat bug #91013 where xmllint was
accepting an improper UTF8 sequence
Sat May 17 12:53:11 CEST 2003 Igor Zlatkovic <igor@zlatkovic.com>
* threads.c: applied the patch from Stphane Bidoul for getting
......
......@@ -1144,6 +1144,8 @@ xmlNextChar(xmlParserCtxtPtr ctxt)
c = *cur;
if (c & 0x80) {
if (c == 0xC0)
goto encoding_error;
if (cur[1] == 0)
xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
if ((cur[1] & 0xc0) != 0x80)
......@@ -1290,6 +1292,8 @@ xmlCurrentChar(xmlParserCtxtPtr ctxt, int *len) {
c = *cur;
if (c & 0x80) {
if (c == 0xC0)
goto encoding_error;
if (cur[1] == 0)
xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
if ((cur[1] & 0xc0) != 0x80)
......
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