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

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