From: cristy Date: Thu, 5 Sep 2013 16:05:31 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3333 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0cbda0023622b4f057410acea8469a7adbd773b;p=imagemagick --- diff --git a/coders/tiff.c b/coders/tiff.c index 98e0c73d7..8068eaba5 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -3197,6 +3197,8 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, default: break; } + if ((image->rows/rows_per_strip) >= (1UL << 15)) + rows_per_strip=(image->rows >> 15); (void) TIFFSetField(tiff,TIFFTAG_ROWSPERSTRIP,rows_per_strip); if ((image->resolution.x != 0.0) && (image->resolution.y != 0.0)) {