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

libtiff/tif_getimage.c:1214:1: <LHS trace>
1212.  * 8-bit greyscale with associated alpha => colormap/RGBA
1213.  */
1214. DECLAREContigPutFunc(putagreytile)
      ^
1215. {
1216.     int samplesperpixel = img->samplesperpixel;

libtiff/tif_getimage.c:1214:1: Parameter `w`
1212.  * 8-bit greyscale with associated alpha => colormap/RGBA
1213.  */
1214. DECLAREContigPutFunc(putagreytile)
      ^
1215. {
1216.     int samplesperpixel = img->samplesperpixel;

libtiff/tif_getimage.c:1221:7: Assignment
1219.     (void) y;
1220.     while (h-- > 0) {
1221. 	for (x = w; x-- > 0;)
            ^
1222.         {
1223.             *cp++ = BWmap[*pp][0] & (*(pp+1) << 24 | ~A1);

libtiff/tif_getimage.c:1221:14: Binary operation: ([0, w] - 1):unsigned32
1219.     (void) y;
1220.     while (h-- > 0) {
1221. 	for (x = w; x-- > 0;)
                   ^
1222.         {
1223.             *cp++ = BWmap[*pp][0] & (*(pp+1) << 24 | ~A1);

DECLAREContigPutFunc(putagreytile)
{
    int samplesperpixel = img->samplesperpixel;
    uint32** BWmap = img->BWmap;
    (void) y;
    while (h-- > 0) {
	for (x = w; x-- > 0;)
        {
            *cp++ = BWmap[*pp][0] & (*(pp+1) << 24 | ~A1);
            pp += samplesperpixel;
        }
	cp += toskew;
	pp += fromskew;
    }
}
['DECLAREContigPutFunc(putagreytile)\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            *cp++ = BWmap[*pp][0] & (*(pp+1) << 24 | ~A1);\n            pp += samplesperpixel;\n        }\n\tcp += toskew;\n\tpp += fromskew;\n    }\n}']