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

libtiff/tif_getimage.c:1520:1: <LHS trace>
1518.  * 16-bit unpacked samples => RGBA w/ unassociated alpha
1519.  */
1520. DECLARESepPutFunc(putRGBUAseparate16bittile)
      ^
1521. {
1522. 	uint16 *wr = (uint16*) r;

libtiff/tif_getimage.c:1520:1: Parameter `h`
1518.  * 16-bit unpacked samples => RGBA w/ unassociated alpha
1519.  */
1520. DECLARESepPutFunc(putRGBUAseparate16bittile)
      ^
1521. {
1522. 	uint16 *wr = (uint16*) r;

libtiff/tif_getimage.c:1527:9: Binary operation: ([0, h] - 1):unsigned32
1525. 	uint16 *wa = (uint16*) a;
1526. 	(void) img; (void) y;
1527. 	while (h-- > 0) {
              ^
1528. 		uint32 r,g,b,a;
1529. 		uint8* m;

DECLARESepPutFunc(putRGBUAseparate16bittile)
{
	uint16 *wr = (uint16*) r;
	uint16 *wg = (uint16*) g;
	uint16 *wb = (uint16*) b;
	uint16 *wa = (uint16*) a;
	(void) img; (void) y;
	while (h-- > 0) {
		uint32 r,g,b,a;
		uint8* m;
		for (x = w; x-- > 0;) {
			a = img->Bitdepth16To8[*wa++];
			m = img->UaToAa+(a<<8);
			r = m[img->Bitdepth16To8[*wr++]];
			g = m[img->Bitdepth16To8[*wg++]];
			b = m[img->Bitdepth16To8[*wb++]];
			*cp++ = PACK4(r,g,b,a);
		}
		SKEW4(wr, wg, wb, wa, fromskew);
		cp += toskew;
	}
}
['DECLARESepPutFunc(putRGBUAseparate16bittile)\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\tuint32 r,g,b,a;\n\t\tuint8* m;\n\t\tfor (x = w; x-- > 0;) {\n\t\t\ta = img->Bitdepth16To8[*wa++];\n\t\t\tm = img->UaToAa+(a<<8);\n\t\t\tr = m[img->Bitdepth16To8[*wr++]];\n\t\t\tg = m[img->Bitdepth16To8[*wg++]];\n\t\t\tb = m[img->Bitdepth16To8[*wb++]];\n\t\t\t*cp++ = PACK4(r,g,b,a);\n\t\t}\n\t\tSKEW4(wr, wg, wb, wa, fromskew);\n\t\tcp += toskew;\n\t}\n}']