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

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

libtiff/tif_dirwrite.c:839:9: Call
837. 		}
838. 	}
839. 	dirmem=_TIFFmalloc(dirsize);
             ^
840. 	if (dirmem==NULL)
841. 	{

libtiff/tif_unix.c:314:17: Assignment
  312. {
  313.         if (s == 0)
  314.                 return ((void *) NULL);
                       ^
  315. 
  316. 	return (malloc((size_t) s));

libtiff/tif_dirwrite.c:839:2: Assignment
837. 		}
838. 	}
839. 	dirmem=_TIFFmalloc(dirsize);
      ^
840. 	if (dirmem==NULL)
841. 	{

libtiff/tif_dirwrite.c:886:3: Assignment
884. 		uint8* n;
885. 		TIFFDirEntry* o;
886. 		n=dirmem;
       ^
887. 		*(uint64*)n=ndir;
888. 		if (tif->tif_flags&TIFF_SWAB)

libtiff/tif_dirwrite.c:890:3: Assignment
888. 		if (tif->tif_flags&TIFF_SWAB)
889. 			TIFFSwabLong8((uint64*)n);
890. 		n+=8;
       ^
891. 		o=dir;
892. 		for (m=0; m<ndir; m++)

libtiff/tif_dirwrite.c:897:4: Assignment
895. 			if (tif->tif_flags&TIFF_SWAB)
896. 				TIFFSwabShort((uint16*)n);
897. 			n+=2;
        ^
898. 			*(uint16*)n=o->tdir_type;
899. 			if (tif->tif_flags&TIFF_SWAB)

libtiff/tif_dirwrite.c:901:4: Assignment
899. 			if (tif->tif_flags&TIFF_SWAB)
900. 				TIFFSwabShort((uint16*)n);
901. 			n+=2;
        ^
902. 			_TIFFmemcpy(n,&o->tdir_count,8);
903. 			if (tif->tif_flags&TIFF_SWAB)

libtiff/tif_dirwrite.c:904:5: Call
902. 			_TIFFmemcpy(n,&o->tdir_count,8);
903. 			if (tif->tif_flags&TIFF_SWAB)
904. 				TIFFSwabLong8((uint64*)n);
         ^
905. 			n+=8;
906. 			_TIFFmemcpy(n,&o->tdir_offset,8);

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

libtiff/tif_swab.c:58:1: Parameter `*lp`
  56. 
  57. #if defined(DISABLE_CHECK_TIFFSWABMACROS) || !defined(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;
