libtiff/tif_getimage.c:1327: error: Integer Overflow L2
  ([0, `h`] - 1):unsigned32.

libtiff/tif_getimage.c:1321:1: <LHS trace>
1319.  * (known to have Map == NULL)
1320.  */
1321. DECLAREContigPutFunc(putRGBAAcontig16bittile)
      ^
1322. {
1323. 	int samplesperpixel = img->samplesperpixel;

libtiff/tif_getimage.c:1321:1: Parameter `h`
1319.  * (known to have Map == NULL)
1320.  */
1321. DECLAREContigPutFunc(putRGBAAcontig16bittile)
      ^
1322. {
1323. 	int samplesperpixel = img->samplesperpixel;

libtiff/tif_getimage.c:1327:9: Binary operation: ([0, h] - 1):unsigned32
1325. 	(void) y;
1326. 	fromskew *= samplesperpixel;
1327. 	while (h-- > 0) {
              ^
1328. 		for (x = w; x-- > 0;) {
1329. 			*cp++ = PACK4(img->Bitdepth16To8[wp[0]],

DECLAREContigPutFunc(putRGBAAcontig16bittile)
{
	int samplesperpixel = img->samplesperpixel;
	uint16 *wp = (uint16 *)pp;
	(void) y;
	fromskew *= samplesperpixel;
	while (h-- > 0) {
		for (x = w; x-- > 0;) {
			*cp++ = PACK4(img->Bitdepth16To8[wp[0]],
			    img->Bitdepth16To8[wp[1]],
			    img->Bitdepth16To8[wp[2]],
			    img->Bitdepth16To8[wp[3]]);
			wp += samplesperpixel;
		}
		cp += toskew;
		wp += fromskew;
	}
}
['DECLAREContigPutFunc(putRGBAAcontig16bittile)\n{\n\tint samplesperpixel = img->samplesperpixel;\n\tuint16 *wp = (uint16 *)pp;\n\t(void) y;\n\tfromskew *= samplesperpixel;\n\twhile (h-- > 0) {\n\t\tfor (x = w; x-- > 0;) {\n\t\t\t*cp++ = PACK4(img->Bitdepth16To8[wp[0]],\n\t\t\t    img->Bitdepth16To8[wp[1]],\n\t\t\t    img->Bitdepth16To8[wp[2]],\n\t\t\t    img->Bitdepth16To8[wp[3]]);\n\t\t\twp += samplesperpixel;\n\t\t}\n\t\tcp += toskew;\n\t\twp += fromskew;\n\t}\n}']