Merge branch '8.11'
This commit is contained in:
commit
1caad7f228
@ -45,7 +45,9 @@ extern "C" {
|
||||
)
|
||||
#endif /*HAVE_CHECKED_MUL*/
|
||||
|
||||
#define MAX_PNG_TEXT_CHUNKS 20
|
||||
/* We've seen real images with 28 chunks, so set 50.
|
||||
*/
|
||||
#define MAX_PNG_TEXT_CHUNKS 50
|
||||
|
||||
void vips__tiff_init( void );
|
||||
|
||||
|
@ -573,7 +573,8 @@ png2vips_header( Read *read, VipsImage *out )
|
||||
if( !read->unlimited &&
|
||||
num_text > MAX_PNG_TEXT_CHUNKS ) {
|
||||
vips_error( "vipspng",
|
||||
"%s", _( "too many text chunks" ) );
|
||||
_( "%d text chunks, image blocked" ),
|
||||
num_text );
|
||||
return( -1 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user