Merge branch '8.11'

This commit is contained in:
John Cupitt 2021-09-13 15:00:21 +01:00
commit 1caad7f228
2 changed files with 5 additions and 2 deletions

View File

@ -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 );

View File

@ -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 );
}