* XmlTextReader.cs : character ']' inside DTD comment caused parser
error. Fixed bug #81294.
* XmlTextReaderTests.cs : added test for bug #81294.
svn path=/trunk/mcs/; revision=75325
+2007-04-03 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlTextReader.cs : character ']' inside DTD comment caused parser
+ error. Fixed bug #81294.
+
2007-03-05 Atsushi Enomoto <atsushi@ximian.com>
* XmlReader.cs : when Create() returns customized XmlTextReader, set
continueParse = false;
break;
case DtdInputState.InsideDoubleQuoted:
- continue;
case DtdInputState.InsideSingleQuoted:
+ case DtdInputState.Comment:
continue;
default:
throw NotWFError ("unexpected end of file at DTD.");
+2007-04-03 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlTextReaderTests.cs : added test for bug #81294.
+
2007-03-05 Atsushi Enomoto <atsushi@ximian.com>
* XmlReaderSettingsTests.cs : added test for bug #81000.
new string (buf, 0, c));
AssertEquals ("total lines", 5, n);
}
+
+ [Test] // bug #81294
+ public void DtdCommentContainsCloseBracket ()
+ {
+ string xml = @"<!DOCTYPE kanjidic2 [<!ELEMENT kanjidic2 EMPTY> <!-- ] --> ]><kanjidic2 />";
+ XmlTextReader xtr = new XmlTextReader (xml, XmlNodeType.Document, null);
+ while (!xtr.EOF)
+ xtr.Read ();
+ }
}
}