summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/tiff/files')
-rw-r--r--media-libs/tiff/files/digest-tiff-3.7.1-r11
-rw-r--r--media-libs/tiff/files/tiff-3.7.1-tiffdump.patch14
-rw-r--r--media-libs/tiff/files/tiff-3.7.1-trans.patch11
3 files changed, 26 insertions, 0 deletions
diff --git a/media-libs/tiff/files/digest-tiff-3.7.1-r1 b/media-libs/tiff/files/digest-tiff-3.7.1-r1
new file mode 100644
index 000000000000..c6b9f9274e15
--- /dev/null
+++ b/media-libs/tiff/files/digest-tiff-3.7.1-r1
@@ -0,0 +1 @@
+MD5 37d222df12eb23691614cd40b7b1f215 tiff-3.7.1.tar.gz 1253810
diff --git a/media-libs/tiff/files/tiff-3.7.1-tiffdump.patch b/media-libs/tiff/files/tiff-3.7.1-tiffdump.patch
new file mode 100644
index 000000000000..fc55c5d37916
--- /dev/null
+++ b/media-libs/tiff/files/tiff-3.7.1-tiffdump.patch
@@ -0,0 +1,14 @@
+--- tiff-3.7.1/tools/tiffdump.c.orig 2004-09-03 12:16:01 +0400
++++ tiff-3.7.1/tools/tiffdump.c 2004-12-22 01:57:51 +0300
+@@ -307,6 +307,11 @@ ReadDirectory(int fd, unsigned ix, off_t
+ continue;
+ }
+ space = dp->tdir_count * datawidth[dp->tdir_type];
++ if (space <= 0) {
++ printf(">\n");
++ Error("Invalid count for tag %u", dp->tdir_tag);
++ continue;
++ }
+ if (space <= 4) {
+ switch (dp->tdir_type) {
+ case TIFF_FLOAT:
diff --git a/media-libs/tiff/files/tiff-3.7.1-trans.patch b/media-libs/tiff/files/tiff-3.7.1-trans.patch
new file mode 100644
index 000000000000..563ac3476eda
--- /dev/null
+++ b/media-libs/tiff/files/tiff-3.7.1-trans.patch
@@ -0,0 +1,11 @@
+--- libtiff/tif_getimage.c.orig 2005-01-02 12:17:24.733622762 -0800
++++ libtiff/tif_getimage.c 2005-01-02 12:17:29.010612325 -0800
+@@ -247,7 +247,7 @@
+ TIFFGetFieldDefaulted(tif, TIFFTAG_SAMPLESPERPIXEL, &img->samplesperpixel);
+ TIFFGetFieldDefaulted(tif, TIFFTAG_EXTRASAMPLES,
+ &extrasamples, &sampleinfo);
+- if (extrasamples > 1)
++ if (extrasamples >= 1)
+ {
+ switch (sampleinfo[0]) {
+ case EXTRASAMPLE_UNSPECIFIED: /* Workaround for some images without */