tools/tiff2pdf.c:5492: error: Integer Overflow L2
  ([0, +oo] - 1):unsigned32 by call to `t2p_readwrite_pdf_image_tile`.

tools/tiff2pdf.c:5411:3: Call
5409. 	written += t2p_write_pdf_obj_end(output);
5410. 	for(t2p->pdf_page=0;t2p->pdf_page<t2p->tiff_pagecount;t2p->pdf_page++){
5411. 		t2p_read_tiff_data(t2p, input);
        ^
5412. 		if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5413. 		t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:1274:2: Call
  1272.         
  1273. 	
  1274. 	TIFFSetDirectory(input, t2p->tiff_pages[t2p->pdf_page].page_directory);
         ^
  1275. 
  1276. 	TIFFGetField(input, TIFFTAG_IMAGEWIDTH, &(t2p->tiff_width));

libtiff/tif_dir.c:1535:1: Parameter `tif->tif_dir.td_tilewidth`
    1533.  * NB: Directories are numbered starting at 0.
    1534.  */
    1535. int
          ^
    1536. TIFFSetDirectory(TIFF* tif, uint16 dirn)
    1537. {

tools/tiff2pdf.c:5491:5: Call
5489. 				written += t2p_write_pdf_stream_start(output);
5490. 				streamlen=written;
5491. 				t2p_read_tiff_size_tile(t2p, input, i2);
          ^
5492. 				written += t2p_readwrite_pdf_image_tile(t2p, input, output, i2);
5493. 				t2p_write_advance_directory(t2p, output);

tools/tiff2pdf.c:2029:1: Parameter `input->tif_dir.td_tilewidth`
  2027. */
  2028. 
  2029. void t2p_read_tiff_size_tile(T2P* t2p, TIFF* input, ttile_t tile){
        ^
  2030. 
  2031. 	uint64* tbc = NULL;

tools/tiff2pdf.c:5492:16: Call
5490. 				streamlen=written;
5491. 				t2p_read_tiff_size_tile(t2p, input, i2);
5492. 				written += t2p_readwrite_pdf_image_tile(t2p, input, output, i2);
                     ^
5493. 				t2p_write_advance_directory(t2p, output);
5494. 				if(t2p->t2p_error!=T2P_ERR_OK){return(0);}

tools/tiff2pdf.c:2752:1: Parameter `input->tif_dir.td_tilewidth`
  2750.  */
  2751. 
  2752. tsize_t t2p_readwrite_pdf_image_tile(T2P* t2p, TIFF* input, TIFF* output, ttile_t tile){
        ^
  2753. 
  2754. 	uint16 edge=0;

tools/tiff2pdf.c:2932:10: Call
  2930. 		}
  2931. 
  2932. 		read = TIFFReadEncodedTile(
                 ^
  2933. 			input, 
  2934. 			tile, 

libtiff/tif_read.c:672:1: Parameter `tif->tif_dir.td_tilewidth`
    670.  * amount into the user-supplied buffer.
    671.  */
    672. tmsize_t
         ^
    673. TIFFReadEncodedTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size)
    674. {

libtiff/tif_read.c:709:6: Call
    707. 	else if (size > tilesize)
    708. 		size = tilesize;
    709. 	if (TIFFFillTile(tif, tile) && (*tif->tif_decodetile)(tif,
              ^
    710. 	    (uint8*) buf, size, (uint16)(tile/td->td_stripsperimage))) {
    711. 		(*tif->tif_postdecode)(tif, (uint8*) buf, size);

libtiff/tif_read.c:833:1: Parameter `tif->tif_dir.td_tilewidth`
      831.  * expanded, as necessary, to hold the tile's data.
      832.  */
      833. int
           ^
      834. TIFFFillTile(TIFF* tif, uint32 tile)
      835. {

libtiff/tif_read.c:942:10: Call
      940. 		}
      941. 	}
      942. 	return (TIFFStartTile(tif, tile));
                    ^
      943. }
      944. 

libtiff/tif_read.c:1031:1: <LHS trace>
1029.  * tile has just been read in.
1030.  */
1031. static int
      ^
1032. TIFFStartTile(TIFF* tif, uint32 tile)
1033. {

libtiff/tif_read.c:1031:1: Parameter `tif->tif_dir.td_tilewidth`
        1029.  * tile has just been read in.
        1030.  */
        1031. static int
              ^
        1032. TIFFStartTile(TIFF* tif, uint32 tile)
        1033. {

libtiff/tif_read.c:1047:19: Binary operation: ([0, +oo] - 1):unsigned32 by call to `t2p_readwrite_pdf_image_tile` 
        1045. 	}
        1046. 	tif->tif_curtile = tile;
        1047.         howmany32=TIFFhowmany_32(td->td_imagewidth, td->td_tilewidth);
                                ^
        1048.         if (howmany32 == 0) {
        1049.                  TIFFErrorExt(tif->tif_clientdata,module,"Zero tiles");
