summaryrefslogtreecommitdiff
path: root/graphics/tiff
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2003-12-04 19:40:23 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2003-12-04 19:40:23 +0000
commit06242a284df74bf5f541ab6dc5b46eb887d21d25 (patch)
treefc949e818885a1538c580b0e1fdd0e0fad68cbdc /graphics/tiff
parent- Update to 0.93.94 (diff)
- Fix coredumps with bad tiff-files
http://bugzilla.remotesensing.org/show_bug.cgi?id=440
Notes
Notes: svn path=/head/; revision=95054
Diffstat (limited to 'graphics/tiff')
-rw-r--r--graphics/tiff/Makefile1
-rw-r--r--graphics/tiff/files/patch-libtiff-tif_dir.c27
2 files changed, 28 insertions, 0 deletions
diff --git a/graphics/tiff/Makefile b/graphics/tiff/Makefile
index 904b9542d4d9..3a976b39a657 100644
--- a/graphics/tiff/Makefile
+++ b/graphics/tiff/Makefile
@@ -9,6 +9,7 @@
PORTNAME= tiff
PORTVERSION= 3.6.0
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.remotesensing.org/pub/libtiff/ \
http://libtiff.maptools.org/dl/
diff --git a/graphics/tiff/files/patch-libtiff-tif_dir.c b/graphics/tiff/files/patch-libtiff-tif_dir.c
new file mode 100644
index 000000000000..914100d8e2c8
--- /dev/null
+++ b/graphics/tiff/files/patch-libtiff-tif_dir.c
@@ -0,0 +1,27 @@
+--- libtiff/tif_dir.c.orig Tue Sep 30 08:13:07 2003
++++ libtiff/tif_dir.c Mon Dec 1 15:36:11 2003
+@@ -607,18 +607,18 @@
+ va_end(ap);
+ return (status);
+ badvalue:
+- TIFFError(module, "%.1000s: Bad value %d for \"%s\"", v,
+- tif->tif_name, _TIFFFieldWithTag(tif, tag)->field_name);
++ TIFFError(module, "%.1000s: Bad value %d for \"%s\"",
++ tif->tif_name, v, _TIFFFieldWithTag(tif, tag)->field_name);
+ va_end(ap);
+ return (0);
+ badvalue32:
+- TIFFError(module, "%.1000s: Bad value %ld for \"%s\"", v32,
+- tif->tif_name, _TIFFFieldWithTag(tif, tag)->field_name);
++ TIFFError(module, "%.1000s: Bad value %ld for \"%s\"",
++ tif->tif_name, v32, _TIFFFieldWithTag(tif, tag)->field_name);
+ va_end(ap);
+ return (0);
+ badvaluedbl:
+- TIFFError(module, "%.1000s: Bad value %f for \"%s\"", d,
+- tif->tif_name, _TIFFFieldWithTag(tif, tag)->field_name);
++ TIFFError(module, "%.1000s: Bad value %f for \"%s\"",
++ tif->tif_name, d, _TIFFFieldWithTag(tif, tag)->field_name);
+ va_end(ap);
+ return (0);
+ }