From 62c6fbbd295ee3391d28a71606b623c8e11668d3 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Tue, 7 May 2013 23:16:06 -0500 Subject: [PATCH] [libpng16] Check that PNG_MAXIMUM_INFLATE_WINDOW is defined before using it. --- pngrutil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pngrutil.c b/pngrutil.c index 4e84b0ebd..ba50d6ecb 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -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) ==