libtiff/tif_write.c:405: error: Buffer Overrun S2
  Offset: `tile` Size: [0, +oo].

libtiff/tif_write.c:378:1: <Offset trace>
376.  *     the image on each write (as TIFFWriteScanline does).
377.  */
378. tmsize_t
     ^
379. TIFFWriteEncodedTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc)
380. {

libtiff/tif_write.c:378:1: Parameter `tile`
376.  *     the image on each write (as TIFFWriteScanline does).
377.  */
378. tmsize_t
     ^
379. TIFFWriteEncodedTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc)
380. {

libtiff/tif_write.c:378:1: <Length trace>
376.  *     the image on each write (as TIFFWriteScanline does).
377.  */
378. tmsize_t
     ^
379. TIFFWriteEncodedTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc)
380. {

libtiff/tif_write.c:378:1: Parameter `*tif->tif_dir.td_stripbytecount`
376.  *     the image on each write (as TIFFWriteScanline does).
377.  */
378. tmsize_t
     ^
379. TIFFWriteEncodedTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc)
380. {

libtiff/tif_write.c:405:6: Array access: Offset: tile Size: [0, +oo]
403. 	tif->tif_curtile = tile;
404. 
405. 	if( td->td_stripbytecount[tile] > 0 )
          ^
406.         {
407.             /* Make sure that at the first attempt of rewriting the tile, we will have */
