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

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