contrib/addtiffo/tif_ovrcache.c:204: error: Integer Overflow L2
  ([0, 4294967294] + [0, 4294967294]):unsigned32 by call to `TIFFWriteEncodedStrip`.

contrib/addtiffo/tif_ovrcache.c:168:12: Call
166. /* -------------------------------------------------------------------- */
167.     nBaseDirOffset = TIFFCurrentDirOffset( psCache->hTIFF );
168.     nRet = TIFFSetSubDirectory( psCache->hTIFF, psCache->nDirOffset );
                ^
169.     assert( nRet == 1 );
170. 

libtiff/tif_dir.c:1649:1: Parameter `tif->tif_dir.td_imagewidth`
  1647.  * the SubIFD tag (e.g. thumbnail images).
  1648.  */
  1649. int
        ^
  1650. TIFFSetSubDirectory(TIFF* tif, uint64 diroff)
  1651. {

libtiff/tif_dir.c:1658:10: Call
  1656. 	 */
  1657. 	tif->tif_dirnumber = 0;
  1658. 	return (TIFFReadDirectory(tif));
                 ^
  1659. }
  1660. 

libtiff/tif_dirread.c:3574:1: Parameter `tif->tif_dir.td_imagewidth`
    3572.  * format. We read directories sequentially.
    3573.  */
    3574. int
          ^
    3575. TIFFReadDirectory(TIFF* tif)
    3576. {

contrib/addtiffo/tif_ovrcache.c:206:10: Call
204. 					TIFFWriteEncodedStrip( psCache->hTIFF, nTileID,
205. 					    pabyData,
206. 					    TIFFVStripSize(psCache->hTIFF,RowsInStrip) );
              ^
207. 				}
208. 			}

libtiff/tif_strip.c:127:1: Parameter `tif->tif_dir.td_imagewidth`
  125. 		return(_TIFFMultiply64(tif,nrows,TIFFScanlineSize64(tif),module));
  126. }
  127. tmsize_t
       ^
  128. TIFFVStripSize(TIFF* tif, uint32 nrows)
  129. {

libtiff/tif_strip.c:133:4: Call
  131. 	uint64 m;
  132. 	tmsize_t n;
  133. 	m=TIFFVStripSize64(tif,nrows);
          ^
  134. 	n=(tmsize_t)m;
  135. 	if ((uint64)n!=m)

libtiff/tif_strip.c:75:1: Parameter `tif->tif_dir.td_imagewidth`
    73.  * Compute the # bytes in a variable height, row-aligned strip.
    74.  */
    75. uint64
        ^
    76. TIFFVStripSize64(TIFF* tif, uint32 nrows)
    77. {

contrib/addtiffo/tif_ovrcache.c:204:6: Call
202. 					if ((iTileY+1)*psCache->nBlockYSize>psCache->nYSize)
203. 						RowsInStrip=psCache->nYSize-iTileY*psCache->nBlockYSize;
204. 					TIFFWriteEncodedStrip( psCache->hTIFF, nTileID,
          ^
205. 					    pabyData,
206. 					    TIFFVStripSize(psCache->hTIFF,RowsInStrip) );

libtiff/tif_write.c:211:1: Parameter `tif->tif_dir.td_imagewidth`
  209.  * NB: Image length must be setup before writing.
  210.  */
  211. tmsize_t
       ^
  212. TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc)
  213. {

libtiff/tif_write.c:218:7: Call
  216. 	uint16 sample;
  217. 
  218. 	if (!WRITECHECKSTRIPS(tif, module))
             ^
  219. 		return ((tmsize_t) -1);
  220. 	/*

libtiff/tif_write.c:564:1: Parameter `tif->tif_dir.td_imagewidth`
    562.  * that important information is not changed.
    563.  */
    564. int
         ^
    565. TIFFWriteCheck(TIFF* tif, int tiles, const char* module)
    566. {

libtiff/tif_write.c:611:48: Call
    609. 		}
    610. 	}
    611. 	if (tif->tif_dir.td_stripoffset_p == NULL && !TIFFSetupStrips(tif)) {
                                                        ^
    612. 		tif->tif_dir.td_nstrips = 0;
    613. 		TIFFErrorExt(tif->tif_clientdata, module, "No space for %s arrays",

libtiff/tif_write.c:522:1: Parameter `tif->tif_dir.td_imagewidth`
      520.     (TIFFFieldSet(tif,f) && (tif)->tif_dir.td_imagelength == 0)
      521. 
      522. int
           ^
      523. TIFFSetupStrips(TIFF* tif)
      524. {

libtiff/tif_write.c:530:29: Call
      528. 		td->td_stripsperimage =
      529. 		    isUnspecified(tif, FIELD_TILEDIMENSIONS) ?
      530. 			td->td_samplesperpixel : TIFFNumberOfTiles(tif);
                                       ^
      531. 	else
      532. 		td->td_stripsperimage =

libtiff/tif_tile.c:112:1: <LHS trace>
110.  * Compute how many tiles are in an image.
111.  */
112. uint32
     ^
113. TIFFNumberOfTiles(TIFF* tif)
114. {

libtiff/tif_tile.c:112:1: Parameter `tif->tif_dir.td_imagewidth`
        110.  * Compute how many tiles are in an image.
        111.  */
        112. uint32
             ^
        113. TIFFNumberOfTiles(TIFF* tif)
        114. {

libtiff/tif_tile.c:112:1: <RHS trace>
110.  * Compute how many tiles are in an image.
111.  */
112. uint32
     ^
113. TIFFNumberOfTiles(TIFF* tif)
114. {

libtiff/tif_tile.c:112:1: Parameter `tif->tif_dir.td_imagewidth`
        110.  * Compute how many tiles are in an image.
        111.  */
        112. uint32
             ^
        113. TIFFNumberOfTiles(TIFF* tif)
        114. {

libtiff/tif_tile.c:128:48: Binary operation: ([0, 4294967294] + [0, 4294967294]):unsigned32 by call to `TIFFWriteEncodedStrip` 
        126. 		dz = td->td_imagedepth;
        127. 	ntiles = (dx == 0 || dy == 0 || dz == 0) ? 0 :
        128. 	    _TIFFMultiply32(tif, _TIFFMultiply32(tif, TIFFhowmany_32(td->td_imagewidth, dx),
                                                            ^
        129. 	    TIFFhowmany_32(td->td_imagelength, dy),
        130. 	    "TIFFNumberOfTiles"),
