tools/tiffmedian.c:373: error: Integer Overflow L2
  ([0, `imagewidth`] - 1):unsigned32.

tools/tiffmedian.c:348:1: <LHS trace>
346. }
347. 
348. static void
     ^
349. get_histogram(TIFF* in, Colorbox* box)
350. {

tools/tiffmedian.c:348:1: Global `imagewidth`
346. }
347. 
348. static void
     ^
349. get_histogram(TIFF* in, Colorbox* box)
350. {

tools/tiffmedian.c:373:8: Assignment
371. 			break;
372. 		inptr = inputline;
373. 		for (j = imagewidth; j-- > 0;) {
            ^
374. 			red = (*inptr++) & 0xff >> COLOR_SHIFT;
375. 			green = (*inptr++) & 0xff >> COLOR_SHIFT;

tools/tiffmedian.c:373:24: Binary operation: ([0, imagewidth] - 1):unsigned32
371. 			break;
372. 		inptr = inputline;
373. 		for (j = imagewidth; j-- > 0;) {
                            ^
374. 			red = (*inptr++) & 0xff >> COLOR_SHIFT;
375. 			green = (*inptr++) & 0xff >> COLOR_SHIFT;
