error in header read

This commit is contained in:
John Cupitt 2013-09-17 21:23:13 +01:00
parent 1ef0eb6dc2
commit 2ab02af6e0
1 changed files with 3 additions and 1 deletions

View File

@ -536,7 +536,7 @@ vips__matrix_header( char *whitemap, FILE *fp,
return( -1 );
}
*width = header[0];
*height = header[0];
*height = header[1];
if( *width <= 0 ||
*width > 100000 ||
*height <= 0 ||
@ -652,6 +652,8 @@ vips__matrix_body( char *whitemap, VipsImage *out, FILE *fp )
}
*VIPS_MATRIX( out, x, y ) = d;
printf( "%d, %d = %g\n", x, y, d );
/* Deliberately don't check for line too long.
*/
}