[Mono-bugs] [Bug 537396] New: LinearGradientBrush crash mono runtime if width or height is set to zero

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 8 09:16:50 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=537396


           Summary: LinearGradientBrush crash mono runtime if width or
                    height is set to zero
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: libgdiplus
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: prince0 at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=317210)
 --> (http://bugzilla.novell.com/attachment.cgi?id=317210)
Source code of a small project that reproduces the issue

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.1.2)
Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)

When creating a new System.Drawing.Drawing2D.LinearGradientBrush object, if
given rectangle has a widht or a height of zero, Mono runtime quits.
Instead, a System.ArgumentException should be raised.

Reproducible: Always

Steps to Reproduce:
1. Create a rectangle width a width of 0
2. Create a new LinearGradientBrush object and pass the rectangle
Actual Results:  
Mono runtime crash

Expected Results:  
A System.ArgumentException should be raised.

-- 
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