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

tools/tiff2pdf.c:5277:3: Call
5275. 	written += t2p_write_pdf_obj_end(output);
5276. 	for(t2p->pdf_page=0;t2p->pdf_page<t2p->tiff_pagecount;t2p->pdf_page++){
5277. 		t2p_read_tiff_data(t2p, input);
        ^
5278. 		if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5279. 		t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:1263:2: Call
  1261.         
  1262. 	
  1263. 	TIFFSetDirectory(input, t2p->tiff_pages[t2p->pdf_page].page_directory);
         ^
  1264. 
  1265. 	TIFFGetField(input, TIFFTAG_IMAGEWIDTH, &(t2p->tiff_width));

libtiff/tif_dir.c:1370:1: Parameter `tif->tif_dir.td_tilewidth`
    1368.  * NB: Directories are numbered starting at 0.
    1369.  */
    1370. int
          ^
    1371. TIFFSetDirectory(TIFF* tif, uint16 dirn)
    1372. {

tools/tiff2pdf.c:5357:5: Call
5355. 				written += t2p_write_pdf_stream_start(output);
5356. 				streamlen=written;
5357. 				t2p_read_tiff_size_tile(t2p, input, i2);
          ^
5358. 				written += t2p_readwrite_pdf_image_tile(t2p, input, output, i2);
5359. 				t2p_write_advance_directory(t2p, output);

tools/tiff2pdf.c:1937:1: Parameter `input->tif_dir.td_tilewidth`
  1935. */
  1936. 
  1937. void t2p_read_tiff_size_tile(T2P* t2p, TIFF* input, ttile_t tile){
        ^
  1938. 
  1939. 	uint64* tbc = NULL;

tools/tiff2pdf.c:5358:16: Call
5356. 				streamlen=written;
5357. 				t2p_read_tiff_size_tile(t2p, input, i2);
5358. 				written += t2p_readwrite_pdf_image_tile(t2p, input, output, i2);
                     ^
5359. 				t2p_write_advance_directory(t2p, output);
5360. 				if(t2p->t2p_error!=T2P_ERR_OK){return(0);}

tools/tiff2pdf.c:2627:1: Parameter `input->tif_dir.td_tilewidth`
  2625.  */
  2626. 
  2627. tsize_t t2p_readwrite_pdf_image_tile(T2P* t2p, TIFF* input, TIFF* output, ttile_t tile){
        ^
  2628. 
  2629. 	uint16 edge=0;

tools/tiff2pdf.c:2803:10: Call
  2801. 		}
  2802. 
  2803. 		read = TIFFReadEncodedTile(
                 ^
  2804. 			input, 
  2805. 			tile, 

libtiff/tif_read.c:617:1: Parameter `tif->tif_dir.td_tilewidth`
    615.  * amount into the user-supplied buffer.
    616.  */
    617. tmsize_t
         ^
    618. TIFFReadEncodedTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size)
    619. {

libtiff/tif_read.c:636:6: Call
    634. 	else if (size > tilesize)
    635. 		size = tilesize;
    636. 	if (TIFFFillTile(tif, tile) && (*tif->tif_decodetile)(tif,
              ^
    637. 	    (uint8*) buf, size, (uint16)(tile/td->td_stripsperimage))) {
    638. 		(*tif->tif_postdecode)(tif, (uint8*) buf, size);

libtiff/tif_read.c:757:1: Parameter `tif->tif_dir.td_tilewidth`
      755.  * expanded, as necessary, to hold the tile's data.
      756.  */
      757. int
           ^
      758. TIFFFillTile(TIFF* tif, uint32 tile)
      759. {

libtiff/tif_read.c:853:10: Call
      851. 		}
      852. 	}
      853. 	return (TIFFStartTile(tif, tile));
                    ^
      854. }
      855. 

libtiff/tif_read.c:933:1: <LHS trace>
931.  * tile has just been read in.
932.  */
933. static int
     ^
934. TIFFStartTile(TIFF* tif, uint32 tile)
935. {

libtiff/tif_read.c:933:1: Parameter `tif->tif_dir.td_imagewidth`
        931.  * tile has just been read in.
        932.  */
        933. static int
             ^
        934. TIFFStartTile(TIFF* tif, uint32 tile)
        935. {

libtiff/tif_read.c:945:14: Binary operation: ([0, +oo] - 1):unsigned32 by call to `t2p_readwrite_pdf_image_tile` 
        943. 	tif->tif_curtile = tile;
        944. 	tif->tif_row =
        945. 	    (tile % TIFFhowmany_32(td->td_imagewidth, td->td_tilewidth)) *
                          ^
        946. 		td->td_tilelength;
        947. 	tif->tif_col =
