tools/tiff2pdf.c:5381: error: Integer Overflow L2
  ([0, 4294967294] + [0, 4294967294]):unsigned32 by call to `t2p_readwrite_pdf_image`.

tools/tiff2pdf.c:5239:1: Parameter `output->tif_dir.td_imagelength`
5237. */
5238. 
5239. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5240. 
5241. 	tsize_t written=0;

tools/tiff2pdf.c:5381:15: Call
5379. 			streamlen=written;
5380. 			t2p_read_tiff_size(t2p, input);
5381. 			written += t2p_readwrite_pdf_image(t2p, input, output);
                    ^
5382. 			t2p_write_advance_directory(t2p, output);
5383. 			if(t2p->t2p_error!=T2P_ERR_OK){return(0);}

tools/tiff2pdf.c:2044:1: Parameter `output->tif_dir.td_imagelength`
  2042. */
  2043. 
  2044. tsize_t t2p_readwrite_pdf_image(T2P* t2p, TIFF* input, TIFF* output){
        ^
  2045. 
  2046. 	tsize_t written=0;

tools/tiff2pdf.c:2594:18: Call
  2592. 	if(t2p->pdf_compression == T2P_COMPRESS_JPEG
  2593. 	   && t2p->tiff_photometric == PHOTOMETRIC_YCBCR){
  2594. 		bufferoffset = TIFFWriteEncodedStrip(output, (tstrip_t)0,
                         ^
  2595. 						     buffer,
  2596. 						     stripsize * stripcount); 

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:190:7: Call
    188. 	uint16 sample;
    189. 
    190. 	if (!WRITECHECKSTRIPS(tif, module))
               ^
    191. 		return ((tmsize_t) -1);
    192. 	/*

libtiff/tif_write.c:488:1: Parameter `tif->tif_dir.td_imagelength`
      486.  * that important information is not changed.
      487.  */
      488. int
           ^
      489. TIFFWriteCheck(TIFF* tif, int tiles, const char* module)
      490. {

libtiff/tif_write.c:533:46: Call
      531. 		}
      532. 	}
      533. 	if (tif->tif_dir.td_stripoffset == NULL && !TIFFSetupStrips(tif)) {
                                                        ^
      534. 		tif->tif_dir.td_nstrips = 0;
      535. 		TIFFErrorExt(tif->tif_clientdata, module, "No space for %s arrays",

libtiff/tif_write.c:448:1: Parameter `tif->tif_dir.td_imagelength`
        446.     (TIFFFieldSet(tif,f) && (tif)->tif_dir.td_imagelength == 0)
        447. 
        448. int
             ^
        449. TIFFSetupStrips(TIFF* tif)
        450. {

libtiff/tif_write.c:456:29: Call
        454. 		td->td_stripsperimage =
        455. 		    isUnspecified(tif, FIELD_TILEDIMENSIONS) ?
        456. 			td->td_samplesperpixel : TIFFNumberOfTiles(tif);
                                         ^
        457. 	else
        458. 		td->td_stripsperimage =

libtiff/tif_tile.c:140:1: <LHS trace>
138.  * Compute how many tiles are in an image.
139.  */
140. uint32
     ^
141. TIFFNumberOfTiles(TIFF* tif)
142. {

libtiff/tif_tile.c:140:1: Parameter `tif->tif_dir.td_imagelength`
          138.  * Compute how many tiles are in an image.
          139.  */
          140. uint32
               ^
          141. TIFFNumberOfTiles(TIFF* tif)
          142. {

libtiff/tif_tile.c:140:1: <RHS trace>
138.  * Compute how many tiles are in an image.
139.  */
140. uint32
     ^
141. TIFFNumberOfTiles(TIFF* tif)
142. {

libtiff/tif_tile.c:140:1: Parameter `tif->tif_dir.td_imagelength`
          138.  * Compute how many tiles are in an image.
          139.  */
          140. uint32
               ^
          141. TIFFNumberOfTiles(TIFF* tif)
          142. {

libtiff/tif_tile.c:157:6: Binary operation: ([0, 4294967294] + [0, 4294967294]):unsigned32 by call to `t2p_readwrite_pdf_image` 
          155. 	ntiles = (dx == 0 || dy == 0 || dz == 0) ? 0 :
          156. 	    multiply_32(tif, multiply_32(tif, TIFFhowmany_32(td->td_imagewidth, dx),
          157. 	    TIFFhowmany_32(td->td_imagelength, dy),
                    ^
          158. 	    "TIFFNumberOfTiles"),
          159. 	    TIFFhowmany_32(td->td_imagedepth, dz), "TIFFNumberOfTiles");
