allow tiffs with >1000 pages
all sanity checks run out eventually :(
This commit is contained in:
parent
3d4eecf921
commit
b029188408
@ -1672,7 +1672,7 @@ readtiff_new( VipsImage *out, int page, gboolean readbehind )
|
|||||||
g_signal_connect( out, "close",
|
g_signal_connect( out, "close",
|
||||||
G_CALLBACK( readtiff_destroy ), rtiff );
|
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" ),
|
vips_error( "tiff2vips", _( "bad page number %d" ),
|
||||||
rtiff->page );
|
rtiff->page );
|
||||||
return( NULL );
|
return( NULL );
|
||||||
|
Loading…
Reference in New Issue
Block a user