Commit a0e273fd authored by Bob Friesenhahn's avatar Bob Friesenhahn

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.
parent 56a1976e
Pipeline #42260178 passed with stages
in 4 minutes and 38 seconds
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment