mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 12:02:32 +00:00
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:
parent
e91187ae86
commit
b6d3a912fd
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue