head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.44 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.42 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.40 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.38 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.36 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.34 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.32 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.30 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.28 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.26 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.24 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.22 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.20 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.18 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.16 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.14 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.12 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.10 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.8 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.6 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.4 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.2 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.1.0.4 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.2; locks; strict; comment @# @; 1.2 date 2004.12.28.23.10.09; author reed; state dead; branches; next 1.1; 1.1 date 2004.10.18.14.37.24; author tron; state Exp; branches 1.1.2.1; next ; 1.1.2.1 date 2004.10.18.14.37.24; author agc; state dead; branches; next 1.1.2.2; 1.1.2.2 date 2004.10.18.17.03.48; author agc; state Exp; branches; next ; desc @@ 1.2 log @Upgrade tiff to 3.7.1. Remove OpenWindows workaround in pkgsrc for this. Too many changes to include here. See http://www.remotesensing.org/libtiff/v3.7.1.html and http://www.remotesensing.org/libtiff/v3.7.0.html and previous change files for changes information. tiff-3.7.1 now includes the lzw compression code again. It also uses autoconf and libtool now. A new tool is bmp2tiff. Docs are placed under share/doc/tiff/html instead of share/doc/html/tiff. Many manpage symlinks are now missing. (This was reported to tiff list.) @ text @$NetBSD: patch-ap,v 1.1 2004/10/18 14:37:24 tron Exp $ --- libtiff/tif_dirwrite.c.orig 2003-12-22 09:22:15.000000000 +0100 +++ libtiff/tif_dirwrite.c 2004-10-18 16:25:32.000000000 +0200 @@@@ -692,8 +692,14 @@@@ uint16* w = buf; int i, status, samples = tif->tif_dir.td_samplesperpixel; - if (samples > NITEMS(buf)) + if (samples > NITEMS(buf)) { w = (uint16*) _TIFFmalloc(samples * sizeof (uint16)); + if (w == NULL) { + TIFFError(tif->tif_name, + "No space to write per-sample shorts"); + return (0); + } + } TIFFGetField(tif, tag, &v); for (i = 0; i < samples; i++) w[i] = v; @@@@ -717,8 +723,14 @@@@ int i, status; int samples = (int) tif->tif_dir.td_samplesperpixel; - if (samples > NITEMS(buf)) + if (samples > NITEMS(buf)) { w = (double*) _TIFFmalloc(samples * sizeof (double)); + if (w == NULL) { + TIFFError(tif->tif_name, + "No space to write per-sample values"); + return (0); + } + } TIFFGetField(tif, tag, &v); for (i = 0; i < samples; i++) w[i] = v; @@@@ -840,6 +852,11 @@@@ dir->tdir_type = (short) type; dir->tdir_count = n; t = (uint32*) _TIFFmalloc(2*n * sizeof (uint32)); + if (t == NULL) { + TIFFError(tif->tif_name, + "No space to write RATIONAL array"); + return (0); + } for (i = 0; i < n; i++) { float fv = v[i]; int sign = 1; @@@@ -910,8 +927,14 @@@@ char* w = buf; int i, status = 0; - if (n * TIFFDataWidth(type) > sizeof buf) + if (n * TIFFDataWidth(type) > sizeof buf) { w = (char*) _TIFFmalloc(n * TIFFDataWidth(type)); + if (w == NULL) { + TIFFError(tif->tif_name, + "No space to write array"); + return (0); + } + } switch (type) { case TIFF_BYTE: { uint8* bp = (uint8*) w; @ 1.1 log @Add various bug fixes taken from Debian's unstable distribution which include fixes for CESA-2004-006. Bump package revision. @ text @d1 1 a1 1 $NetBSD$ @ 1.1.2.1 log @file patch-ap was added on branch pkgsrc-2004Q3 on 2004-10-18 14:37:24 +0000 @ text @d1 64 @ 1.1.2.2 log @Pullup ticket 122 - requested by Matthias Scheler security fix for tiff Modified Files: pkgsrc/graphics/tiff: Makefile Log Message: Derive "PKGNAME" from "DISTNAME" instead of defining it manually. Modified Files: pkgsrc/graphics/tiff: Makefile Log Message: Add mirror on "ftp.fu-berlin.de" to master site list. Modified Files: pkgsrc/graphics/tiff: Makefile distinfo pkgsrc/graphics/tiff/patches: patch-ag Added Files: pkgsrc/graphics/tiff/patches: patch-ai patch-aj patch-ak patch-al patch-am patch-an patch-ao patch-ap patch-aq patch-ar patch-as patch-at patch-au patch-av patch-aw patch-ax Log Message: Add various bug fixes taken from Debian's unstable distribution which include fixes for CESA-2004-006. Bump package revision. @ text @a0 64 $NetBSD: patch-ap,v 1.1.2.1 2004/10/18 17:03:48 agc Exp $ --- libtiff/tif_dirwrite.c.orig 2003-12-22 09:22:15.000000000 +0100 +++ libtiff/tif_dirwrite.c 2004-10-18 16:25:32.000000000 +0200 @@@@ -692,8 +692,14 @@@@ uint16* w = buf; int i, status, samples = tif->tif_dir.td_samplesperpixel; - if (samples > NITEMS(buf)) + if (samples > NITEMS(buf)) { w = (uint16*) _TIFFmalloc(samples * sizeof (uint16)); + if (w == NULL) { + TIFFError(tif->tif_name, + "No space to write per-sample shorts"); + return (0); + } + } TIFFGetField(tif, tag, &v); for (i = 0; i < samples; i++) w[i] = v; @@@@ -717,8 +723,14 @@@@ int i, status; int samples = (int) tif->tif_dir.td_samplesperpixel; - if (samples > NITEMS(buf)) + if (samples > NITEMS(buf)) { w = (double*) _TIFFmalloc(samples * sizeof (double)); + if (w == NULL) { + TIFFError(tif->tif_name, + "No space to write per-sample values"); + return (0); + } + } TIFFGetField(tif, tag, &v); for (i = 0; i < samples; i++) w[i] = v; @@@@ -840,6 +852,11 @@@@ dir->tdir_type = (short) type; dir->tdir_count = n; t = (uint32*) _TIFFmalloc(2*n * sizeof (uint32)); + if (t == NULL) { + TIFFError(tif->tif_name, + "No space to write RATIONAL array"); + return (0); + } for (i = 0; i < n; i++) { float fv = v[i]; int sign = 1; @@@@ -910,8 +927,14 @@@@ char* w = buf; int i, status = 0; - if (n * TIFFDataWidth(type) > sizeof buf) + if (n * TIFFDataWidth(type) > sizeof buf) { w = (char*) _TIFFmalloc(n * TIFFDataWidth(type)); + if (w == NULL) { + TIFFError(tif->tif_name, + "No space to write array"); + return (0); + } + } switch (type) { case TIFF_BYTE: { uint8* bp = (uint8*) w; @