From: glennrp Date: Thu, 24 Jan 2013 06:32:08 +0000 (+0000) Subject: Change text chunk limit to 32767 to be consistent with libpng-1.2. X-Git-Tag: 7.0.1-0~4365 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=687361928f16a28ea56e200d00e970e68173cc25;p=imagemagick Change text chunk limit to 32767 to be consistent with libpng-1.2. --- diff --git a/coders/png.c b/coders/png.c index e5527cae2..a9bcead16 100644 --- a/coders/png.c +++ b/coders/png.c @@ -2290,9 +2290,9 @@ static Image *ReadOnePNGImage(MngInfo *mng_info, #ifdef PNG_SET_USER_LIMITS_SUPPORTED # if (PNG_LIBPNG_VER >= 10400) /* Limit the size of the chunk storage cache used for sPLT, text, - * and unknown chunks, and for expansion of iTXt, zTXt, and iCCP chunks. + * and unknown chunks. */ - png_set_chunk_cache_max(ping, 65536); + png_set_chunk_cache_max(ping, 32767); # endif #endif