libtiff/tif_dirwrite.c:855: error: Buffer Overrun L3
  Offset: [71, +oo] (⇐ [64, +oo] + 7) Size: [0, +oo] by call to `TIFFSwabLong8`.

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

libtiff/tif_dirwrite.c:792:9: Call
790. 		}
791. 	}
792. 	dirmem=_TIFFmalloc(dirsize);
             ^
793. 	if (dirmem==NULL)
794. 	{

libtiff/tif_unix.c:253:1: Parameter `s`
  251. #endif
  252. 
  253. void*
       ^
  254. _TIFFmalloc(tmsize_t s)
  255. {

libtiff/tif_unix.c:256:10: Array declaration
  254. _TIFFmalloc(tmsize_t s)
  255. {
  256. 	return (malloc((size_t) s));
                ^
  257. }
  258. 

libtiff/tif_unix.c:256:2: Assignment
  254. _TIFFmalloc(tmsize_t s)
  255. {
  256. 	return (malloc((size_t) s));
        ^
  257. }
  258. 

libtiff/tif_dirwrite.c:792:2: Assignment
790. 		}
791. 	}
792. 	dirmem=_TIFFmalloc(dirsize);
      ^
793. 	if (dirmem==NULL)
794. 	{

libtiff/tif_dirwrite.c:837:3: Assignment
835. 		uint8* n;
836. 		TIFFDirEntry* o;
837. 		n=dirmem;
       ^
838. 		*(uint64*)n=ndir;
839. 		if (tif->tif_flags&TIFF_SWAB)

libtiff/tif_dirwrite.c:841:3: Assignment
839. 		if (tif->tif_flags&TIFF_SWAB)
840. 			TIFFSwabLong8((uint64*)n);
841. 		n+=8;
       ^
842. 		o=dir;
843. 		for (m=0; m<ndir; m++)

libtiff/tif_dirwrite.c:848:4: Assignment
846. 			if (tif->tif_flags&TIFF_SWAB)
847. 				TIFFSwabShort((uint16*)n);
848. 			n+=2;
        ^
849. 			*(uint16*)n=o->tdir_type;
850. 			if (tif->tif_flags&TIFF_SWAB)

libtiff/tif_dirwrite.c:852:4: Assignment
850. 			if (tif->tif_flags&TIFF_SWAB)
851. 				TIFFSwabShort((uint16*)n);
852. 			n+=2;
        ^
853. 			_TIFFmemcpy(n,&o->tdir_count,8);
854. 			if (tif->tif_flags&TIFF_SWAB)

libtiff/tif_dirwrite.c:855:5: Call
853. 			_TIFFmemcpy(n,&o->tdir_count,8);
854. 			if (tif->tif_flags&TIFF_SWAB)
855. 				TIFFSwabLong8((uint64*)n);
         ^
856. 			n+=8;
857. 			_TIFFmemcpy(n,&o->tdir_offset,8);

libtiff/tif_swab.c:58:1: <Length trace>
56. 
57. #ifndef TIFFSwabLong8
58. void
    ^
59. TIFFSwabLong8(uint64* lp)
60. {

libtiff/tif_swab.c:58:1: Parameter `*lp`
  56. 
  57. #ifndef TIFFSwabLong8
  58. void
      ^
  59. TIFFSwabLong8(uint64* lp)
  60. {

libtiff/tif_swab.c:61:2: Assignment
  59. TIFFSwabLong8(uint64* lp)
  60. {
  61. 	register unsigned char* cp = (unsigned char*) lp;
       ^
  62. 	unsigned char t;
  63. 	assert(sizeof(uint64)==8);

libtiff/tif_swab.c:64:6: Array access: Offset: [71, +oo] (⇐ [64, +oo] + 7) Size: [0, +oo] by call to `TIFFSwabLong8` 
  62. 	unsigned char t;
  63. 	assert(sizeof(uint64)==8);
  64. 	t = cp[7]; cp[7] = cp[0]; cp[0] = t;
           ^
  65. 	t = cp[6]; cp[6] = cp[1]; cp[1] = t;
  66. 	t = cp[5]; cp[5] = cp[2]; cp[2] = t;
