tools/tiffsplit.c:91: error: Buffer Overrun L3
  Offset: [7, +oo] (⇐ [0, +oo] + 7) Size: [0, +oo] by call to `TIFFClose`.

tools/tiffsplit.c:89:9: Call
87. 			if (out == NULL)
88. 				return (-2);
89. 			if (!tiffcp(in, out))
            ^
90. 				return (-1);
91. 			TIFFClose(out);

tools/tiffsplit.c:157:1: Parameter `out->tif_dir.td_stripbytecount`
  155. }
  156. 
  157. static int
       ^
  158. tiffcp(TIFF* in, TIFF* out)
  159. {

tools/tiffsplit.c:225:11: Call
  223. 	CopyField(TIFFTAG_FAXDCS, stringv);
  224. 	if (TIFFIsTiled(in))
  225. 		return (cpTiles(in, out));
                 ^
  226. 	else
  227. 		return (cpStrips(in, out));

tools/tiffsplit.c:260:1: Parameter `out->tif_dir.td_stripbytecount`
    258. }
    259. 
    260. static int
         ^
    261. cpTiles(TIFF* in, TIFF* out)
    262. {

tools/tiffsplit.c:91:4: Call
89. 			if (!tiffcp(in, out))
90. 				return (-1);
91. 			TIFFClose(out);
       ^
92. 		} while (TIFFReadDirectory(in));
93. 		(void) TIFFClose(in);

libtiff/tif_close.c:122:1: Parameter `*tif->tif_dir.td_stripbytecount`
  120.  */
  121. 
  122. void
       ^
  123. TIFFClose(TIFF* tif)
  124. {

libtiff/tif_close.c:128:2: Call
  126. 	thandle_t fd = tif->tif_clientdata;
  127. 
  128. 	TIFFCleanup(tif);
        ^
  129. 	(void) (*closeproc)(fd);
  130. }

libtiff/tif_close.c:46:1: Parameter `*tif->tif_dir.td_stripbytecount`
    44.  */
    45. 
    46. void
        ^
    47. TIFFCleanup(TIFF* tif)
    48. {

libtiff/tif_close.c:53:3: Call
    51.          */
    52. 	if (tif->tif_mode != O_RDONLY)
    53. 		TIFFFlush(tif);
          ^
    54. 	(*tif->tif_cleanup)(tif);
    55. 	TIFFFreeDirectory(tif);

libtiff/tif_flush.c:32:1: Parameter `*tif->tif_dir.td_stripbytecount`
      30. #include "tiffiop.h"
      31. 
      32. int
          ^
      33. TIFFFlush(TIFF* tif)
      34. {

libtiff/tif_flush.c:83:13: Call
      81. 
      82.     if ((tif->tif_flags & (TIFF_DIRTYDIRECT|TIFF_DIRTYSTRIP)) 
      83.         && !TIFFRewriteDirectory(tif))
                      ^
      84.         return (0);
      85. 

libtiff/tif_dirwrite.c:199:1: Parameter `*tif->tif_dir.td_stripbytecount`
        197.  * previously used directory space. 
        198.  */ 
        199. int
             ^
        200. TIFFRewriteDirectory( TIFF *tif )
        201. {

libtiff/tif_dirwrite.c:206:10: Call
        204. 	/* We don't need to do anything special if it hasn't been written. */
        205. 	if( tif->tif_diroff == 0 )
        206. 		return TIFFWriteDirectory( tif );
                      ^
        207. 
        208. 	/*

libtiff/tif_dirwrite.c:163:1: Parameter `*tif->tif_dir.td_stripbytecount`
          161.  * storage that's been changed.
          162.  */
          163. int
               ^
          164. TIFFWriteDirectory(TIFF* tif)
          165. {

libtiff/tif_dirwrite.c:166:9: Call
          164. TIFFWriteDirectory(TIFF* tif)
          165. {
          166. 	return TIFFWriteDirectorySec(tif,TRUE,TRUE,NULL);
                       ^
          167. }
          168. 

libtiff/tif_dirwrite.c:345:1: Parameter `*tif->tif_dir.td_stripbytecount`
            343. }
            344. 
            345. static int
                 ^
            346. TIFFWriteDirectorySec(TIFF* tif, int isimage, int imagedone, uint64* pdiroff)
            347. {

libtiff/tif_dirwrite.c:512:11: Call
            510. 				if (!isTiled(tif))
            511. 				{
            512. 					if (!TIFFWriteDirectoryTagLongLong8Array(tif,&ndir,dir,TIFFTAG_STRIPBYTECOUNTS,tif->tif_dir.td_nstrips,tif->tif_dir.td_stripbytecount))
                           ^
            513. 						goto bad;
            514. 				}

libtiff/tif_dirwrite.c:1470:1: Parameter `*value`
              1468. /************************************************************************/
              1469. 
              1470. static int
                    ^
              1471. TIFFWriteDirectoryTagLongLong8Array(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint32 count, uint64* value)
              1472. {

libtiff/tif_dirwrite.c:1489:16: Call
              1487.     /* We always write LONG8 for BigTIFF, no checking needed. */
              1488.     if( tif->tif_flags&TIFF_BIGTIFF )
              1489.         return TIFFWriteDirectoryTagCheckedLong8Array(tif,ndir,dir,
                                   ^
              1490.                                                       tag,count,value);
              1491. 

libtiff/tif_dirwrite.c:1927:1: Parameter `*value`
                1925. #endif
                1926. 
                1927. static int
                      ^
                1928. TIFFWriteDirectoryTagCheckedLong8Array(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint32 count, uint64* value)
                1929. {

libtiff/tif_dirwrite.c:1934:3: Call
                1932. 	assert(tif->tif_flags&TIFF_BIGTIFF);
                1933. 	if (tif->tif_flags&TIFF_SWAB)
                1934. 		TIFFSwabArrayOfLong8(value,count);
                        ^
                1935. 	return(TIFFWriteDirectoryTagData(tif,ndir,dir,tag,TIFF_LONG8,count,count*8,value));
                1936. }

libtiff/tif_swab.c:121:1: <Length trace>
119. 
120. #ifndef TIFFSwabArrayOfLong8
121. void
     ^
122. TIFFSwabArrayOfLong8(register uint64* lp, tmsize_t n)
123. {

libtiff/tif_swab.c:121:1: Parameter `*lp`
                  119. 
                  120. #ifndef TIFFSwabArrayOfLong8
                  121. void
                       ^
                  122. TIFFSwabArrayOfLong8(register uint64* lp, tmsize_t n)
                  123. {

libtiff/tif_swab.c:129:3: Assignment
                  127. 	/* XXX unroll loop some */
                  128. 	while (n-- > 0) {
                  129. 		cp = (unsigned char *)lp;
                         ^
                  130. 		t = cp[7]; cp[7] = cp[0]; cp[0] = t;
                  131. 		t = cp[6]; cp[6] = cp[1]; cp[1] = t;

libtiff/tif_swab.c:130:7: Array access: Offset: [7, +oo] (⇐ [0, +oo] + 7) Size: [0, +oo] by call to `TIFFClose` 
                  128. 	while (n-- > 0) {
                  129. 		cp = (unsigned char *)lp;
                  130. 		t = cp[7]; cp[7] = cp[0]; cp[0] = t;
                             ^
                  131. 		t = cp[6]; cp[6] = cp[1]; cp[1] = t;
                  132. 		t = cp[5]; cp[5] = cp[2]; cp[2] = t;
