diff options
author | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2019-01-05 13:56:09 -0600 |
---|---|---|
committer | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2019-01-05 13:56:09 -0600 |
commit | a0e273fdca741b8805e19deeb8019fa42c4e64ba (patch) | |
tree | 395bf1ae458b71346a191eca14aa3136bea54192 | |
parent | 56a1976e9214d7f38249cc133dfcbf851683a498 (diff) | |
download | libtiff-git-a0e273fdca741b8805e19deeb8019fa42c4e64ba.tar.gz |
Fix tiff2ps error regarding "Inconsistent value of es" by allowing es to be zero.
Problem was reported to the tiff mailing list by Julian H. Stacey on January 5, 2019.
-rw-r--r-- | tools/tiff2ps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/tiff2ps.c b/tools/tiff2ps.c index d8d3da3a..5660a68b 100644 --- a/tools/tiff2ps.c +++ b/tools/tiff2ps.c @@ -2444,9 +2444,9 @@ PSDataColorContig(FILE* fd, TIFF* tif, uint32 w, uint32 h, int nc) 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); |