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

libtiff/tif_dirwrite.c:362:1: Parameter `tif->tif_diroff`
360. }
361. 
362. static int
     ^
363. TIFFWriteDirectorySec(TIFF* tif, int isimage, int imagedone, uint64* pdiroff)
364. {

libtiff/tif_dirwrite.c:819:9: Call
817. 		}
818. 	}
819. 	dirmem=_TIFFmalloc(dirsize);
             ^
820. 	if (dirmem==NULL)
821. 	{

libtiff/tif_unix.c:261:17: Assignment
  259. {
  260.         if (s == 0)
  261.                 return ((void *) NULL);
                       ^
  262. 
  263. 	return (malloc((size_t) s));

libtiff/tif_dirwrite.c:819:2: Assignment
817. 		}
818. 	}
819. 	dirmem=_TIFFmalloc(dirsize);
      ^
820. 	if (dirmem==NULL)
821. 	{

libtiff/tif_dirwrite.c:866:3: Assignment
864. 		uint8* n;
865. 		TIFFDirEntry* o;
866. 		n=dirmem;
       ^
867. 		*(uint64*)n=ndir;
868. 		if (tif->tif_flags&TIFF_SWAB)

libtiff/tif_dirwrite.c:870:3: Assignment
868. 		if (tif->tif_flags&TIFF_SWAB)
869. 			TIFFSwabLong8((uint64*)n);
870. 		n+=8;
       ^
871. 		o=dir;
872. 		for (m=0; m<ndir; m++)

libtiff/tif_dirwrite.c:877:4: Assignment
875. 			if (tif->tif_flags&TIFF_SWAB)
876. 				TIFFSwabShort((uint16*)n);
877. 			n+=2;
        ^
878. 			*(uint16*)n=o->tdir_type;
879. 			if (tif->tif_flags&TIFF_SWAB)

libtiff/tif_dirwrite.c:881:4: Assignment
879. 			if (tif->tif_flags&TIFF_SWAB)
880. 				TIFFSwabShort((uint16*)n);
881. 			n+=2;
        ^
882. 			_TIFFmemcpy(n,&o->tdir_count,8);
883. 			if (tif->tif_flags&TIFF_SWAB)

libtiff/tif_dirwrite.c:884:5: Call
882. 			_TIFFmemcpy(n,&o->tdir_count,8);
883. 			if (tif->tif_flags&TIFF_SWAB)
884. 				TIFFSwabLong8((uint64*)n);
         ^
885. 			n+=8;
886. 			_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;
