mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Added a needed #ifdef/#endif pair.
This commit is contained in:
parent
9dba7219a0
commit
cb10e19725
2
pngmem.c
2
pngmem.c
@ -155,10 +155,12 @@ png_realloc_array,(png_structrp png_ptr, png_const_voidp old_array,
|
||||
}
|
||||
|
||||
#ifdef PNG_READ_SUPPORTED
|
||||
# ifdef PNG_USER_LIMITS_SUPPORTED
|
||||
/* The potential overflow case. Set the cache counter so libpng will
|
||||
* not make any more attempts
|
||||
*/
|
||||
png_ptr->user_chunk_cache_max = 2;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
return NULL; /* error */
|
||||
|
Loading…
x
Reference in New Issue
Block a user