]> granicus.if.org Git - imagemagick/commitdiff
Change text chunk limit to 32767 to be consistent with libpng-1.2.
authorglennrp <glennrp@git.imagemagick.org>
Thu, 24 Jan 2013 06:32:08 +0000 (06:32 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Thu, 24 Jan 2013 06:32:08 +0000 (06:32 +0000)
coders/png.c

index e5527cae2a021d1be964ec627d7800c893f30d16..a9bcead1648b2681e8631c7b49550d351ae7cc09 100644 (file)
@@ -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