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

libtiff/tif_getimage.c:1499:1: <LHS trace>
1497.  * 16-bit unpacked samples => RGBA w/ associated alpha
1498.  */
1499. DECLARESepPutFunc(putRGBAAseparate16bittile)
      ^
1500. {
1501. 	uint16 *wr = (uint16*) r;

libtiff/tif_getimage.c:1499:1: Parameter `h`
1497.  * 16-bit unpacked samples => RGBA w/ associated alpha
1498.  */
1499. DECLARESepPutFunc(putRGBAAseparate16bittile)
      ^
1500. {
1501. 	uint16 *wr = (uint16*) r;

libtiff/tif_getimage.c:1506:9: Binary operation: ([0, h] - 1):unsigned32
1504. 	uint16 *wa = (uint16*) a;
1505. 	(void) img; (void) y;
1506. 	while (h-- > 0) {
              ^
1507. 		for (x = 0; x < w; x++)
1508. 			*cp++ = PACK4(img->Bitdepth16To8[*wr++],

DECLARESepPutFunc(putRGBAAseparate16bittile)
{
	uint16 *wr = (uint16*) r;
	uint16 *wg = (uint16*) g;
	uint16 *wb = (uint16*) b;
	uint16 *wa = (uint16*) a;
	(void) img; (void) y;
	while (h-- > 0) {
		for (x = 0; x < w; x++)
			*cp++ = PACK4(img->Bitdepth16To8[*wr++],
			    img->Bitdepth16To8[*wg++],
			    img->Bitdepth16To8[*wb++],
			    img->Bitdepth16To8[*wa++]);
		SKEW4(wr, wg, wb, wa, fromskew);
		cp += toskew;
	}
}
['DECLARESepPutFunc(putRGBAAseparate16bittile)\n{\n\tuint16 *wr = (uint16*) r;\n\tuint16 *wg = (uint16*) g;\n\tuint16 *wb = (uint16*) b;\n\tuint16 *wa = (uint16*) a;\n\t(void) img; (void) y;\n\twhile (h-- > 0) {\n\t\tfor (x = 0; x < w; x++)\n\t\t\t*cp++ = PACK4(img->Bitdepth16To8[*wr++],\n\t\t\t    img->Bitdepth16To8[*wg++],\n\t\t\t    img->Bitdepth16To8[*wb++],\n\t\t\t    img->Bitdepth16To8[*wa++]);\n\t\tSKEW4(wr, wg, wb, wa, fromskew);\n\t\tcp += toskew;\n\t}\n}']