tools/tiffcp.c:1108: error: Integer Overflow L2
  ([0, `cols`] - 1):unsigned32.

tools/tiffcp.c:1101:1: <LHS trace>
1099. }
1100. 
1101. static void
      ^
1102. cpSeparateBufToContigBuf(uint8* out, uint8* in,
1103.     uint32 rows, uint32 cols, int outskew, int inskew, tsample_t spp,

tools/tiffcp.c:1101:1: Parameter `cols`
1099. }
1100. 
1101. static void
      ^
1102. cpSeparateBufToContigBuf(uint8* out, uint8* in,
1103.     uint32 rows, uint32 cols, int outskew, int inskew, tsample_t spp,

tools/tiffcp.c:1107:3: Assignment
1105. {
1106. 	while (rows-- > 0) {
1107. 		uint32 j = cols;
        ^
1108. 		while (j-- > 0) {
1109. 			int n = bytes_per_sample;

tools/tiffcp.c:1108:10: Binary operation: ([0, cols] - 1):unsigned32
1106. 	while (rows-- > 0) {
1107. 		uint32 j = cols;
1108. 		while (j-- > 0) {
               ^
1109. 			int n = bytes_per_sample;
1110. 

static void
cpSeparateBufToContigBuf(uint8* out, uint8* in,
    uint32 rows, uint32 cols, int outskew, int inskew, tsample_t spp,
    int bytes_per_sample)
{
	while (rows-- > 0) {
		uint32 j = cols;
		while (j-- > 0) {
			int n = bytes_per_sample;
			while( n-- ) {
				*out++ = *in++;
			}
			out += (spp-1)*bytes_per_sample;
		}
		out += outskew;
		in += inskew;
	}
}
['static void\ncpSeparateBufToContigBuf(uint8* out, uint8* in,\n    uint32 rows, uint32 cols, int outskew, int inskew, tsample_t spp,\n    int bytes_per_sample)\n{\n\twhile (rows-- > 0) {\n\t\tuint32 j = cols;\n\t\twhile (j-- > 0) {\n\t\t\tint n = bytes_per_sample;\n\t\t\twhile( n-- ) {\n\t\t\t\t*out++ = *in++;\n\t\t\t}\n\t\t\tout += (spp-1)*bytes_per_sample;\n\t\t}\n\t\tout += outskew;\n\t\tin += inskew;\n\t}\n}']