| Index: third_party/libxml/src/parser.c
|
| ===================================================================
|
| --- third_party/libxml/src/parser.c (revision 100883)
|
| +++ third_party/libxml/src/parser.c (working copy)
|
| @@ -4827,8 +4827,7 @@
|
| (ctxt->sax->processingInstruction != NULL))
|
| ctxt->sax->processingInstruction(ctxt->userData,
|
| target, NULL);
|
| - if (ctxt->instate != XML_PARSER_EOF)
|
| - ctxt->instate = state;
|
| + ctxt->instate = state;
|
| return;
|
| }
|
| buf = (xmlChar *) xmlMallocAtomic(size * sizeof(xmlChar));
|
| @@ -4908,8 +4907,7 @@
|
| } else {
|
| xmlFatalErr(ctxt, XML_ERR_PI_NOT_STARTED, NULL);
|
| }
|
| - if (ctxt->instate != XML_PARSER_EOF)
|
| - ctxt->instate = state;
|
| + ctxt->instate = state;
|
| }
|
| }
|
|
|
| @@ -9468,8 +9466,6 @@
|
| else
|
| name = xmlParseStartTag(ctxt);
|
| #endif /* LIBXML_SAX1_ENABLED */
|
| - if (ctxt->instate == XML_PARSER_EOF)
|
| - return;
|
| if (name == NULL) {
|
| spacePop(ctxt);
|
| return;
|
| @@ -10849,8 +10845,6 @@
|
| else
|
| name = xmlParseStartTag(ctxt);
|
| #endif /* LIBXML_SAX1_ENABLED */
|
| - if (ctxt->instate == XML_PARSER_EOF)
|
| - return;
|
| if (name == NULL) {
|
| spacePop(ctxt);
|
| ctxt->instate = XML_PARSER_EOF;
|
| @@ -11037,9 +11031,7 @@
|
| else
|
| xmlParseEndTag1(ctxt, 0);
|
| #endif /* LIBXML_SAX1_ENABLED */
|
| - if (ctxt->instate == XML_PARSER_EOF) {
|
| - /* Nothing */
|
| - } else if (ctxt->nameNr == 0) {
|
| + if (ctxt->nameNr == 0) {
|
| ctxt->instate = XML_PARSER_EPILOG;
|
| } else {
|
| ctxt->instate = XML_PARSER_CONTENT;
|
|
|