Date: Thu, 6 Jun 2019 20:02:19 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r503600 - in head/graphics/tiff: . files Message-ID: <201906062002.x56K2J5i092217@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: antoine Date: Thu Jun 6 20:02:19 2019 New Revision: 503600 URL: https://svnweb.freebsd.org/changeset/ports/503600 Log: Fix tiff2ps error regarding "Inconsistent value of es" by allowing es to be zero. PR: 238372 Added: head/graphics/tiff/files/patch-tools_tiff2ps.c (contents, props changed) Modified: head/graphics/tiff/Makefile Modified: head/graphics/tiff/Makefile ============================================================================== --- head/graphics/tiff/Makefile Thu Jun 6 18:37:52 2019 (r503599) +++ head/graphics/tiff/Makefile Thu Jun 6 20:02:19 2019 (r503600) @@ -3,6 +3,7 @@ PORTNAME= tiff PORTVERSION= 4.0.10 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= https://download.osgeo.org/libtiff/ Added: head/graphics/tiff/files/patch-tools_tiff2ps.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/tiff/files/patch-tools_tiff2ps.c Thu Jun 6 20:02:19 2019 (r503600) @@ -0,0 +1,16 @@ +Fix tiff2ps error regarding "Inconsistent value of es" by allowing es to be zero. + +--- tools/tiff2ps.c.orig 2018-11-03 19:25:46 UTC ++++ tools/tiff2ps.c +@@ -2444,9 +2444,9 @@ PSDataColorContig(FILE* fd, TIFF* tif, u + unsigned char *cp, c; + + (void) w; +- if( es <= 0 ) ++ if( es < 0 ) + { +- TIFFError(filename, "Inconsistent value of es: %d", es); ++ TIFFError(filename, "Inconsistent value of es: %d (samplesperpixel=%u, nc=%d)", es, samplesperpixel, nc); + return; + } + tf_buf = (unsigned char *) _TIFFmalloc(tf_bytesperrow);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906062002.x56K2J5i092217>