svn commit: r503600 - in head/graphics/tiff: . files
Antoine Brodin
antoine at FreeBSD.org
Thu Jun 6 20:02:24 UTC 2019
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);
More information about the svn-ports-head
mailing list