Guard against bogus logical screen dimensions. Fixes bug #151053.

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

        * plug-ins/common/gifload.c: Guard against bogus logical screen
        dimensions. Fixes bug #151053.
This commit is contained in:
Manish Singh 2004-08-25 22:32:54 +00:00 committed by Manish Singh
parent e91187ae86
commit b6d3a912fd
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2004-08-25 Manish Singh <yosh@gimp.org>
* plug-ins/common/gifload.c: Guard against bogus logical screen
dimensions. Fixes bug #151053.
2004-08-26 DindinX <david@dindinx.org>
* app/widgets/gimppreview-popup.c

View file

@ -844,6 +844,13 @@ ReadImage (FILE *fd,
if (frame_number == 1 )
{
/* Guard against bogus logical screen size values */
if (screenwidth == 0)
screenwidth = len;
if (screenheight == 0)
screenheight = height;
image_ID = gimp_image_new (screenwidth, screenheight, GIMP_INDEXED);
gimp_image_set_filename (image_ID, filename);