[Mono-bugs] [Bug 75168][Maj] Changed - Dictionary class loses data

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jun 7 18:49:20 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 radical at gmail.com.

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

--- shadow/75168	2005-06-07 18:47:13.000000000 -0400
+++ shadow/75168.tmp.19687	2005-06-07 18:49:20.000000000 -0400
@@ -139,6 +139,17 @@
 Proposed patch is attached.
 
 ------- Additional Comments From radical at gmail.com  2005-06-07 18:47 -------
 Created an attachment (id=15278)
 Proposed patch
 
+
+------- Additional Comments From radical at gmail.com  2005-06-07 18:49 -------
+In Dictionary.cs MoveNext : we are incrementing _index before the
+current chain is fully traversed, so in case of _index being at the
+last element of the table (9 for table size=10), _index becomes 10 and
+so the test in 
+
+while (_index < _dictionary._table.Length) {
+
+fails.
+Another approach might be to change how _index is incremented.


More information about the mono-bugs mailing list