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

tools/tiffcrop.c:8884:1: Parameter `bps`
8882. 
8883. /* Mirror an image horizontally or vertically */
8884. static int
      ^
8885. mirrorImage(uint16 spp, uint16 bps, uint16 mirror, uint32 width, uint32 length, unsigned char *ibuff)
8886.   {

tools/tiffcrop.c:8895:3: Assignment
8893. 
8894.   src = ibuff;
8895.   rowsize = ((width * bps * spp) + 7) / 8;
        ^
8896.   switch (mirror)
8897.     {

tools/tiffcrop.c:8936:52: Call
8934. 	      else
8935.                 { /* non 8 bit per sample  data */
8936.                 if (!(line_buff = (unsigned char *)_TIFFmalloc(rowsize + 1)))
                                                         ^
8937.                   {
8938.                   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:8936:23: Assignment
8934. 	      else
8935.                 { /* non 8 bit per sample  data */
8936.                 if (!(line_buff = (unsigned char *)_TIFFmalloc(rowsize + 1)))
                            ^
8937.                   {
8938.                   TIFFError("mirrorImage", "Unable to allocate mirror line buffer");

tools/tiffcrop.c:8971:33: Call
8969.                     case 3: 
8970.                     case 4: 
8971.                     case 5: if (reverseSamples32bits(spp, bps, width, src, line_buff))
                                      ^
8972.                               {
8973. 		              _TIFFfree(line_buff);

tools/tiffcrop.c:8735:1: <Length trace>
8733. 
8734. 
8735. static int
      ^
8736. reverseSamples32bits (uint16 spp, uint16 bps, uint32 width, 
8737.                       uint8 *ibuff, uint8 *obuff)

tools/tiffcrop.c:8735:1: Parameter `*obuff`
  8733. 
  8734. 
  8735. static int
        ^
  8736. reverseSamples32bits (uint16 spp, uint16 bps, uint32 width, 
  8737.                       uint8 *ibuff, uint8 *obuff)

tools/tiffcrop.c:8760:3: Assignment
  8758.   ready_bits = 0;
  8759.   mask_bits =  (uint64)-1 >> (64 - bps);
  8760.   dst = obuff;
          ^
  8761. 
  8762.   /* bytes_per_sample = (bps + 7) / 8; */

tools/tiffcrop.c:8809:10: Assignment
  8807.         {
  8808.         bytebuff1 = (buff2 >> 56);
  8809.         *dst++ = bytebuff1;
                 ^
  8810.         bytebuff2 = (buff2 >> 48);
  8811.         *dst++ = bytebuff2;

tools/tiffcrop.c:8811:9: Array access: Offset: [1, +oo] Size: [0, +oo] by call to `reverseSamples32bits` 
  8809.         *dst++ = bytebuff1;
  8810.         bytebuff2 = (buff2 >> 48);
  8811.         *dst++ = bytebuff2;
                ^
  8812.         bytebuff3 = (buff2 >> 40);
  8813.         *dst++ = bytebuff3;
