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:
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_READ_SUPPORTED
|
||||||
|
# ifdef PNG_USER_LIMITS_SUPPORTED
|
||||||
/* The potential overflow case. Set the cache counter so libpng will
|
/* The potential overflow case. Set the cache counter so libpng will
|
||||||
* not make any more attempts
|
* not make any more attempts
|
||||||
*/
|
*/
|
||||||
png_ptr->user_chunk_cache_max = 2;
|
png_ptr->user_chunk_cache_max = 2;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return NULL; /* error */
|
return NULL; /* error */
|
||||||
|
|||||||
Reference in New Issue
Block a user