[libpng15] Added PNG_SAFE_LIMITS feature to pnglibconf.dfa

and code in pngconf.h to reset the user limits to safe ones if
PNG_SAFE_LIMITS is defined.
This commit is contained in:
Glenn Randers-Pehrson
2012-02-23 17:43:33 -06:00
parent d57dc304c4
commit 8ae616fa97
5 changed files with 38 additions and 10 deletions

View File

@@ -260,6 +260,9 @@ option USER_LIMITS
option SET_USER_LIMITS requires USER_LIMITS
# Added at libpng-1.5.10
option SAFE_LIMITS requires USER_LIMITS
# Feature added at libpng-1.4.0, this flag added at 1.4.1
option SET_USER_LIMITS enables SET_CHUNK_CACHE_LIMIT
# Feature added at libpng-1.4.1, this flag added at 1.4.1
@@ -269,8 +272,8 @@ option SET_USER_LIMITS enables SET_CHUNK_MALLOC_LIMIT
# Added at libpng-1.0.16 and 1.2.6. To accept all valid PNGs no matter
# how large, set these two limits to 0x7fffffff
setting USER_WIDTH_MAX default 1000000
setting USER_HEIGHT_MAX default 1000000
setting USER_WIDTH_MAX default 0x7fffffff
setting USER_HEIGHT_MAX default 0x7fffffff
# Added at libpng-1.2.43. To accept all valid PNGs no matter
# how large, set these two limits to 0.

View File

@@ -3,7 +3,7 @@
/* pnglibconf.h - library build configuration */
/* Libpng 1.5.10beta01 - February 19, 2012 */
/* Libpng 1.5.10beta01 - February 23, 2012 */
/* Copyright (c) 1998-2011 Glenn Randers-Pehrson */