[libpng16] Check that PNG_MAXIMUM_INFLATE_WINDOW is defined before using it.

This commit is contained in:
Glenn Randers-Pehrson 2013-05-07 23:16:06 -05:00
parent 0c7ac064d3
commit 62c6fbbd29

View File

@ -369,7 +369,8 @@ png_inflate_claim(png_structrp png_ptr, png_uint_32 owner)
int ret; /* zlib return code */
# if ZLIB_VERNUM >= 0x1240
# ifdef PNG_SET_OPTION_SUPPORTED
# if defined(PNG_SET_OPTION_SUPPORTED) && \
defined(PNG_MAXIMUM_INFLATE_WINDOW)
int window_bits;
if (((png_ptr->options >> PNG_MAXIMUM_INFLATE_WINDOW) & 3) ==