[libpng16] Added PNG_SECURE feature to pnglibconf.dfa and new pngusr.dfa file

to reset the user limits to safe ones if PNG_SECURE is defined.
This commit is contained in:
Glenn Randers-Pehrson
2012-02-23 18:41:13 -06:00
parent 17ba5de88f
commit 10c0693210
6 changed files with 34 additions and 13 deletions

16
pngusr.dfa Normal file
View File

@@ -0,0 +1,16 @@
# pngusr.dfa
#
# Build time configuration of libpng
#
# Enter build configuration options in this file
#
# Security settings: by default these limits are unset, you can change them
# here by entering the appropriate values as #defines preceded by '@' (to cause
# them to be passed through to the build of pnglibconf.h)
@#ifdef PNG_SECURE
@ /* Relatively secure values */
@# define PNG_USER_WIDTH_MAX 1000000
@# define PNG_USER_HEIGHT_MAX 1000000
@# define PNG_USER_CHUNK_CACHE_MAX 128
@# define PNG_USER_CHUNK_MALLOC_MAX 8000000
@#endif