Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gifsicle for openSUSE:Factory checked in at 2021-07-02 13:27:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gifsicle (Old) and /work/SRC/openSUSE:Factory/.gifsicle.new.2625 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gifsicle" Fri Jul 2 13:27:55 2021 rev:11 rq:903580 version:1.93 Changes: -------- --- /work/SRC/openSUSE:Factory/gifsicle/gifsicle.changes 2020-08-15 21:20:53.439640817 +0200 +++ /work/SRC/openSUSE:Factory/.gifsicle.new.2625/gifsicle.changes 2021-07-02 13:28:57.844063686 +0200 @@ -1,0 +2,9 @@ +Wed Jun 30 08:14:58 UTC 2021 - Manfred Schwarb <[email protected]> + +- re-introduce make_build macro, as SLE targets are disabled now per default + for the graphics project +- Update to version 1.93: + * Fix security bug on certain resize operations with `--resize-method=box` + * Fix problems with colormapless GIFs. + +------------------------------------------------------------------- Old: ---- gifsicle-1.92.tar.gz New: ---- gifsicle-1.93.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gifsicle.spec ++++++ --- /var/tmp/diff_new_pack.p4MRb4/_old 2021-07-02 13:28:58.280060303 +0200 +++ /var/tmp/diff_new_pack.p4MRb4/_new 2021-07-02 13:28:58.284060272 +0200 @@ -1,7 +1,7 @@ # # spec file for package gifsicle # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: gifsicle -Version: 1.92 +Version: 1.93 Release: 0 Summary: Creating and editing GIF images and animations License: GPL-2.0-only @@ -55,10 +55,10 @@ %build %configure -make %{?_smp_mflags} +%make_build %check -make %{?_smp_mflags} check +%make_build check %install %make_install ++++++ gifsicle-1.92.tar.gz -> gifsicle-1.93.tar.gz ++++++ ++++ 8700 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/NEWS.md new/gifsicle-1.93/NEWS.md --- old/gifsicle-1.92/NEWS.md 2019-04-18 22:05:27.000000000 +0200 +++ new/gifsicle-1.93/NEWS.md 2021-06-30 06:35:12.000000000 +0200 @@ -1,6 +1,13 @@ Gifsicle NEWS ============= +## Version 1.93 ??? 30.Jun.2021 + +* Fix security bug on certain resize operations with `--resize-method=box`. + +* Fix problems with colormapless GIFs. + + ## Version 1.92 ??? 18.Apr.2019 * Add `--lossy` option from Kornel Lipi??ski. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/README.md new/gifsicle-1.93/README.md --- old/gifsicle-1.92/README.md 2019-04-18 22:02:08.000000000 +0200 +++ new/gifsicle-1.93/README.md 2021-06-30 06:30:49.000000000 +0200 @@ -2,7 +2,7 @@ Gifsicle ======== -[](https://travis-ci.org/kohler/gifsicle) +[](https://travis-ci.com/kohler/gifsicle) Gifsicle manipulates GIF image files. Depending on command line options, it can merge several GIFs into a GIF animation; explode an @@ -86,7 +86,7 @@ Copyright/License ----------------- -All source code is Copyright (C) 1997-2019 Eddie Kohler. +All source code is Copyright (C) 1997-2021 Eddie Kohler. IF YOU PLAN TO USE GIFSICLE ONLY TO CREATE OR MODIFY GIF IMAGES, DON'T WORRY ABOUT THE REST OF THIS SECTION. Anyone can use Gifsicle however diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/compile new/gifsicle-1.93/compile --- old/gifsicle-1.92/compile 2014-03-05 17:53:40.000000000 +0100 +++ new/gifsicle-1.93/compile 2021-06-30 04:38:11.000000000 +0200 @@ -1,9 +1,9 @@ #! /bin/sh # Wrapper for compilers which do not understand '-c -o'. -scriptversion=2012-10-14.11; # UTC +scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1999-2013 Free Software Foundation, Inc. +# Copyright (C) 1999-2020 Free Software Foundation, Inc. # Written by Tom Tromey <[email protected]>. # # This program is free software; you can redistribute it and/or modify @@ -17,7 +17,7 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -53,7 +53,7 @@ MINGW*) file_conv=mingw ;; - CYGWIN*) + CYGWIN* | MSYS*) file_conv=cygwin ;; *) @@ -67,7 +67,7 @@ mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; - cygwin/*) + cygwin/* | msys/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) @@ -255,7 +255,8 @@ echo "compile $scriptversion" exit $? ;; - cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) + cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ + icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac @@ -339,9 +340,9 @@ # Local Variables: # mode: shell-script # sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) +# eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" +# time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/config.h.in new/gifsicle-1.93/config.h.in --- old/gifsicle-1.92/config.h.in 2019-04-18 22:03:01.000000000 +0200 +++ new/gifsicle-1.93/config.h.in 2021-06-30 06:30:24.000000000 +0200 @@ -21,9 +21,6 @@ /* Define to 1 if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H -/* Define to 1 if you have the <memory.h> header file. */ -#undef HAVE_MEMORY_H - /* Define to 1 if you have the `mkstemp' function. */ #undef HAVE_MKSTEMP @@ -36,6 +33,9 @@ /* Define to 1 if you have the <stdint.h> header file. */ #undef HAVE_STDINT_H +/* Define to 1 if you have the <stdio.h> header file. */ +#undef HAVE_STDIO_H + /* Define to 1 if you have the <stdlib.h> header file. */ #undef HAVE_STDLIB_H @@ -129,7 +129,9 @@ /* The size of `void *', as computed by sizeof. */ #undef SIZEOF_VOID_P -/* Define to 1 if you have the ANSI C header files. */ +/* Define to 1 if all of the C90 standard headers exist (not just the ones + required in a freestanding environment). This macro is provided for + backward compatibility; new code need not use it. */ #undef STDC_HEADERS /* Version number of package */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/configure.ac new/gifsicle-1.93/configure.ac --- old/gifsicle-1.92/configure.ac 2019-04-18 22:02:35.000000000 +0200 +++ new/gifsicle-1.93/configure.ac 2021-06-30 06:30:18.000000000 +0200 @@ -1,7 +1,9 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT([gifsicle], [1.92]) +AC_INIT([gifsicle], [1.93]) +AC_PREREQ(2.60) AC_CONFIG_SRCDIR([src/gifsicle.h]) AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_FILES([Makefile src/Makefile]) AM_INIT_AUTOMAKE ac_user_cc=${CC+y} @@ -109,9 +111,9 @@ elif test -r $srcdir/src/gifwrite.c ; then GIFWRITE_O=gifwrite.o else - AC_MSG_ERROR(This version of gifsicle cannot create compressed GIFs. -*** Either reconfigure with the \`--enable-ungif' option or download the -*** version with compression from http://www.lcdf.org/gifsicle/) + AC_MSG_ERROR([This version of gifsicle cannot create compressed GIFs. +*** Either reconfigure with the '--enable-ungif' option or download the +*** version with compression from http://www.lcdf.org/gifsicle/]) fi AC_SUBST(GIFWRITE_O) @@ -307,4 +309,4 @@ dnl Output dnl -AC_OUTPUT(Makefile src/Makefile) +AC_OUTPUT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/gifdiff.1 new/gifsicle-1.93/gifdiff.1 --- old/gifsicle-1.92/gifdiff.1 2019-04-18 22:05:32.000000000 +0200 +++ new/gifsicle-1.93/gifdiff.1 2021-06-30 06:30:36.000000000 +0200 @@ -1,5 +1,5 @@ .\" -*- mode: nroff -*- -.ds V 1.92 +.ds V 1.93 .ds E " \-\- .if t .ds E \(em .de Op diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/gifsicle.1 new/gifsicle-1.93/gifsicle.1 --- old/gifsicle-1.92/gifsicle.1 2019-04-18 22:05:32.000000000 +0200 +++ new/gifsicle-1.93/gifsicle.1 2021-06-30 06:30:36.000000000 +0200 @@ -1,6 +1,6 @@ .\" -*- mode: nroff -*- .AM -.ds V 1.92 +.ds V 1.93 .ds E " \-\- .if t .ds E \(em .de Op @@ -800,7 +800,7 @@ .TP .Op \-\-optimize "[=\fIlevel\fR]" ' -Optimize output GIF animations for space. +Attempt to shrink the file sizes of GIF animations. .I Level determines how much optimization is done; higher levels take longer, but may have better results. There are currently three levels: @@ -808,10 +808,10 @@ .RS .TP 5 .Op \-O1 -Stores only the changed portion of each image. This is the default. +Store only the changed portion of each image. This is the default. .TP 5 .Op \-O2 -Also uses transparency to shrink the file further. +Store only the changed portion of each image, and use transparency. .TP 5 .Op \-O3 Try several optimization methods (usually slower, sometimes better results). @@ -829,6 +829,11 @@ .Op \-\-lossy , and .Op \-\-no\-extensions . +Note that +.Op \-O +does not guarantee to shrink file size, and in rare cases, even +.Op \-O3 +may actually enlarge file size. .RE ' .Sp diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/gifview.1 new/gifsicle-1.93/gifview.1 --- old/gifsicle-1.92/gifview.1 2019-04-18 22:05:32.000000000 +0200 +++ new/gifsicle-1.93/gifview.1 2021-06-30 06:30:36.000000000 +0200 @@ -1,5 +1,5 @@ .\" -*- mode: nroff -*- -.ds V 1.92 +.ds V 1.93 .ds E " \-\- .if t .ds E \(em .de Op diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/include/lcdf/clp.h new/gifsicle-1.93/include/lcdf/clp.h --- old/gifsicle-1.92/include/lcdf/clp.h 2017-07-11 21:11:55.000000000 +0200 +++ new/gifsicle-1.93/include/lcdf/clp.h 2021-06-30 06:32:50.000000000 +0200 @@ -8,7 +8,7 @@ /* clp.h - Public interface to CLP. * This file is part of CLP, the command line parser package. * - * Copyright (c) 1997-2017 Eddie Kohler, [email protected] + * Copyright (c) 1997-2021 Eddie Kohler, [email protected] * * CLP is free software. It is distributed under the GNU General Public * License, Version 2, or, alternatively and at your discretion, under the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/include/lcdfgif/gif.h new/gifsicle-1.93/include/lcdfgif/gif.h --- old/gifsicle-1.92/include/lcdfgif/gif.h 2019-04-18 20:01:49.000000000 +0200 +++ new/gifsicle-1.93/include/lcdfgif/gif.h 2021-06-30 06:32:55.000000000 +0200 @@ -1,5 +1,5 @@ /* gif.h - Interface to the LCDF GIF library. - Copyright (C) 1997-2017 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of the LCDF GIF library. The GIF library is free software. It is distributed under the GNU General diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/include/lcdfgif/gifx.h new/gifsicle-1.93/include/lcdfgif/gifx.h --- old/gifsicle-1.92/include/lcdfgif/gifx.h 2017-07-11 21:12:15.000000000 +0200 +++ new/gifsicle-1.93/include/lcdfgif/gifx.h 2021-06-30 06:33:04.000000000 +0200 @@ -6,7 +6,7 @@ #endif /* gifx.h - Functions to turn GIFs in memory into X Pixmaps. - Copyright (C) 1997-2017 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of the LCDF GIF library. The LCDF GIF library is free software*. It is distributed under the GNU diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/missing new/gifsicle-1.93/missing --- old/gifsicle-1.92/missing 2013-06-28 20:26:12.000000000 +0200 +++ new/gifsicle-1.93/missing 2021-06-30 04:38:11.000000000 +0200 @@ -1,9 +1,9 @@ #! /bin/sh # Common wrapper for a few potentially missing GNU programs. -scriptversion=2012-06-26.16; # UTC +scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# Copyright (C) 1996-2020 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard <[email protected]>, 1996. # This program is free software; you can redistribute it and/or modify @@ -17,7 +17,7 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -101,9 +101,9 @@ exit $st fi -perl_URL=http://www.perl.org/ -flex_URL=http://flex.sourceforge.net/ -gnu_software_URL=http://www.gnu.org/software +perl_URL=https://www.perl.org/ +flex_URL=https://github.com/westes/flex +gnu_software_URL=https://www.gnu.org/software program_details () { @@ -160,7 +160,7 @@ ;; autom4te*) echo "You might have modified some maintainer files that require" - echo "the 'automa4te' program to be rebuilt." + echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) @@ -207,9 +207,9 @@ exit $st # Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) +# eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" +# time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/clp.c new/gifsicle-1.93/src/clp.c --- old/gifsicle-1.92/src/clp.c 2019-04-18 21:56:26.000000000 +0200 +++ new/gifsicle-1.93/src/clp.c 2021-06-30 06:33:12.000000000 +0200 @@ -2,7 +2,7 @@ /* clp.c - Complete source code for CLP. * This file is part of CLP, the command line parser package. * - * Copyright (c) 1997-2019 Eddie Kohler, [email protected] + * Copyright (c) 1997-2021 Eddie Kohler, [email protected] * * CLP is free software. It is distributed under the GNU General Public * License, Version 2, or, alternatively and at your discretion, under the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/fmalloc.c new/gifsicle-1.93/src/fmalloc.c --- old/gifsicle-1.92/src/fmalloc.c 2018-01-05 18:53:42.000000000 +0100 +++ new/gifsicle-1.93/src/fmalloc.c 2021-06-30 05:37:46.000000000 +0200 @@ -1,8 +1,8 @@ #if HAVE_CONFIG_H # include <config.h> #endif -#include <stdlib.h> #include <stdio.h> +#include <stdlib.h> #include <lcdfgif/gif.h> #ifdef __cplusplus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/gifdiff.c new/gifsicle-1.93/src/gifdiff.c --- old/gifsicle-1.92/src/gifdiff.c 2019-04-18 21:56:56.000000000 +0200 +++ new/gifsicle-1.93/src/gifdiff.c 2021-06-30 06:31:13.000000000 +0200 @@ -1,5 +1,5 @@ /* gifdiff.c - Gifdiff compares GIF images for identical appearance. - Copyright (C) 1998-2019 Eddie Kohler, [email protected] + Copyright (C) 1998-2021 Eddie Kohler, [email protected] This file is part of gifdiff, in the gifsicle package. Gifdiff is free software. It is distributed under the GNU Public License, @@ -560,7 +560,7 @@ case VERSION_OPT: printf("gifdiff (LCDF Gifsicle) %s\n", VERSION); - printf("Copyright (C) 1998-2019 Eddie Kohler\n\ + printf("Copyright (C) 1998-2021 Eddie Kohler\n\ This is free software; see the source for copying conditions.\n\ There is NO warranty, not even for merchantability or fitness for a\n\ particular purpose.\n"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/giffunc.c new/gifsicle-1.93/src/giffunc.c --- old/gifsicle-1.92/src/giffunc.c 2019-04-18 21:56:59.000000000 +0200 +++ new/gifsicle-1.93/src/giffunc.c 2021-06-30 06:31:18.000000000 +0200 @@ -1,5 +1,5 @@ /* giffunc.c - General functions for the GIF library. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of the LCDF GIF library. The LCDF GIF library is free software. It is distributed under the GNU diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/gifread.c new/gifsicle-1.93/src/gifread.c --- old/gifsicle-1.92/src/gifread.c 2019-04-18 21:57:00.000000000 +0200 +++ new/gifsicle-1.93/src/gifread.c 2021-06-30 06:31:22.000000000 +0200 @@ -1,5 +1,5 @@ /* gifread.c - Functions to read GIFs. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of the LCDF GIF library. The LCDF GIF library is free software. It is distributed under the GNU diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/gifsicle.c new/gifsicle-1.93/src/gifsicle.c --- old/gifsicle-1.92/src/gifsicle.c 2019-04-18 21:57:02.000000000 +0200 +++ new/gifsicle-1.93/src/gifsicle.c 2021-06-30 06:31:33.000000000 +0200 @@ -1,6 +1,6 @@ /* -*- c-basic-offset: 2 -*- */ /* gifsicle.c - gifsicle's main loop. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of gifsicle. Gifsicle is free software. It is distributed under the GNU Public License, @@ -2125,7 +2125,7 @@ #else printf("LCDF Gifsicle %s\n", VERSION); #endif - printf("Copyright (C) 1997-2019 Eddie Kohler\n\ + printf("Copyright (C) 1997-2021 Eddie Kohler\n\ This is free software; see the source for copying conditions.\n\ There is NO warranty, not even for merchantability or fitness for a\n\ particular purpose.\n"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/gifsicle.h new/gifsicle-1.93/src/gifsicle.h --- old/gifsicle-1.92/src/gifsicle.h 2017-07-11 21:12:57.000000000 +0200 +++ new/gifsicle-1.93/src/gifsicle.h 2021-06-30 06:31:38.000000000 +0200 @@ -1,5 +1,5 @@ /* gifsicle.h - Function declarations for gifsicle. - Copyright (C) 1997-2017 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of gifsicle. Gifsicle is free software. It is distributed under the GNU Public License, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/gifunopt.c new/gifsicle-1.93/src/gifunopt.c --- old/gifsicle-1.92/src/gifunopt.c 2019-04-18 21:57:02.000000000 +0200 +++ new/gifsicle-1.93/src/gifunopt.c 2021-06-30 06:31:43.000000000 +0200 @@ -1,5 +1,5 @@ /* gifunopt.c - Unoptimization function for the GIF library. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of the LCDF GIF library. The LCDF GIF library is free software. It is distributed under the GNU diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/gifview.c new/gifsicle-1.93/src/gifview.c --- old/gifsicle-1.92/src/gifview.c 2019-04-18 21:57:03.000000000 +0200 +++ new/gifsicle-1.93/src/gifview.c 2021-06-30 06:31:50.000000000 +0200 @@ -1,5 +1,5 @@ /* gifview.c - gifview's main loop. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of gifview, in the gifsicle package. Gifview is free software. It is distributed under the GNU Public License, @@ -1356,7 +1356,7 @@ case VERSION_OPT: printf("gifview (LCDF Gifsicle) %s\n", VERSION); - printf("Copyright (C) 1997-2019 Eddie Kohler\n\ + printf("Copyright (C) 1997-2021 Eddie Kohler\n\ This is free software; see the source for copying conditions.\n\ There is NO warranty, not even for merchantability or fitness for a\n\ particular purpose.\n"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/gifwrite.c new/gifsicle-1.93/src/gifwrite.c --- old/gifsicle-1.92/src/gifwrite.c 2019-04-18 21:57:03.000000000 +0200 +++ new/gifsicle-1.93/src/gifwrite.c 2021-06-30 06:31:55.000000000 +0200 @@ -1,6 +1,6 @@ /* -*- mode: c; c-basic-offset: 2 -*- */ /* gifwrite.c - Functions to write GIFs. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of the LCDF GIF library. The LCDF GIF library is free software. It is distributed under the GNU @@ -210,6 +210,8 @@ /* Difference (MSE) between given color indexes + dithering error */ static inline unsigned int color_diff(Gif_Color a, Gif_Color b, int a_transparent, int b_transparent, gfc_rgbdiff dither) { + unsigned int dith, undith; + /* if one is transparent and the other is not, then return maximum difference */ /* TODO: figure out what color is in the canvas under the transparent pixel and match against that */ if (a_transparent != b_transparent) return 1<<25; @@ -218,11 +220,11 @@ if (a_transparent) return 0; /* squared error with or without dithering. */ - unsigned int dith = (a.gfc_red-b.gfc_red+dither.r)*(a.gfc_red-b.gfc_red+dither.r) + dith = (a.gfc_red-b.gfc_red+dither.r)*(a.gfc_red-b.gfc_red+dither.r) + (a.gfc_green-b.gfc_green+dither.g)*(a.gfc_green-b.gfc_green+dither.g) + (a.gfc_blue-b.gfc_blue+dither.b)*(a.gfc_blue-b.gfc_blue+dither.b); - unsigned int undith = (a.gfc_red-b.gfc_red+dither.r/2)*(a.gfc_red-b.gfc_red+dither.r/2) + undith = (a.gfc_red-b.gfc_red+dither.r/2)*(a.gfc_red-b.gfc_red+dither.r/2) + (a.gfc_green-b.gfc_green+dither.g/2)*(a.gfc_green-b.gfc_green+dither.g/2) + (a.gfc_blue-b.gfc_blue+dither.b/2)*(a.gfc_blue-b.gfc_blue+dither.b/2); @@ -333,12 +335,13 @@ gfc_lookup_lossy(Gif_CodeTable *gfc, const Gif_Colormap *gfcm, Gif_Image *gfi, unsigned pos, Gif_Node *node, unsigned long base_diff, gfc_rgbdiff dither, const unsigned int max_diff) { - unsigned image_endpos = gfi->width * gfi->height; + const unsigned image_endpos = gfi->width * gfi->height; struct selected_node best_t = {node, pos, base_diff}; + uint8_t suffix; if (pos >= image_endpos) return best_t; - uint8_t suffix = gif_pixel_at_pos(gfi, pos); + suffix = gif_pixel_at_pos(gfi, pos); assert(!node || (node >= gfc->nodes && node < gfc->nodes + NODES_SIZE)); assert(suffix < gfc->clear_code); if (!node) { @@ -416,7 +419,7 @@ unsigned pos; unsigned clear_bufpos, clear_pos; unsigned line_endpos; - unsigned image_endpos; + const unsigned image_endpos = gfi->height * gfi->width; const uint8_t *imageline; unsigned run = 0; @@ -429,7 +432,7 @@ Gif_Code next_code = 0; Gif_Code output_code; uint8_t suffix; - Gif_Colormap *gfcm; + Gif_Colormap *gfcm = gfi->local ? gfi->local : gfs->global; int cur_code_bits; @@ -450,13 +453,8 @@ below. */ pos = clear_pos = clear_bufpos = 0; - if (grr->gcinfo.loss) { - image_endpos = gfi->height * gfi->width; - gfcm = (gfi->local ? gfi->local : gfs->global); - } else { - line_endpos = gfi->width; - imageline = gif_imageline(gfi, pos); - } + line_endpos = gfi->width; + imageline = gif_imageline(gfi, pos); while (1) { @@ -621,7 +619,7 @@ int do_clear = grr->gcinfo.flags & GIF_WRITE_EAGER_CLEAR; if (!do_clear) { - unsigned pixels_left = gfi->width * gfi->height - pos; + unsigned pixels_left = image_endpos - pos; if (pixels_left) { /* Always clear if run_ewma gets small relative to min_code_bits. Otherwise, clear if #images/run is smaller diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/gifx.c new/gifsicle-1.93/src/gifx.c --- old/gifsicle-1.92/src/gifx.c 2019-04-18 21:57:03.000000000 +0200 +++ new/gifsicle-1.93/src/gifx.c 2021-06-30 06:32:00.000000000 +0200 @@ -1,5 +1,5 @@ /* gifx.c - Functions to turn GIFs in memory into X Pixmaps. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of the LCDF GIF library. The LCDF GIF library is free software. It is distributed under the GNU diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/kcolor.h new/gifsicle-1.93/src/kcolor.h --- old/gifsicle-1.92/src/kcolor.h 2018-01-05 19:55:43.000000000 +0100 +++ new/gifsicle-1.93/src/kcolor.h 2021-06-30 06:32:04.000000000 +0200 @@ -1,5 +1,5 @@ /* kcolor.h - Color-oriented function declarations for gifsicle. - Copyright (C) 2013-2017 Eddie Kohler, [email protected] + Copyright (C) 2013-2021 Eddie Kohler, [email protected] This file is part of gifsicle. Gifsicle is free software. It is distributed under the GNU Public License, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/merge.c new/gifsicle-1.93/src/merge.c --- old/gifsicle-1.92/src/merge.c 2019-04-18 21:57:04.000000000 +0200 +++ new/gifsicle-1.93/src/merge.c 2021-06-30 06:32:08.000000000 +0200 @@ -1,5 +1,5 @@ /* merge.c - Functions which actually combine and manipulate GIF image data. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of gifsicle. Gifsicle is free software. It is distributed under the GNU Public License, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/optimize.c new/gifsicle-1.93/src/optimize.c --- old/gifsicle-1.92/src/optimize.c 2019-04-18 21:57:04.000000000 +0200 +++ new/gifsicle-1.93/src/optimize.c 2021-06-30 06:32:13.000000000 +0200 @@ -1,5 +1,5 @@ /* optimize.c - Functions to optimize animated GIFs. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of gifsicle. Gifsicle is free software. It is distributed under the GNU Public License, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/opttemplate.c new/gifsicle-1.93/src/opttemplate.c --- old/gifsicle-1.92/src/opttemplate.c 2019-04-18 21:57:04.000000000 +0200 +++ new/gifsicle-1.93/src/opttemplate.c 2021-06-30 06:32:17.000000000 +0200 @@ -1,5 +1,5 @@ /* opttemplate.c - Functions to optimize animated GIFs. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of gifsicle. Gifsicle is free software. It is distributed under the GNU Public License, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/quantize.c new/gifsicle-1.93/src/quantize.c --- old/gifsicle-1.92/src/quantize.c 2019-04-18 21:57:04.000000000 +0200 +++ new/gifsicle-1.93/src/quantize.c 2021-06-30 06:32:21.000000000 +0200 @@ -1,5 +1,5 @@ /* quantize.c - Histograms and quantization for gifsicle. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of gifsicle. Gifsicle is free software. It is distributed under the GNU Public License, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/support.c new/gifsicle-1.93/src/support.c --- old/gifsicle-1.92/src/support.c 2019-04-18 21:57:05.000000000 +0200 +++ new/gifsicle-1.93/src/support.c 2021-06-30 06:32:25.000000000 +0200 @@ -1,5 +1,5 @@ /* support.c - Support functions for gifsicle. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of gifsicle. Gifsicle is free software. It is distributed under the GNU Public License, @@ -235,7 +235,7 @@ be 'web', 'gray', 'bw', or a GIF file.\n\n"); printf("\ Report bugs to <[email protected]>.\n\ -Too much information? Try '%s --help | more'.\n", program_name); +Too much information? Try '%s --help | less'.\n", program_name); #ifdef GIF_UNGIF printf("\ This version of Gifsicle writes uncompressed GIFs, which can be far larger\n\ @@ -1104,10 +1104,11 @@ { Gif_Colormap *gfcm = gfs->global; int index; - if (gfi && gfi->local) gfcm = gfi->local; + if (gfi && gfi->local) + gfcm = gfi->local; if (color->haspixel == 2) { /* have pixel value, not color */ - if (color->pixel < (uint32_t)gfcm->ncol) + if (!gfcm || color->pixel < (uint32_t)gfcm->ncol) return color->pixel; else { if (color_context) @@ -1116,7 +1117,7 @@ } } - index = Gif_FindColor(gfcm, color); + index = gfcm ? Gif_FindColor(gfcm, color) : -1; if (index < 0 && color_context) lwarning(gfs->landmark, "%s color not in colormap", color_context); return index; @@ -1464,7 +1465,8 @@ || gfi->top != 0 || gfi->width != gfs->screen_width || gfi->height != gfs->screen_height) - && gfs->global && gfs->background < gfs->global->ncol) + && gfs->global + && gfs->background < gfs->global->ncol) gfs->global->col[gfs->background].haspixel |= 1; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/ungifwrt.c new/gifsicle-1.93/src/ungifwrt.c --- old/gifsicle-1.92/src/ungifwrt.c 2019-04-18 21:56:16.000000000 +0200 +++ new/gifsicle-1.93/src/ungifwrt.c 2021-06-30 06:32:28.000000000 +0200 @@ -2,7 +2,7 @@ /* ungifwrt.c - Functions to write unGIFs -- GIFs with run-length compression, not LZW compression. Idea due to Hutchinson Avenue Software Corporation <http://www.hasc.com>. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of the LCDF GIF library. The LCDF GIF library is free software. It is distributed under the GNU diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/win32cfg.h new/gifsicle-1.93/src/win32cfg.h --- old/gifsicle-1.92/src/win32cfg.h 2019-04-18 22:05:32.000000000 +0200 +++ new/gifsicle-1.93/src/win32cfg.h 2021-06-30 06:30:36.000000000 +0200 @@ -107,7 +107,7 @@ #define PACKAGE_NAME "gifsicle" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "gifsicle 1.92" +#define PACKAGE_STRING "gifsicle 1.93" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "gifsicle" @@ -116,7 +116,7 @@ #define PACKAGE_URL "" /* Define to the version of this package. */ -#define PACKAGE_VERSION "1.92" +#define PACKAGE_VERSION "1.93" /* Pathname separator character ('/' on Unix). */ #define PATHNAME_SEPARATOR '\\' @@ -144,7 +144,7 @@ #define STDC_HEADERS 1 /* Version number of package */ -#define VERSION "1.92 (Windows)" +#define VERSION "1.93 (Windows)" /* Define if X is not available. */ #define X_DISPLAY_MISSING 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gifsicle-1.92/src/xform.c new/gifsicle-1.93/src/xform.c --- old/gifsicle-1.92/src/xform.c 2019-04-18 21:56:07.000000000 +0200 +++ new/gifsicle-1.93/src/xform.c 2021-06-30 06:32:32.000000000 +0200 @@ -1,5 +1,5 @@ /* xform.c - Image transformation functions for gifsicle. - Copyright (C) 1997-2019 Eddie Kohler, [email protected] + Copyright (C) 1997-2021 Eddie Kohler, [email protected] This file is part of gifsicle. Gifsicle is free software. It is distributed under the GNU Public License, @@ -557,10 +557,10 @@ ksscreen iscr; kcscreen oscr; kcscreen xscr; - double oxf; /* (input width) / (output width) */ - double oyf; /* (input height) / (output height) */ - double ixf; /* (output width) / (input width) */ - double iyf; /* (output height) / (input height) */ + float oxf; /* (input width) / (output width) */ + float oyf; /* (input height) / (output height) */ + float ixf; /* (output width) / (input width) */ + float iyf; /* (output height) / (input height) */ scale_weightset xweights; scale_weightset yweights; kd3_tree global_kd3; @@ -819,9 +819,12 @@ int maxo, float f) { pixel_range pr; pr.lo = (int) (xi * f); - pr.hi = (int) ((xi + 1) * f); - pr.hi = (xi + 1 == maxi ? maxo : pr.hi); - pr.hi = (pr.hi == pr.lo ? pr.hi + 1 : pr.hi); + if (xi + 1 == maxi) + pr.hi = maxo; + else + pr.hi = (int) ((xi + 1) * f); + if (pr.hi == pr.lo) + ++pr.hi; return pr; } @@ -854,7 +857,8 @@ for (i = xpr.lo; i != xpr.hi; ++i) xoff[i] = xo; } - xi0 = (int) (gfo->left * sctx->oxf); + xi0 = make_pixel_range(gfo->left, sctx->oscr.width, + sctx->iscr.width, sctx->oxf).lo; xi1 = make_pixel_range(gfo->left + gfo->width - 1, sctx->oscr.width, sctx->iscr.width, sctx->oxf).hi;
