fixes bug #105998 about false detection of attribute consumption loop.
* parser.c: fixes bug #105998 about false detection of
attribute consumption loop.
Daniel
diff --git a/parser.c b/parser.c
index ce67e54..ba9327c 100644
--- a/parser.c
+++ b/parser.c
@@ -6727,7 +6727,8 @@
if (ctxt->recovery == 0) ctxt->disableSAX = 1;
}
SKIP_BLANKS;
- if ((cons == ctxt->input->consumed) && (q == CUR_PTR)) {
+ if ((cons == ctxt->input->consumed) && (q == CUR_PTR) &&
+ (attname == NULL) && (attvalue == NULL)) {
ctxt->errNo = XML_ERR_INTERNAL_ERROR;
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
ctxt->sax->error(ctxt->userData,