tools/tiffcrop.c:8946: error: Buffer Overrun L3
  Offset: [1, +oo] Size: [0, +oo] by call to `reverseSamples32bits`.

tools/tiffcrop.c:8859:1: Parameter `bps`
8857. 
8858. /* Mirror an image horizontally or vertically */
8859. static int
      ^
8860. mirrorImage(uint16 spp, uint16 bps, uint16 mirror, uint32 width, uint32 length, unsigned char *ibuff)
8861.   {

tools/tiffcrop.c:8870:3: Assignment
8868. 
8869.   src = ibuff;
8870.   rowsize = ((width * bps * spp) + 7) / 8;
        ^
8871.   switch (mirror)
8872.     {

tools/tiffcrop.c:8911:52: Call
8909. 	      else
8910.                 { /* non 8 bit per sample  data */
8911.                 if (!(line_buff = (unsigned char *)_TIFFmalloc(rowsize + 1)))
                                                         ^
8912.                   {
8913.                   TIFFError("mirrorImage", "Unable to allocate mirror line buffer");

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

tools/tiffcrop.c:8911:23: Assignment
8909. 	      else
8910.                 { /* non 8 bit per sample  data */
8911.                 if (!(line_buff = (unsigned char *)_TIFFmalloc(rowsize + 1)))
                            ^
8912.                   {
8913.                   TIFFError("mirrorImage", "Unable to allocate mirror line buffer");

tools/tiffcrop.c:8946:33: Call
8944.                     case 3: 
8945.                     case 4: 
8946.                     case 5: if (reverseSamples32bits(spp, bps, width, src, line_buff))
                                      ^
8947.                               {
8948. 		              _TIFFfree(line_buff);

tools/tiffcrop.c:8710:1: <Length trace>
8708. 
8709. 
8710. static int
      ^
8711. reverseSamples32bits (uint16 spp, uint16 bps, uint32 width, 
8712.                       uint8 *ibuff, uint8 *obuff)

tools/tiffcrop.c:8710:1: Parameter `*obuff`
  8708. 
  8709. 
  8710. static int
        ^
  8711. reverseSamples32bits (uint16 spp, uint16 bps, uint32 width, 
  8712.                       uint8 *ibuff, uint8 *obuff)

tools/tiffcrop.c:8735:3: Assignment
  8733.   ready_bits = 0;
  8734.   mask_bits =  (uint64)-1 >> (64 - bps);
  8735.   dst = obuff;
          ^
  8736. 
  8737.   bytes_per_sample = (bps + 7) / 8;

tools/tiffcrop.c:8784:10: Assignment
  8782.         {
  8783.         bytebuff1 = (buff2 >> 56);
  8784.         *dst++ = bytebuff1;
                 ^
  8785.         bytebuff2 = (buff2 >> 48);
  8786.         *dst++ = bytebuff2;

tools/tiffcrop.c:8786:9: Array access: Offset: [1, +oo] Size: [0, +oo] by call to `reverseSamples32bits` 
  8784.         *dst++ = bytebuff1;
  8785.         bytebuff2 = (buff2 >> 48);
  8786.         *dst++ = bytebuff2;
                ^
  8787.         bytebuff3 = (buff2 >> 40);
  8788.         *dst++ = bytebuff3;
