mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[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:
16
pngusr.dfa
Normal file
16
pngusr.dfa
Normal 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
|
||||
Reference in New Issue
Block a user