summaryrefslogtreecommitdiff
path: root/graphics/tiff
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2005-01-07 08:01:30 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2005-01-07 08:01:30 +0000
commit0a9a9525570f425b751c8eeff295b18a07d97325 (patch)
tree318462fc754f6d4a52491514a4b21cce21b7fc65 /graphics/tiff
parentDocument vulnerabilites in tnftp (diff)
- Security fix
Submitted by: simon Approved by: portmgr (krion) Obtained from: gentoo
Notes
Notes: svn path=/head/; revision=125743
Diffstat (limited to 'graphics/tiff')
-rw-r--r--graphics/tiff/Makefile2
-rw-r--r--graphics/tiff/files/patch-tiffdump.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/graphics/tiff/Makefile b/graphics/tiff/Makefile
index 722974191964..e4a774287987 100644
--- a/graphics/tiff/Makefile
+++ b/graphics/tiff/Makefile
@@ -9,7 +9,7 @@
PORTNAME= tiff
PORTVERSION= 3.7.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.remotesensing.org/pub/libtiff/ \
http://dl1.maptools.org/dl/libtiff/
diff --git a/graphics/tiff/files/patch-tiffdump.c b/graphics/tiff/files/patch-tiffdump.c
new file mode 100644
index 000000000000..5928954ce8d5
--- /dev/null
+++ b/graphics/tiff/files/patch-tiffdump.c
@@ -0,0 +1,14 @@
+--- tools/tiffdump.c.orig 2004-09-03 12:16:01 +0400
++++ 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: