After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 151053 - GIF loader crashes when loading valid GIF file
GIF loader crashes when loading valid GIF file
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.0.x
Other Windows
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2004-08-25 19:47 UTC by Joe Barnhart
Modified: 2004-08-25 22:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sample file which crashes GIF loader (21.95 KB, image/gif)
2004-08-25 19:49 UTC, Joe Barnhart
Details

Description Joe Barnhart 2004-08-25 19:47:44 UTC
Trying to load GIFs that are screenshots created under OS/2.  The GIF files load
in Windows XP, Adobe PS, etc., but cause Gimp's GIF load function to crash:

(gimp-2.0.exe:2220): LibGimpBase-WARNING **: gimp-2.0.exe: wire_read(): error

I have a sample GIF but nowhere to put it.
Comment 1 Joe Barnhart 2004-08-25 19:49:01 UTC
Created attachment 30944 [details]
Sample file which crashes GIF loader
Comment 2 Manish Singh 2004-08-25 22:25:17 UTC
The problem is that in this gif file, the logical screen is bogus (0x0), which
is what the gifload plugin uses as width and height for gimp_image_new. We
should make the plugin workaround this sort of thing.
Comment 3 Manish Singh 2004-08-25 22:34:42 UTC
Fixed in both HEAD and stable branch:

2004-08-25  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/gifload.c: Guard against bogus logical screen
        dimensions. Fixes bug #151053.