tools/tiffinfo.c:292: error: Integer Overflow L2
  ([0, max(0, `tif->tif_dir.td_tilelength`)] - 1):unsigned32 by call to `TIFFReadTile`.

tools/tiffinfo.c:275:1: Parameter `tif->tif_dir.td_tilelength`
273. }
274. 
275. void
     ^
276. TIFFReadContigTileData(TIFF* tif)
277. {

tools/tiffinfo.c:279:20: Call
277. {
278. 	unsigned char *buf;
279. 	tsize_t rowsize = TIFFTileRowSize(tif);
                        ^
280. 
281. 	buf = (unsigned char *)_TIFFmalloc(TIFFTileSize(tif));

libtiff/tif_tile.c:184:1: Parameter `tif->tif_dir.td_tilelength`
  182. 	return (TIFFhowmany8_64(rowsize));
  183. }
  184. tmsize_t
       ^
  185. TIFFTileRowSize(TIFF* tif)
  186. {

libtiff/tif_tile.c:190:4: Call
  188. 	uint64 m;
  189. 	tmsize_t n;
  190. 	m=TIFFTileRowSize64(tif);
          ^
  191. 	n=(tmsize_t)m;
  192. 	if ((uint64)n!=m)

libtiff/tif_tile.c:169:1: Parameter `tif->tif_dir.td_tilelength`
    167.  * Compute the # bytes in each row of a tile.
    168.  */
    169. uint64
         ^
    170. TIFFTileRowSize64(TIFF* tif)
    171. {

tools/tiffinfo.c:281:37: Call
279. 	tsize_t rowsize = TIFFTileRowSize(tif);
280. 
281. 	buf = (unsigned char *)_TIFFmalloc(TIFFTileSize(tif));
                                         ^
282. 	if (buf) {
283. 		uint32 tw, th, w, h;

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

tools/tiffinfo.c:292:9: Call
290. 		for (row = 0; row < h; row += th) {
291. 			for (col = 0; col < w; col += tw) {
292. 				if (TIFFReadTile(tif, buf, col, row, 0, 0) < 0) {
             ^
293. 					if (stoponerr)
294. 						break;

libtiff/tif_read.c:415:1: Parameter `tif->tif_dir.td_tilelength`
  413.  * tile is selected by the (x,y,z,s) coordinates.
  414.  */
  415. tmsize_t
       ^
  416. TIFFReadTile(TIFF* tif, void* buf, uint32 x, uint32 y, uint32 z, uint16 s)
  417. {

libtiff/tif_read.c:420:10: Call
  418. 	if (!TIFFCheckRead(tif, 1) || !TIFFCheckTile(tif, x, y, z, s))
  419. 		return ((tmsize_t)(-1));
  420. 	return (TIFFReadEncodedTile(tif,
                ^
  421. 	    TIFFComputeTile(tif, x, y, z, s), buf, (tmsize_t)(-1)));
  422. }

libtiff/tif_read.c:428:1: Parameter `tif->tif_dir.td_tilelength`
    426.  * amount into the user-supplied buffer.
    427.  */
    428. tmsize_t
         ^
    429. TIFFReadEncodedTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size)
    430. {

libtiff/tif_read.c:447:6: Call
    445. 	else if (size > tilesize)
    446. 		size = tilesize;
    447. 	if (TIFFFillTile(tif, tile) && (*tif->tif_decodetile)(tif,
              ^
    448. 	    (uint8*) buf, size, (uint16)(tile/td->td_stripsperimage))) {
    449. 		(*tif->tif_postdecode)(tif, (uint8*) buf, size);

libtiff/tif_read.c:568:1: Parameter `tif->tif_dir.td_tilelength`
      566.  * expanded, as necessary, to hold the tile's data.
      567.  */
      568. int
           ^
      569. TIFFFillTile(TIFF* tif, uint32 tile)
      570. {

libtiff/tif_read.c:657:10: Call
      655. 		}
      656. 	}
      657. 	return (TIFFStartTile(tif, tile));
                    ^
      658. }
      659. 

libtiff/tif_read.c:737:1: <LHS trace>
735.  * tile has just been read in.
736.  */
737. static int
     ^
738. TIFFStartTile(TIFF* tif, uint32 tile)
739. {

libtiff/tif_read.c:737:1: Parameter `tif->tif_dir.td_tilelength`
        735.  * tile has just been read in.
        736.  */
        737. static int
             ^
        738. TIFFStartTile(TIFF* tif, uint32 tile)
        739. {

libtiff/tif_read.c:751:2: Binary operation: ([0, max(0, tif->tif_dir.td_tilelength)] - 1):unsigned32 by call to `TIFFReadTile` 
        749. 	    (tile % TIFFhowmany_32(td->td_imagewidth, td->td_tilewidth)) *
        750. 		td->td_tilelength;
        751. 	tif->tif_col =
              ^
        752. 	    (tile % TIFFhowmany_32(td->td_imagelength, td->td_tilelength)) *
        753. 		td->td_tilewidth;
