[libpng15] Revised the SAFE_LIMITS feature to be the same as the feature in

libpng16.  Added information about the new limits in the manual.
This commit is contained in:
Glenn Randers-Pehrson
2012-02-24 16:54:12 -06:00
parent b27c862b14
commit 65de519c4a
9 changed files with 94 additions and 92 deletions

View File

@@ -1,6 +1,6 @@
.TH LIBPNG 3 "February 24, 2012"
.SH NAME
libpng \- Portable Network Graphics (PNG) Reference Library 1.5.10beta02
libpng \- Portable Network Graphics (PNG) Reference Library 1.5.10beta01
.SH SYNOPSIS
\fI\fB
@@ -977,7 +977,7 @@ Following is a copy of the libpng-manual.txt file that accompanies libpng.
.SH LIBPNG.TXT
libpng-manual.txt - A description on how to use and modify libpng
libpng version 1.5.10beta02 - February 24, 2012
libpng version 1.5.10beta01 - February 24, 2012
Updated and distributed by Glenn Randers-Pehrson
<glennrp at users.sourceforge.net>
Copyright (c) 1998-2011 Glenn Randers-Pehrson
@@ -988,7 +988,7 @@ libpng-manual.txt - A description on how to use and modify libpng
Based on:
libpng versions 0.97, January 1998, through 1.5.10beta02 - February 24, 2012
libpng versions 0.97, January 1998, through 1.5.10beta01 - February 24, 2012
Updated and distributed by Glenn Randers-Pehrson
Copyright (c) 1998-2011 Glenn Randers-Pehrson
@@ -5239,11 +5239,10 @@ that it could be used to override them. Now this function will reduce or
increase the limits.
Starting in libpng-1.5.10, the user limits can be set en masse with the
configuration option PNG_SAFE_LIMITS. If this option is enabled, then
the limits in pnglibconf.h are ignored and a set of "safe" limits is
applied in pngconf.h. These can be overridden by application calls
to png_set_user_limits(), png_set_user_chunk_cache_max(), and/or
png_set_user_malloc_max() that increase or decrease the limits. Also,
configuration option PNG_SAFE_LIMITS_SUPPORTED. If this option is enabled,
a set of "safe" limits is applied in pngpriv.h. These can be overridden by
application calls to png_set_user_limits(), png_set_user_chunk_cache_max(),
and/or png_set_user_malloc_max() that increase or decrease the limits. Also,
in libpng-1.5.10 the default width and height limits were increased
from 1,000,000 to 0x7ffffff (i.e., made unlimited). Therefore, the
limits are now
@@ -5251,7 +5250,7 @@ limits are now
png_user_width_max 0x7fffffff 1,000,000
png_user_height_max 0x7fffffff 1,000,000
png_user_chunk_cache_max 0 (unlimited) 128
png_user_chunk_malloc_max 0 (unlimited) 4,000,000
png_user_chunk_malloc_max 0 (unlimited) 8,000,000
B. Changes to the build and configuration of libpng
@@ -5572,7 +5571,7 @@ Since the PNG Development group is an ad-hoc body, we can't make
an official declaration.
This is your unofficial assurance that libpng from version 0.71 and
upward through 1.5.10beta02 are Y2K compliant. It is my belief that earlier
upward through 1.5.10beta01 are Y2K compliant. It is my belief that earlier
versions were also Y2K compliant.
Libpng only has three year fields. One is a 2-byte unsigned integer that
@@ -5783,7 +5782,7 @@ the first widely used release:
1.5.9beta01-02 15 10509 15.so.15.9[.0]
1.5.9rc01 15 10509 15.so.15.9[.0]
1.5.9 15 10509 15.so.15.9[.0]
1.5.10beta01-02 15 10510 15.so.15.10[.0]
1.5.10beta01 15 10510 15.so.15.10[.0]
Henceforth the source version will match the shared-library minor
and patch numbers; the shared-library major version number will be
@@ -5840,7 +5839,7 @@ possible without all of you.
Thanks to Frank J. T. Wojcik for helping with the documentation.
Libpng version 1.5.10beta02 - February 24, 2012:
Libpng version 1.5.10beta01 - February 24, 2012:
Initially created in 1995 by Guy Eric Schalnat, then of Group 42, Inc.
Currently maintained by Glenn Randers-Pehrson (glennrp at users.sourceforge.net).
@@ -5863,7 +5862,7 @@ this sentence.
This code is released under the libpng license.
libpng versions 1.2.6, August 15, 2004, through 1.5.10beta02, February 24, 2012, are
libpng versions 1.2.6, August 15, 2004, through 1.5.10beta01, February 24, 2012, are
Copyright (c) 2004,2006-2007 Glenn Randers-Pehrson, and are
distributed according to the same disclaimer and license as libpng-1.2.5
with the following individual added to the list of Contributing Authors