[Mono-bugs] [Bug 76260][Nor] Changed - XmlNodeReader reads past the
end of the node
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Sep 28 14:20:28 EDT 2005
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 csaba.halasz at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76260
--- shadow/76260 2005-09-28 13:30:29.000000000 -0400
+++ shadow/76260.tmp.28211 2005-09-28 14:20:28.000000000 -0400
@@ -52,6 +52,25 @@
Additional Information:
Tested with 1.1.9 20050927
------- Additional Comments From atsushi at ximian.com 2005-09-28 13:30 -------
At least it won't be a duplicate ;-)
+
+------- Additional Comments From Csaba.Halasz at gmail.com 2005-09-28 14:20 -------
+How about this fix?
+--- XmlNodeReaderImpl.cs.orig 2005-09-27 14:34:58.000000000 +0200
++++ XmlNodeReaderImpl.cs 2005-09-28 19:35:16.000000000 +0200
+@@ -767,7 +767,8 @@
+ isEndElement = false;
+ if (current.ParentNode == null
+ || current.ParentNode.NodeType
+== XmlNodeType.Document
+- || current.ParentNode.NodeType
+== XmlNodeType.DocumentFragment) {
++ || current.ParentNode.NodeType
+== XmlNodeType.DocumentFragment
++ || current == startNode) {
+ isEnd = true;
+ } else if (current.NextSibling == null) {
+ depth--;
+
More information about the mono-bugs
mailing list