Bug 805 - libgdiplus can't handle GIFs with layers not at offset 0,0
Summary: libgdiplus can't handle GIFs with layers not at offset 0,0
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: libgdiplus ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2011-09-14 10:29 UTC by expebition
Modified: 2011-11-28 10:33 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

sample GIF which crashes Mono (1.51 KB, image/gif)
2011-09-14 10:29 UTC, expebition

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 805 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description expebition 2011-09-14 10:29:10 UTC
Created attachment 360 [details]
sample GIF which crashes Mono

Description of Problem:  GDI+ is unable to load GIF images which contain layers which have an offset other than 0,0

Steps to reproduce the problem:
1. load the attached animated GIF as a resource

Actual Results:
fails to load

How often does this happen? 

Additional Information:
The problem can be worked around by editing the GIF image so that all layers have the offset of 0,0.  Because of poor error checking in Image.cs, this problem took a very long time to hunt down.
Comment 1 Thomas Goldstein 2011-11-25 17:58:07 UTC
Component should be libgdiplus rather than Windows.Forms, but I can't seem to be able to edit this bug, for some reason.