wok-6.x diff tiff/stuff/libtiff-CVE-2009-2285.patch @ rev 8726
Fixed slitaz-base-files. We use full path in now.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Feb 18 22:24:19 2011 +0000 (2011-02-18) |
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 Fri Feb 18 22:24:19 2011 +0000 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);