]> git.pld-linux.org Git - packages/crossmingw32-libtiff.git/blobdiff - libtiff-CVE-2009-2285.patch
- updated to 3.9.2 (from libtiff.spec)
[packages/crossmingw32-libtiff.git] / libtiff-CVE-2009-2285.patch
diff --git a/libtiff-CVE-2009-2285.patch b/libtiff-CVE-2009-2285.patch
new file mode 100644 (file)
index 0000000..435a84b
--- /dev/null
@@ -0,0 +1,22 @@
+Index: tiff-3.8.2/libtiff/tif_lzw.c
+===================================================================
+--- tiff-3.8.2.orig/libtiff/tif_lzw.c
++++ tiff-3.8.2/libtiff/tif_lzw.c
+@@ -421,7 +421,7 @@ LZWDecode(TIFF* tif, tidata_t op0, tsize
+                       NextCode(tif, sp, bp, code, GetNextCode);
+                       if (code == CODE_EOI)
+                               break;
+-                      if (code == CODE_CLEAR) {
++                      if (code >= CODE_CLEAR) {
+                               TIFFErrorExt(tif->tif_clientdata, tif->tif_name,
+                               "LZWDecode: Corrupted LZW table at scanline %d",
+                               tif->tif_row);
+@@ -624,7 +624,7 @@ LZWDecodeCompat(TIFF* tif, tidata_t op0,
+                       NextCode(tif, sp, bp, code, GetNextCodeCompat);
+                       if (code == CODE_EOI)
+                               break;
+-                      if (code == CODE_CLEAR) {
++                      if (code >= CODE_CLEAR) {
+                               TIFFErrorExt(tif->tif_clientdata, tif->tif_name,
+                               "LZWDecode: Corrupted LZW table at scanline %d",
+                               tif->tif_row);
This page took 0.106651 seconds and 4 git commands to generate.