tools/tiffcrop.c:6633: error: Integer Overflow L2
  ([0, 4294967295] - 1):unsigned32 by call to `writeCroppedImage`.

tools/tiffcrop.c:6542:1: Parameter `(*out)->tif_dir.td_rowsperstrip`
6540.   } /* end extractImageSection */
6541. 
6542. static int 
      ^
6543. writeSelections(TIFF *in, TIFF **out, struct crop_mask *crop, 
6544.                 struct image_data *image, struct dump_opts *dump,

tools/tiffcrop.c:6628:16: Call
6626.          for (i = 0; i < crop->selections; i++)
6627.            {
6628.            if (update_output_file (out, mp, autoindex, filename, page))
                     ^
6629.              return (1);
6630. 

tools/tiffcrop.c:2027:1: Parameter `(*tiffout)->tif_dir.td_rowsperstrip`
  2025.  * so TIFFTAG PAGENUM will be correct in image.
  2026.  */
  2027. static int 
        ^
  2028. update_output_file (TIFF **tiffout, char *mode, int autoindex,
  2029.                     char *outname, unsigned int *page)

tools/tiffcrop.c:6633:16: Call
6631.            crop_buff = seg_buffs[i].buffer;
6632.            /* Write the current region to the current file */
6633.            if (writeCroppedImage(in, *out, image, dump,
                     ^
6634.                                  crop->regionlist[i].width, 
6635.                                  crop->regionlist[i].length, 

tools/tiffcrop.c:7381:1: Parameter `out->tif_dir.td_rowsperstrip`
  7379.  * then passed in as an argument.
  7380.  */
  7381. static int  
        ^
  7382. writeCroppedImage(TIFF *in, TIFF *out, struct image_data *image, 
  7383.                   struct dump_opts *dump, uint32 width, uint32 length, 

tools/tiffcrop.c:7641:11: Call
  7639.     if (config == PLANARCONFIG_CONTIG)
  7640.       {
  7641.       if (writeBufferToContigStrips (out, crop_buff, length))
                  ^
  7642.         TIFFError("","Unable to write contiguous strip data for page %d", pagenum);
  7643.       }

tools/tiffcrop.c:1086:1: Parameter `out->tif_dir.td_rowsperstrip`
    1084.   }
    1085. 
    1086. static int writeBufferToContigStrips(TIFF* out, uint8* buf, uint32 imagelength)
          ^
    1087.   {
    1088.   uint32 row, nrows, rowsperstrip;

tools/tiffcrop.c:1098:9: Call
    1096. 	     imagelength - row : rowsperstrip;
    1097.     stripsize = TIFFVStripSize(out, nrows);
    1098.     if (TIFFWriteEncodedStrip(out, strip++, buf, stripsize) < 0)
                  ^
    1099.       {
    1100.       TIFFError(TIFFFileName(out), "Error, can't write strip %u", strip - 1);

libtiff/tif_write.c:183:1: <LHS trace>
181.  * NB: Image length must be setup before writing.
182.  */
183. tmsize_t
     ^
184. TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc)
185. {

libtiff/tif_write.c:183:1: Parameter `tif->tif_dir.td_imagelength`
      181.  * NB: Image length must be setup before writing.
      182.  */
      183. tmsize_t
           ^
      184. TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc)
      185. {

libtiff/tif_write.c:210:7: Binary operation: ([0, 4294967295] - 1):unsigned32 by call to `writeCroppedImage` 
      208. 			return ((tmsize_t) -1);
      209. 		td->td_stripsperimage =
      210. 		    TIFFhowmany_32(td->td_imagelength, td->td_rowsperstrip);  
                 ^
      211. 	}
      212. 	/*
