[Mono-bugs] [Bug 590286] New: GdipMeasureString & GdipDrawString seg-fault if string length isn't specified

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 22 14:36:43 EDT 2010


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

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


           Summary: GdipMeasureString & GdipDrawString seg-fault if string
                    length isn't specified
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: libgdiplus
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: matthew at cowarthill.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.3
(KHTML, like Gecko) Chrome/5.0.360.0 Safari/533.3

Passing -1 (to indicate null terminated string) for the string lengths for
GdipDrawString and GdipMeasureString causes the program to seg-fault.

Reproducible: Always

Steps to Reproduce:
Compile the attached file test-len.c and run it like so:

/program input.jpg output.jpg
Actual Results:  
Segmentation Fault

Expected Results:  
output.jpg should be annotated with the text "Hello Mono" in the upper left
hand corner of the image.

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