Hello community, here is the log from the commit of package optipng for openSUSE:Factory checked in at 2012-11-28 16:19:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/optipng (Old) and /work/SRC/openSUSE:Factory/.optipng.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "optipng", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:Factory/optipng/optipng.changes 2012-09-25 10:44:23.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.optipng.new/optipng.changes 2012-11-28 16:19:22.000000000 +0100 @@ -1,0 +2,7 @@ +Tue Nov 20 12:24:53 UTC 2012 - [email protected] + +- updated to 0.7.4: + !! Fixed the previous fix, which failed to fix the option -fix. + (Thanks to Gynvael Coldwind and Mateusz Jurczyk for the report.) + +------------------------------------------------------------------- Old: ---- optipng-0.7.3.tar.gz New: ---- optipng-0.7.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ optipng.spec ++++++ --- /var/tmp/diff_new_pack.Y7cUpz/_old 2012-11-28 16:19:24.000000000 +0100 +++ /var/tmp/diff_new_pack.Y7cUpz/_new 2012-11-28 16:19:24.000000000 +0100 @@ -21,7 +21,7 @@ Summary: A PNG File Compressor License: Zlib Group: Productivity/Archiving/Compression -Version: 0.7.3 +Version: 0.7.4 Release: 0 Url: http://optipng.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ optipng-0.7.3.tar.gz -> optipng-0.7.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/optipng-0.7.3/AUTHORS.txt new/optipng-0.7.4/AUTHORS.txt --- old/optipng-0.7.3/AUTHORS.txt 2012-09-16 16:16:00.000000000 +0200 +++ new/optipng-0.7.4/AUTHORS.txt 2012-10-22 03:41:00.000000000 +0200 @@ -1,4 +1,4 @@ -# OptiPNG version 0.7.3 +# OptiPNG version 0.7.4 # Copyright (C) 2001-2012 Cosmin Truta and the Contributing Authors. # See the accompanying LICENSE file for details. # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/optipng-0.7.3/README.txt new/optipng-0.7.4/README.txt --- old/optipng-0.7.3/README.txt 2012-09-16 16:16:00.000000000 +0200 +++ new/optipng-0.7.4/README.txt 2012-10-22 03:41:00.000000000 +0200 @@ -1,5 +1,5 @@ -OptiPNG 0.7.3: Advanced PNG optimizer. +OptiPNG 0.7.4: Advanced PNG optimizer. Copyright (C) 2001-2012 Cosmin Truta. ====================================== @@ -23,14 +23,14 @@ Build instructions ------------------ On Unix, or under a Bourne-compatible shell, run ./configure and make: - cd optipng-0.7.3/ + cd optipng-0.7.4/ ./configure make make test Alternatively, use a pre-configured makefile that matches your compiler; e.g.: - cd optipng-0.7.3/ + cd optipng-0.7.4/ nmake -f build/visualc.mk nmake -f build/visualc.mk test diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/optipng-0.7.3/doc/history.txt new/optipng-0.7.4/doc/history.txt --- old/optipng-0.7.3/doc/history.txt 2012-09-16 16:16:00.000000000 +0200 +++ new/optipng-0.7.4/doc/history.txt 2012-10-22 03:41:00.000000000 +0200 @@ -13,6 +13,11 @@ (crash, data/metadata loss or security hazard). * Other modification (e.g. architectural improvement). +Version 0.7.4 21-oct-2012 +------------- +!! Fixed the previous fix, which failed to fix the option -fix. + (Thanks to Gynvael Coldwind and Mateusz Jurczyk for the report.) + Version 0.7.3 16-sep-2012 ------------- !! Fixed a use-after-free vulnerability in the palette reduction code. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/optipng-0.7.3/doc/optipng.man.html new/optipng-0.7.4/doc/optipng.man.html --- old/optipng-0.7.3/doc/optipng.man.html 2012-09-16 16:16:00.000000000 +0200 +++ new/optipng-0.7.4/doc/optipng.man.html 2012-10-22 03:41:00.000000000 +0200 @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.21 --> -<!-- CreationDate: Sun Sep 16 10:16:00 2012 --> +<!-- CreationDate: Sun Oct 21 21:41:00 2012 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> Files old/optipng-0.7.3/doc/optipng.man.pdf and new/optipng-0.7.4/doc/optipng.man.pdf differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/optipng-0.7.3/doc/optipng.man.txt new/optipng-0.7.4/doc/optipng.man.txt --- old/optipng-0.7.3/doc/optipng.man.txt 2012-09-16 16:16:00.000000000 +0200 +++ new/optipng-0.7.4/doc/optipng.man.txt 2012-10-22 03:41:00.000000000 +0200 @@ -295,4 +295,4 @@ the Debian Project. It was later updated by Cosmin Truta, and is now part of the OptiPNG distribution. -OptiPNG version 0.7.3 2012-Sep-16 OPTIPNG(1) +OptiPNG version 0.7.4 2012-Oct-21 OPTIPNG(1) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/optipng-0.7.3/src/opngreduc/opngreduc.c new/optipng-0.7.4/src/opngreduc/opngreduc.c --- old/optipng-0.7.3/src/opngreduc/opngreduc.c 2012-09-16 16:16:00.000000000 +0200 +++ new/optipng-0.7.4/src/opngreduc/opngreduc.c 2012-10-22 03:41:00.000000000 +0200 @@ -1096,6 +1096,8 @@ opng_debug(1, "in opng_reduce_palette"); + result = OPNG_REDUCE_NONE; + png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, &interlace_type, &compression_type, &filter_type); row_ptr = png_get_rows(png_ptr, info_ptr); @@ -1139,11 +1141,13 @@ opng_realloc_PLTE(png_ptr, info_ptr, last_color_index + 1); png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette); OPNG_ASSERT(num_palette == last_color_index + 1); + result |= OPNG_REDUCE_REPAIR; } if (num_trans > num_palette) { png_warning(png_ptr, "Too many alpha values in tRNS"); /* Transparency will be fixed further below. */ + result |= OPNG_REDUCE_REPAIR; } /* Check if tRNS can be reduced to grayscale. */ @@ -1177,16 +1181,13 @@ } } - /* Initialize result value. */ - result = OPNG_REDUCE_NONE; - /* Remove tRNS if it is entirely sterile. */ if (num_trans > 0 && last_trans_index < 0) { num_trans = 0; png_free_data(png_ptr, info_ptr, PNG_FREE_TRNS, -1); png_set_invalid(png_ptr, info_ptr, PNG_INFO_tRNS); - result = OPNG_REDUCE_PALETTE_FAST; + result |= OPNG_REDUCE_PALETTE_FAST; } if (reductions & OPNG_REDUCE_PALETTE_FAST) @@ -1198,7 +1199,7 @@ opng_realloc_PLTE(png_ptr, info_ptr, last_color_index + 1); png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette); OPNG_ASSERT(num_palette == last_color_index + 1); - result = OPNG_REDUCE_PALETTE_FAST; + result |= OPNG_REDUCE_PALETTE_FAST; } if (num_trans > 0 && num_trans != last_trans_index + 1) @@ -1207,7 +1208,7 @@ opng_realloc_tRNS(png_ptr, info_ptr, last_trans_index + 1); png_get_tRNS(png_ptr, info_ptr, &trans_alpha, &num_trans, NULL); OPNG_ASSERT(num_trans == last_trans_index + 1); - result = OPNG_REDUCE_PALETTE_FAST; + result |= OPNG_REDUCE_PALETTE_FAST; } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/optipng-0.7.3/src/opngreduc/opngreduc.h new/optipng-0.7.4/src/opngreduc/opngreduc.h --- old/optipng-0.7.3/src/opngreduc/opngreduc.h 2012-09-16 16:16:00.000000000 +0200 +++ new/optipng-0.7.4/src/opngreduc/opngreduc.h 2012-10-22 03:41:00.000000000 +0200 @@ -71,7 +71,8 @@ and reorder PLTE */ #define OPNG_REDUCE_PALETTE_FAST 0x0200 /* remove trailing sterile entries only; do not reorder PLTE */ -#define OPNG_REDUCE_ANCILLARY 0x1000 /* TODO */ +#define OPNG_REDUCE_METADATA 0x1000 /* TODO */ +#define OPNG_REDUCE_REPAIR 0x2000 /* repair broken image data */ #define OPNG_REDUCE_BIT_DEPTH \ (OPNG_REDUCE_16_TO_8 | OPNG_REDUCE_8_TO_4_2_1) @@ -86,7 +87,7 @@ #define OPNG_REDUCE_ALL \ (OPNG_REDUCE_BIT_DEPTH | OPNG_REDUCE_COLOR_TYPE | \ - OPNG_REDUCE_PALETTE | OPNG_REDUCE_ANCILLARY) + OPNG_REDUCE_PALETTE | OPNG_REDUCE_METADATA) #endif /* OPNG_IMAGE_REDUCTIONS_SUPPORTED */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/optipng-0.7.3/src/optipng/man/optipng.1 new/optipng-0.7.4/src/optipng/man/optipng.1 --- old/optipng-0.7.3/src/optipng/man/optipng.1 2012-09-16 16:16:00.000000000 +0200 +++ new/optipng-0.7.4/src/optipng/man/optipng.1 2012-10-22 03:41:00.000000000 +0200 @@ -1,4 +1,4 @@ -.TH OPTIPNG 1 "2012-Sep-16" "OptiPNG version 0.7.3" +.TH OPTIPNG 1 "2012-Oct-21" "OptiPNG version 0.7.4" .SH NAME .B OptiPNG diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/optipng-0.7.3/src/optipng/optim.c new/optipng-0.7.4/src/optipng/optim.c --- old/optipng-0.7.3/src/optipng/optim.c 2012-08-25 02:12:00.000000000 +0200 +++ new/optipng-0.7.4/src/optipng/optim.c 2012-10-22 03:41:00.000000000 +0200 @@ -1032,7 +1032,7 @@ usr_printf("\n"); /* Choose the applicable image reductions. */ - reductions = OPNG_REDUCE_ALL & ~OPNG_REDUCE_ANCILLARY; + reductions = OPNG_REDUCE_ALL & ~OPNG_REDUCE_METADATA; if (options.nb) reductions &= ~OPNG_REDUCE_BIT_DEPTH; if (options.nc) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/optipng-0.7.3/src/optipng/proginfo.h new/optipng-0.7.4/src/optipng/proginfo.h --- old/optipng-0.7.3/src/optipng/proginfo.h 2012-09-16 16:16:00.000000000 +0200 +++ new/optipng-0.7.4/src/optipng/proginfo.h 2012-10-22 03:41:00.000000000 +0200 @@ -16,7 +16,7 @@ #define PROGRAM_SUMMARY \ "Portable Network Graphics optimizer" #define PROGRAM_VERSION \ - "0.7.3" + "0.7.4" #define PROGRAM_COPYRIGHT \ "Copyright (C) 2001-2012 Cosmin Truta and the Contributing Authors" #define PROGRAM_URI \ -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
