[Mono-bugs] [Bug 68410][Maj] New - XPathDocument crashes on ">" character in comment inside DOCTYPE declaration

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 15 Oct 2004 05:34:41 -0400 (EDT)


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 beda@zirael.org.

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

--- shadow/68410	2004-10-15 05:34:41.000000000 -0400
+++ shadow/68410.tmp.11103	2004-10-15 05:34:41.000000000 -0400
@@ -0,0 +1,51 @@
+Bug#: 68410
+Product: Mono: Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Gentoo 2004.2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: beda@zirael.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XPathDocument crashes on ">" character in comment inside DOCTYPE declaration
+
+Description of Problem:
+
+System.Xml.XPathDocument initialization crashes on XML document that has a
+comment inside a DOCTYPE declaration containing ">" character.
+
+This is a minimalistic XML document that triggers the error:
+
+<!DOCTYPE book [
+<!-- <myemail@site.com> -->
+] >
+<book>
+</book>
+
+Here is the exception thrown:
+
+ Unhandled Exception: System.Xml.XmlException: unexpected '>'. Line 2,
+position 8.
+
+
+Actual Results:
+exception thrown
+
+Expected Results:
+the document is read
+
+How often does this happen? 
+always
+
+Additional Information:
+It does not happen when there is such a comment inside the document body,
+only inside DOCTYPE declaration
+
+I am using mono-1.0.2 compiled from scratch (as usual on Gentoo Linux)