Blob Blame History Raw
--- gimp-2.2.4/plug-ins/common/gifload.c.gifload	2005-03-09 17:58:41.526620378 +0100
+++ gimp-2.2.4/plug-ins/common/gifload.c	2005-03-09 18:00:25.137414122 +0100
@@ -823,7 +823,12 @@
   gboolean alpha_frame = FALSE;
   static int previous_disposal;
 
-
+  /* Guard against bogus frame size */
+  if (len < 1 || height < 1)
+    {
+      g_message ("Bogus frame dimensions");
+      return -1;
+    }
 
   /*
    **  Initialize the Compression routines