allow tiffs with >1000 pages

all sanity checks run out eventually :(
This commit is contained in:
John Cupitt 2014-10-09 14:11:21 +01:00
parent 3d4eecf921
commit b029188408
1 changed files with 1 additions and 1 deletions

View File

@ -1672,7 +1672,7 @@ readtiff_new( VipsImage *out, int page, gboolean readbehind )
g_signal_connect( out, "close",
G_CALLBACK( readtiff_destroy ), rtiff );
if( rtiff->page < 0 || rtiff->page > 1000 ) {
if( rtiff->page < 0 || rtiff->page > 1000000 ) {
vips_error( "tiff2vips", _( "bad page number %d" ),
rtiff->page );
return( NULL );