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

libtiff/tif_getimage.c:1140:1: <LHS trace>
1138.  * 8-bit greyscale => colormap/RGB
1139.  */
1140. DECLAREContigPutFunc(putgreytile)
      ^
1141. {
1142.     int samplesperpixel = img->samplesperpixel;

libtiff/tif_getimage.c:1140:1: Parameter `w`
1138.  * 8-bit greyscale => colormap/RGB
1139.  */
1140. DECLAREContigPutFunc(putgreytile)
      ^
1141. {
1142.     int samplesperpixel = img->samplesperpixel;

libtiff/tif_getimage.c:1147:7: Assignment
1145.     (void) y;
1146.     while (h-- > 0) {
1147. 	for (x = w; x-- > 0;)
            ^
1148.         {
1149. 	    *cp++ = BWmap[*pp][0];

libtiff/tif_getimage.c:1147:14: Binary operation: ([0, w] - 1):unsigned32
1145.     (void) y;
1146.     while (h-- > 0) {
1147. 	for (x = w; x-- > 0;)
                   ^
1148.         {
1149. 	    *cp++ = BWmap[*pp][0];

DECLAREContigPutFunc(putgreytile)
{
    int samplesperpixel = img->samplesperpixel;
    uint32** BWmap = img->BWmap;
    (void) y;
    while (h-- > 0) {
	for (x = w; x-- > 0;)
        {
	    *cp++ = BWmap[*pp][0];
            pp += samplesperpixel;
        }
	cp += toskew;
	pp += fromskew;
    }
}
['DECLAREContigPutFunc(putgreytile)\n{\n    int samplesperpixel = img->samplesperpixel;\n    uint32** BWmap = img->BWmap;\n    (void) y;\n    while (h-- > 0) {\n\tfor (x = w; x-- > 0;)\n        {\n\t    *cp++ = BWmap[*pp][0];\n            pp += samplesperpixel;\n        }\n\tcp += toskew;\n\tpp += fromskew;\n    }\n}']