diff --git a/parser.c b/parser.c index 7aba6a9b..ea0e89ea 100644 --- a/parser.c +++ b/parser.c @@ -6708,6 +6708,7 @@ xmlParseElementDecl(xmlParserCtxtPtr ctxt) { if (!IS_BLANK_CH(CUR)) { xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQUIRED, "Space required after 'ELEMENT'\n"); + return(-1); } SKIP_BLANKS; name = xmlParseName(ctxt); @@ -6859,6 +6860,7 @@ xmlParseConditionalSections(xmlParserCtxtPtr ctxt) { if ((CUR_PTR == check) && (cons == ctxt->input->consumed)) { xmlFatalErr(ctxt, XML_ERR_EXT_SUBSET_NOT_FINISHED, NULL); + xmlHaltParser(ctxt); break; } } diff --git a/result/errors/759573-2.xml b/result/errors/759573-2.xml new file mode 100644 index 00000000..e69de29b diff --git a/result/errors/759573-2.xml.err b/result/errors/759573-2.xml.err new file mode 100644 index 00000000..d8773d8a --- /dev/null +++ b/result/errors/759573-2.xml.err @@ -0,0 +1,58 @@ +Entity: line 1: parser error : Space required after ' + ^ +Entity: line 1: parser error : xmlParseEntityDecl: no name + %zz; + ^ +Entity: line 1: + + ^ +Entity: line 1: parser error : ParsePI: PI xDOCTYPEm space expected + %zz; + ^ +Entity: line 1: + + ^ +Entity: line 1: parser error : Space required after ' + ^ +Entity: line 1: parser error : xmlParseEntityDecl: no name + %zz; + ^ +Entity: line 1: + + ^ +Entity: line 1: parser error : ParsePI: PI xDOCTYPEm space expected + %zz; + ^ +Entity: line 1: + + ^ +Entity: line 1: parser error : Space required after 'ELEMENT' + %xx; + ^ +Entity: line 3: +%zz; + ^ +./test/errors/759573-2.xml:6: parser error : DOCTYPE improperly terminated +%xx;ÿggKENSMYNT#MENTDŴzz;'> + ^ +./test/errors/759573-2.xml:6: parser error : Start tag expected, '<' not found +%xx;ÿggKENSMYNT#MENTDŴzz;'> + ^ diff --git a/result/errors/759573-2.xml.str b/result/errors/759573-2.xml.str new file mode 100644 index 00000000..baac1643 --- /dev/null +++ b/result/errors/759573-2.xml.str @@ -0,0 +1,4 @@ +./test/errors/759573-2.xml:2: parser error : Extra content at the end of the document +%xx; + ^ +./test/errors/759573.xml:1: parser error : DOCTYPE improperly terminated +T t (A)>%xx; + ^ +./test/errors/759573.xml:1: parser error : Start tag expected, '<' not found +T t (A)>%xx; + ^ diff --git a/result/errors/759573.xml.str b/result/errors/759573.xml.str new file mode 100644 index 00000000..1b6addb7 --- /dev/null +++ b/result/errors/759573.xml.str @@ -0,0 +1,4 @@ +./test/errors/759573.xml:1: parser error : Extra content at the end of the document + + + +' > +%xx;ÿggKENSMYNT#MENTDŴzz;'> +r.B"/> +e %xx; \ No newline at end of file