[Mono-bugs] [Bug 425344] New: Enumerable.Iterator on 4^n, n >= 16 elements
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Sep 10 22:36:13 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=425344
Summary: Enumerable.Iterator on 4^n, n >= 16 elements
Product: Mono: Class Libraries
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: P5 - None
Component: Sys.Core
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: Dax at daxxfiles.net
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Enumerable.Iterate counts the items it's seen using a simple int. There exists
a minute chance to iterate over a sequence with 4^n, n >= 16 elements. As any
such sequence would evaluate to (int)0, the iteration would throw. As this case
is extremely unlikely, this behaviour doesn't hurt anyone - but since the
counter is only compared to 0, a simple bool flag would do, with less possible
side effects.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list