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

libtiff/tif_getimage.c:1397:1: <LHS trace>
1395.  * NB: The conversion of CMYK->RGB is *very* crude.
1396.  */
1397. DECLAREContigPutFunc(putRGBcontig8bitCMYKMaptile)
      ^
1398. {
1399.     int samplesperpixel = img->samplesperpixel;

libtiff/tif_getimage.c:1397:1: Parameter `w`
1395.  * NB: The conversion of CMYK->RGB is *very* crude.
1396.  */
1397. DECLAREContigPutFunc(putRGBcontig8bitCMYKMaptile)
      ^
1398. {
1399.     int samplesperpixel = img->samplesperpixel;

libtiff/tif_getimage.c:1406:7: Assignment
1404.     fromskew *= samplesperpixel;
1405.     while (h-- > 0) {
1406. 	for (x = w; x-- > 0;) {
            ^
1407. 	    k = 255 - pp[3];
1408. 	    r = (k*(255-pp[0]))/255;

libtiff/tif_getimage.c:1406:14: Binary operation: ([0, w] - 1):unsigned32
1404.     fromskew *= samplesperpixel;
1405.     while (h-- > 0) {
1406. 	for (x = w; x-- > 0;) {
                   ^
1407. 	    k = 255 - pp[3];
1408. 	    r = (k*(255-pp[0]))/255;

DECLAREContigPutFunc(putRGBcontig8bitCMYKMaptile)
{
    int samplesperpixel = img->samplesperpixel;
    TIFFRGBValue* Map = img->Map;
    uint16 r, g, b, k;
    (void) y;
    fromskew *= samplesperpixel;
    while (h-- > 0) {
	for (x = w; x-- > 0;) {
	    k = 255 - pp[3];
	    r = (k*(255-pp[0]))/255;
	    g = (k*(255-pp[1]))/255;
	    b = (k*(255-pp[2]))/255;
	    *cp++ = PACK(Map[r], Map[g], Map[b]);
	    pp += samplesperpixel;
	}
	pp += fromskew;
	cp += toskew;
    }
}
['DECLAREContigPutFunc(putRGBcontig8bitCMYKMaptile)\n{\n    int samplesperpixel = img->samplesperpixel;\n    TIFFRGBValue* Map = img->Map;\n    uint16 r, g, b, k;\n    (void) y;\n    fromskew *= samplesperpixel;\n    while (h-- > 0) {\n\tfor (x = w; x-- > 0;) {\n\t    k = 255 - pp[3];\n\t    r = (k*(255-pp[0]))/255;\n\t    g = (k*(255-pp[1]))/255;\n\t    b = (k*(255-pp[2]))/255;\n\t    *cp++ = PACK(Map[r], Map[g], Map[b]);\n\t    pp += samplesperpixel;\n\t}\n\tpp += fromskew;\n\tcp += toskew;\n    }\n}']