Blame SOURCES/libtiff-CVE-2013-4244.patch

7c98bb
diff --git a/tools/gif2tiff.c b/tools/gif2tiff.c
7c98bb
index 375b152..2731273 100644
7c98bb
--- a/tools/gif2tiff.c
7c98bb
+++ b/tools/gif2tiff.c
7c98bb
@@ -402,6 +402,10 @@ process(register int code, unsigned char** fill)
7c98bb
     }
7c98bb
 
7c98bb
     if (oldcode == -1) {
7c98bb
+        if (code >= clear) {
7c98bb
+            fprintf(stderr, "bad input: code=%d is larger than clear=%d\n",code, clear);
7c98bb
+            return 0;
7c98bb
+        }
7c98bb
 	*(*fill)++ = suffix[code];
7c98bb
 	firstchar = oldcode = code;
7c98bb
 	return 1;