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

tools/tiffcrop.c:9054:1: Parameter `bps`
9052. 
9053. /* Mirror an image horizontally or vertically */
9054. static int
      ^
9055. mirrorImage(uint16 spp, uint16 bps, uint16 mirror, uint32 width, uint32 length, unsigned char *ibuff)
9056.   {

tools/tiffcrop.c:9065:3: Assignment
9063. 
9064.   src = ibuff;
9065.   rowsize = ((width * bps * spp) + 7) / 8;
        ^
9066.   switch (mirror)
9067.     {

tools/tiffcrop.c:9107:52: Call
9105. 	      else
9106.                 { /* non 8 bit per sample  data */
9107.                 if (!(line_buff = (unsigned char *)limitMalloc(rowsize + 1)))
                                                         ^
9108.                   {
9109.                   TIFFError("mirrorImage", "Unable to allocate mirror line buffer");

tools/tiffcrop.c:634:76: Assignment
  632.     fprintf(stderr, "MemoryLimitError: allocation of " TIFF_UINT64_FORMAT " bytes is forbidden. Limit is " TIFF_UINT64_FORMAT ".\n",
  633.             (uint64)s, (uint64)maxMalloc);
  634.     fprintf(stderr, "                  use -k option to change limit.\n"); return NULL;
                                                                                  ^
  635.   }
  636.   return _TIFFmalloc(s);

tools/tiffcrop.c:9107:23: Assignment
9105. 	      else
9106.                 { /* non 8 bit per sample  data */
9107.                 if (!(line_buff = (unsigned char *)limitMalloc(rowsize + 1)))
                            ^
9108.                   {
9109.                   TIFFError("mirrorImage", "Unable to allocate mirror line buffer");

tools/tiffcrop.c:9142:33: Call
9140.                     case 3: 
9141.                     case 4: 
9142.                     case 5: if (reverseSamples32bits(spp, bps, width, src, line_buff))
                                      ^
9143.                               {
9144. 		              _TIFFfree(line_buff);

tools/tiffcrop.c:8900:1: <Length trace>
8898. 
8899. 
8900. static int
      ^
8901. reverseSamples32bits (uint16 spp, uint16 bps, uint32 width, 
8902.                       uint8 *ibuff, uint8 *obuff)

tools/tiffcrop.c:8900:1: Parameter `*obuff`
  8898. 
  8899. 
  8900. static int
        ^
  8901. reverseSamples32bits (uint16 spp, uint16 bps, uint32 width, 
  8902.                       uint8 *ibuff, uint8 *obuff)

tools/tiffcrop.c:8925:3: Assignment
  8923.   ready_bits = 0;
  8924.   mask_bits =  (uint64)-1 >> (64 - bps);
  8925.   dst = obuff;
          ^
  8926. 
  8927.   /* bytes_per_sample = (bps + 7) / 8; */

tools/tiffcrop.c:8974:10: Assignment
  8972.         {
  8973.         bytebuff1 = (buff2 >> 56);
  8974.         *dst++ = bytebuff1;
                 ^
  8975.         bytebuff2 = (buff2 >> 48);
  8976.         *dst++ = bytebuff2;

tools/tiffcrop.c:8976:9: Array access: Offset: [1, +oo] Size: [0, +oo] by call to `reverseSamples32bits` 
  8974.         *dst++ = bytebuff1;
  8975.         bytebuff2 = (buff2 >> 48);
  8976.         *dst++ = bytebuff2;
                ^
  8977.         bytebuff3 = (buff2 >> 40);
  8978.         *dst++ = bytebuff3;
