wok-next annotate tiff/stuff/libtiff-CVE-2009-2285.patch @ rev 8546
imported patch get/aufs-utils
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Feb 13 22:57:56 2011 +0100 (2011-02-13) |
parents | |
children |
rev | line source |
---|---|
slaxemulator@6424 | 1 Index: tiff-3.8.2/libtiff/tif_lzw.c |
slaxemulator@6424 | 2 =================================================================== |
slaxemulator@6424 | 3 --- tiff-3.8.2.orig/libtiff/tif_lzw.c |
slaxemulator@6424 | 4 +++ tiff-3.8.2/libtiff/tif_lzw.c |
slaxemulator@6424 | 5 @@ -421,7 +421,7 @@ LZWDecode(TIFF* tif, tidata_t op0, tsize |
slaxemulator@6424 | 6 NextCode(tif, sp, bp, code, GetNextCode); |
slaxemulator@6424 | 7 if (code == CODE_EOI) |
slaxemulator@6424 | 8 break; |
slaxemulator@6424 | 9 - if (code == CODE_CLEAR) { |
slaxemulator@6424 | 10 + if (code >= CODE_CLEAR) { |
slaxemulator@6424 | 11 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, |
slaxemulator@6424 | 12 "LZWDecode: Corrupted LZW table at scanline %d", |
slaxemulator@6424 | 13 tif->tif_row); |
slaxemulator@6424 | 14 @@ -624,7 +624,7 @@ LZWDecodeCompat(TIFF* tif, tidata_t op0, |
slaxemulator@6424 | 15 NextCode(tif, sp, bp, code, GetNextCodeCompat); |
slaxemulator@6424 | 16 if (code == CODE_EOI) |
slaxemulator@6424 | 17 break; |
slaxemulator@6424 | 18 - if (code == CODE_CLEAR) { |
slaxemulator@6424 | 19 + if (code >= CODE_CLEAR) { |
slaxemulator@6424 | 20 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, |
slaxemulator@6424 | 21 "LZWDecode: Corrupted LZW table at scanline %d", |
slaxemulator@6424 | 22 tif->tif_row); |