tools/tiff2pdf.c:2848: error: Integer Overflow L2
  ([0, max(0, `input->tif_dir.td_tilewidth`)] - 1):unsigned32 by call to `TIFFReadEncodedTile`.

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:2821:16: Call
2819. 
2820. 		if(t2p->pdf_sample == T2P_SAMPLE_PLANAR_SEPARATE_TO_CONTIG){
2821. 			septilesize=TIFFTileSize(input);
                     ^
2822. 			septilecount=TIFFNumberOfTiles(input);
2823. 			tilesize=septilesize*t2p->tiff_samplesperpixel;

libtiff/tif_tile.c:274:1: Parameter `tif->tif_dir.td_tilewidth`
  272. 	return (TIFFVTileSize64(tif, tif->tif_dir.td_tilelength));
  273. }
  274. tmsize_t
       ^
  275. TIFFTileSize(TIFF* tif)
  276. {

libtiff/tif_tile.c:280:4: Call
  278. 	uint64 m;
  279. 	tmsize_t n;
  280. 	m=TIFFTileSize64(tif);
          ^
  281. 	n=(tmsize_t)m;
  282. 	if ((uint64)n!=m)

libtiff/tif_tile.c:269:1: Parameter `tif->tif_dir.td_tilewidth`
    267.  * Compute the # bytes in a row-aligned tile.
    268.  */
    269. uint64
         ^
    270. TIFFTileSize64(TIFF* tif)
    271. {

libtiff/tif_tile.c:272:10: Call
    270. TIFFTileSize64(TIFF* tif)
    271. {
    272. 	return (TIFFVTileSize64(tif, tif->tif_dir.td_tilelength));
                  ^
    273. }
    274. tmsize_t

libtiff/tif_tile.c:203:1: Parameter `tif->tif_dir.td_tilewidth`
      201.  * Compute the # bytes in a variable length, row-aligned tile.
      202.  */
      203. uint64
           ^
      204. TIFFVTileSize64(TIFF* tif, uint32 nrows)
      205. {

tools/tiff2pdf.c:2848:6: Call
2846. 			for(i=0;i<t2p->tiff_samplesperpixel;i++){
2847. 				read = 
2848. 					TIFFReadEncodedTile(input, 
           ^
2849. 						tile + i*tilecount, 
2850. 						(tdata_t) &(samplebuffer[samplebufferoffset]), 

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, max(0, input->tif_dir.td_tilewidth)] - 1):unsigned32 by call to `TIFFReadEncodedTile` 
      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 =
