From 687361928f16a28ea56e200d00e970e68173cc25 Mon Sep 17 00:00:00 2001 From: glennrp Date: Thu, 24 Jan 2013 06:32:08 +0000 Subject: [PATCH] Change text chunk limit to 32767 to be consistent with libpng-1.2. --- coders/png.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.50.1