[Mono-bugs] [Bug 556533] New: BigInteger IndexOutOfRangeException constructing from a zero length array

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 18 08:38:11 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=556533#c0

           Summary: BigInteger IndexOutOfRangeException constructing from
                    a zero length array
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: amcgovern at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=328188)
 --> (http://bugzilla.novell.com/attachment.cgi?id=328188)
Prevent possible index out of range exceptions

If a zero length array is passed to a BigInteger constructor, the Normalize
method enforces that 'length' is at least 1. This causes index out of range
exceptions if you ever try to use that BigInteger.

Attached is a trivial fix for the issue.


-- 
Configure bugmail: http://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