http://pkgs.fedoraproject.org/cgit/libtiff.git/plain/libtiff-CVE-2013-4231.patch | |
http://bugs.gentoo.org/480466 | |
--- tools/gif2tiff.c | |
+++ tools/gif2tiff.c | |
@@ -333,6 +333,10 @@ readraster(void) | |
int status = 1; | |
datasize = getc(infile); | |
+ | |
+ if (datasize > 12) | |
+ return 0; | |
+ | |
clear = 1 << datasize; | |
eoi = clear + 1; | |
avail = clear + 2; |