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

tools/tiffmedian.c:344:1: <LHS trace>
342. }
343. 
344. static void
     ^
345. get_histogram(TIFF* in, Colorbox* box)
346. {

tools/tiffmedian.c:344:1: Global `imagewidth`
342. }
343. 
344. static void
     ^
345. get_histogram(TIFF* in, Colorbox* box)
346. {

tools/tiffmedian.c:369:8: Assignment
367. 			break;
368. 		inptr = inputline;
369. 		for (j = imagewidth; j-- > 0;) {
            ^
370. 			red = *inptr++ >> COLOR_SHIFT;
371. 			green = *inptr++ >> COLOR_SHIFT;

tools/tiffmedian.c:369:24: Binary operation: ([0, imagewidth] - 1):unsigned32
367. 			break;
368. 		inptr = inputline;
369. 		for (j = imagewidth; j-- > 0;) {
                            ^
370. 			red = *inptr++ >> COLOR_SHIFT;
371. 			green = *inptr++ >> COLOR_SHIFT;
