[Mono-bugs] [Bug 81294][Nor] New - In DTD, right bracket character ']' in an xml comment causes XMLReader to throw an exception ("unexpected end of file at DTD").

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Apr 2 18:19:49 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by yukinokami at krisbaker.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81294

--- shadow/81294	2007-04-02 18:19:49.000000000 -0400
+++ shadow/81294.tmp.17747	2007-04-02 18:19:49.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 81294
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: Gentoo (2.6.18)
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: yukinokami at krisbaker.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: In DTD, right bracket character ']' in an xml comment causes XMLReader to throw an exception ("unexpected end of file at DTD").
+
+Description of Problem:
+When using an XmlReader on an xml file with a DTD, an exception is thrown
+if there is a right bracket character ']' within an xml comment within the DTD.
+
+Steps to reproduce the problem:
+1. Using an xml file that contains a DTD and an xml comment within the DTD
+that includes the ']' character, create an XmlReader with
+XmlSettings.ProhibitDtd = false.
+2. Use the XmlReader.MoveToContent() or XmlReader.Read() methods on the
+reader that was created.
+
+How often does this happen? 
+Always.
+
+Additional Information:
+
+Stack trace:
+System.Xml.XmlException: unexpected end of file at DTD.  Line 6, position 2.
+  at Mono.Xml2.XmlTextReader.ReadInternalSubset () [0x00000]
+  at Mono.Xml2.XmlTextReader.ReadDoctypeDecl () [0x00000]
+  at Mono.Xml2.XmlTextReader.ReadDeclaration () [0x00000]
+  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000]
+  at Mono.Xml2.XmlTextReader.Read () [0x00000]
+  at System.Xml.XmlTextReader.Read () [0x00000]
+  at System.Xml.XmlReader.MoveToContent () [0x00000]


More information about the mono-bugs mailing list