wok diff tiff/stuff/libtiff-CVE-2009-2285.patch @ rev 7970
krb5 now use files.list from stuff and don't cook wanted 2 times
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Mon Jan 17 17:52:31 2011 +0100 (2011-01-17) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tiff/stuff/libtiff-CVE-2009-2285.patch Mon Jan 17 17:52:31 2011 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +Index: tiff-3.8.2/libtiff/tif_lzw.c 1.5 +=================================================================== 1.6 +--- tiff-3.8.2.orig/libtiff/tif_lzw.c 1.7 ++++ tiff-3.8.2/libtiff/tif_lzw.c 1.8 +@@ -421,7 +421,7 @@ LZWDecode(TIFF* tif, tidata_t op0, tsize 1.9 + NextCode(tif, sp, bp, code, GetNextCode); 1.10 + if (code == CODE_EOI) 1.11 + break; 1.12 +- if (code == CODE_CLEAR) { 1.13 ++ if (code >= CODE_CLEAR) { 1.14 + TIFFErrorExt(tif->tif_clientdata, tif->tif_name, 1.15 + "LZWDecode: Corrupted LZW table at scanline %d", 1.16 + tif->tif_row); 1.17 +@@ -624,7 +624,7 @@ LZWDecodeCompat(TIFF* tif, tidata_t op0, 1.18 + NextCode(tif, sp, bp, code, GetNextCodeCompat); 1.19 + if (code == CODE_EOI) 1.20 + break; 1.21 +- if (code == CODE_CLEAR) { 1.22 ++ if (code >= CODE_CLEAR) { 1.23 + TIFFErrorExt(tif->tif_clientdata, tif->tif_name, 1.24 + "LZWDecode: Corrupted LZW table at scanline %d", 1.25 + tif->tif_row);