From 6b53a5ed7ba7d50616f1abeb995b76cd7a23e301 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Wed, 2 Aug 2017 19:58:31 -0500 Subject: [PATCH] [libpng16] Update manpage about user malloc_max limit --- libpng-manual.txt | 5 +++-- libpng.3 | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libpng-manual.txt b/libpng-manual.txt index 27a70f121..aad270910 100644 --- a/libpng-manual.txt +++ b/libpng-manual.txt @@ -688,8 +688,9 @@ where 0x7fffffffL means unlimited. You can retrieve this limit with chunk_cache_max = png_get_chunk_cache_max(png_ptr); Libpng imposes a limit of 8 Megabytes (8,000,000 bytes) on the amount of -memory that a compressed chunk other than IDAT can occupy, when decompressed. -You can change this limit with +memory that any chunk other than IDAT can occupy, originally or when +decompressed (prior to libpng-1.6.32 the limit was only applied to compressed +chunks after decompression). You can change this limit with png_set_chunk_malloc_max(png_ptr, user_chunk_malloc_max); diff --git a/libpng.3 b/libpng.3 index 5c30ded1f..af637da61 100644 --- a/libpng.3 +++ b/libpng.3 @@ -1202,8 +1202,9 @@ where 0x7fffffffL means unlimited. You can retrieve this limit with chunk_cache_max = png_get_chunk_cache_max(png_ptr); Libpng imposes a limit of 8 Megabytes (8,000,000 bytes) on the amount of -memory that a compressed chunk other than IDAT can occupy, when decompressed. -You can change this limit with +memory that any chunk other than IDAT can occupy, originally or when +decompressed (prior to libpng-1.6.32 the limit was only applied to compressed +chunks after decompression). You can change this limit with png_set_chunk_malloc_max(png_ptr, user_chunk_malloc_max);