]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 5 Sep 2013 16:05:31 +0000 (16:05 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 5 Sep 2013 16:05:31 +0000 (16:05 +0000)
coders/tiff.c

index 98e0c73d7be54f92cb55be8216f503f2d4168d06..8068eaba586caa042f01df67936f3cc28cb18897 100644 (file)
@@ -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))
       {