diff --git a/ANNOUNCE b/ANNOUNCE index 37031e3b3..0ad6092bc 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -1,5 +1,5 @@ -Libpng 1.7.0beta84 - September 12, 2016 +Libpng 1.7.0beta84 - September 19, 2016 This is not intended to be a public release. It will be replaced within a few weeks by a public version or by another test version. @@ -1396,12 +1396,13 @@ Version 1.7.0beta83 [July 23, 2016] in reading. Fixed debug test of output gamma. -Version 1.7.0beta84 [September 12, 2016] +Version 1.7.0beta84 [September 19, 2016] Minor editing of INSTALL, (whitespace, added copyright line) Don't install pngcp; it conflicts with pngcp in the pngtools package. Fixed handling zero length IDAT in pngfix (bug report by Agostino Sarubbo, bugfix by John Bowler). - Conditionally compile png_set_benign_errors() in pngread.c + Conditionally compile png_set_benign_errors() in pngread.c and pngtest.c + Changed PNG_ZLIB_VERNUM to ZLIB_VERNUM in pngrutil.c. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index 8cec28044..0640c994f 100644 --- a/CHANGES +++ b/CHANGES @@ -5696,12 +5696,13 @@ Version 1.7.0beta83 [July 23, 2016] in reading. Fixed debug test of output gamma. -Version 1.7.0beta84 [September 12, 2016] +Version 1.7.0beta84 [September 19, 2016] Minor editing of INSTALL, (whitespace, added copyright line) Don't install pngcp; it conflicts with pngcp in the pngtools package. Fixed handling zero length IDAT in pngfix (bug report by Agostino Sarubbo, bugfix by John Bowler). - Conditionally compile png_set_benign_errors() in pngread.c + Conditionally compile png_set_benign_errors() in pngread.c and pngtest.c + Changed PNG_ZLIB_VERNUM to ZLIB_VERNUM in pngrutil.c. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/pngrutil.c b/pngrutil.c index 7aad096b6..b29bf2007 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -283,7 +283,7 @@ png_inflate_claim(png_structrp png_ptr, png_uint_32 owner) */ { int ret; /* zlib return code */ -# if PNG_ZLIB_VERNUM >= 0x1240 +# if ZLIB_VERNUM >= 0x1240 # if defined(PNG_SET_OPTION_SUPPORTED) && \ defined(PNG_MAXIMUM_INFLATE_WINDOW) @@ -317,7 +317,7 @@ png_inflate_claim(png_structrp png_ptr, png_uint_32 owner) */ if (png_ptr->zstream.state != NULL) { -# if PNG_ZLIB_VERNUM < 0x1240 +# if ZLIB_VERNUM < 0x1240 ret = inflateReset(&png_ptr->zstream); # else ret = inflateReset2(&png_ptr->zstream, window_bits); @@ -326,7 +326,7 @@ png_inflate_claim(png_structrp png_ptr, png_uint_32 owner) else { -# if PNG_ZLIB_VERNUM < 0x1240 +# if ZLIB_VERNUM < 0x1240 ret = inflateInit(&png_ptr->zstream); # else ret = inflateInit2(&png_ptr->zstream, window_bits); diff --git a/pngtest.c b/pngtest.c index c03b9d7cf..9bde30d83 100644 --- a/pngtest.c +++ b/pngtest.c @@ -964,15 +964,16 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname) #endif #endif +#ifdef PNG_BENIGN_ERRORS_SUPPORTED if (strict != 0) { /* Treat png_benign_error() as errors on read */ png_set_benign_errors(read_ptr, 0); -#ifdef PNG_WRITE_SUPPORTED +# ifdef PNG_WRITE_SUPPORTED /* Treat them as errors on write */ png_set_benign_errors(write_ptr, 0); -#endif +# endif /* if strict is not set, then app warnings and errors are treated as * warnings in release builds, but not in unstable builds; this can be @@ -985,10 +986,11 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname) /* Allow application (pngtest) errors and warnings to pass */ png_set_benign_errors(read_ptr, 1); -#ifdef PNG_WRITE_SUPPORTED +# ifdef PNG_WRITE_SUPPORTED png_set_benign_errors(write_ptr, 1); -#endif +# endif } +#endif /* BENIGN_ERRORS */ pngtest_debug("Initializing input and output streams"); #ifdef PNG_STDIO_SUPPORTED