From 716fbf75b14f87dcaab82646a6f6739eec34282a Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 2 Mar 2022 18:06:44 +0000 Subject: [PATCH] raise GIF save frame size limit --- libvips/foreign/cgifsave.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libvips/foreign/cgifsave.c b/libvips/foreign/cgifsave.c index 362332e4..584156b4 100644 --- a/libvips/foreign/cgifsave.c +++ b/libvips/foreign/cgifsave.c @@ -513,9 +513,7 @@ vips_foreign_save_cgif_build( VipsObject *object ) frame_rect.top = 0; frame_rect.width = cgif->in->Xsize; frame_rect.height = page_height; - if( (guint64) frame_rect.width * frame_rect.height > 2000 * 2000 ) { - /* RGBA sum may overflow a 32-bit uint. - */ + if( (guint64) frame_rect.width * frame_rect.height > 5000 * 5000 ) { vips_error( class->nickname, "%s", _( "frame too large" ) ); return( -1 ); }