summaryrefslogtreecommitdiff
path: root/graphics/imlib/patches/patch-ak
blob: de0fb0ca52950da6f17a8b7f702986b722d92ffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ak,v 1.1.2.2 2004/12/13 18:03:27 salo Exp $

--- gdk_imlib/io-gif.c.orig	2002-03-04 18:06:29.000000000 +0100
+++ gdk_imlib/io-gif.c	2004-12-10 10:00:56.000000000 +0100
@@ -55,7 +55,7 @@
 	    }
 	  *w = gif->Image.Width;
 	  *h = gif->Image.Height;
-	  if(*h > 32767 || *w > 32767)
+	  if(*h <= 0 || *h > 32767 || *w <= 0 || *w > 32767)
 	    {
 	      return NULL;
 	    }