1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

- Security fix

Submitted by:	simon
Approved by:	portmgr (krion)
Obtained from:	gentoo
This commit is contained in:
Dirk Meyer 2005-01-07 08:01:30 +00:00
parent 61b7a158a5
commit 0a9a952557
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125743
2 changed files with 15 additions and 1 deletions

View File

@ -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/

View File

@ -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: