* XmlBinaryDictionaryReader.cs : fix regression on stream consumption excess. svn path=/trunk/mcs/; revision=134669
@@ -1,3 +1,8 @@
+2009-05-23 Atsushi Enomoto <[email protected]>
+
+ * XmlBinaryDictionaryReader.cs : fix regression on stream consumption
+ excess.
2009-05-22 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : ReadContentString() returned
@@ -72,6 +72,8 @@ namespace System.Xml
public int ReadByte ()
{
+ if (reader.PeekChar () < 0)
+ return -1;
return reader.ReadByte ();
}