[Mono-bugs] [Bug 40253][Blo] Changed - System.IndexOutOfRangeException when using SqlCommand.ExecuteXmlReader()
Wed, 3 Dec 2003 01:55:11 -0500 (EST)
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 email@example.com.
--- shadow/40253 2003-12-03 01:52:54.000000000 -0500
+++ shadow/40253.tmp.28799 2003-12-03 01:55:11.000000000 -0500
@@ -2,13 +2,13 @@
Product: Mono/Class Libraries
OS: Red Hat 8.0
@@ -86,6 +86,22 @@
mono version: 0.23
------- Additional Comments From firstname.lastname@example.org 2003-12-03 01:52 -------
Created an attachment (id=6081)
Diff for a fix for the bug
+------- Additional Comments From email@example.com 2003-12-03 01:55 -------
+It seems that Peek() wouldnīt read from the next buffer when it was at
+the end of the current one, meaning that the IndexOutOfRangeException
+occured. The solution I came up with was to simply fix peek so it
+checks if it is at the end and also to make sure that if Read()
+advances the position past the end of the localBuffer array, it makes
+a call to GetNextBuffer(). The above patch fixes the bug and shouldnīt
+cause any problems. If there are no issues, would someone be so kind
+as to commit it, as I donīt have access.