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

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