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

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