summaryrefslogtreecommitdiffstats
path: root/graphics/tiff
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2005-01-07 08:01:30 +0000
committerdinoex <dinoex@FreeBSD.org>2005-01-07 08:01:30 +0000
commit14083305c8c679e3c3e2e6cd84018439774bb7f2 (patch)
tree29e5f4c4a0963d32d70ffc6456a37cad4d3fdea7 /graphics/tiff
parentdf6b487a21adeac32992a0ffcb448e4884b9ac50 (diff)
downloadFreeBSD-ports-14083305c8c679e3c3e2e6cd84018439774bb7f2.zip
FreeBSD-ports-14083305c8c679e3c3e2e6cd84018439774bb7f2.tar.gz
- Security fix
Submitted by: simon Approved by: portmgr (krion) Obtained from: gentoo
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 7229741..e4a7742 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 0000000..5928954
--- /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:
OpenPOWER on IntegriCloud