diff --git a/gimp-2.2.4-gifload.patch b/gimp-2.2.4-gifload.patch new file mode 100644 index 0000000..9a2612f --- /dev/null +++ b/gimp-2.2.4-gifload.patch @@ -0,0 +1,16 @@ +--- gimp-2.2.4/plug-ins/common/gifload.c.gifload 2005-03-09 17:58:41.526620378 +0100 ++++ gimp-2.2.4/plug-ins/common/gifload.c 2005-03-09 18:00:25.137414122 +0100 +@@ -823,7 +823,12 @@ + gboolean alpha_frame = FALSE; + static int previous_disposal; + +- ++ /* Guard against bogus frame size */ ++ if (len < 1 || height < 1) ++ { ++ g_message ("Bogus frame dimensions"); ++ return -1; ++ } + + /* + ** Initialize the Compression routines diff --git a/gimp.spec b/gimp.spec index bfd482c..7afc841 100644 --- a/gimp.spec +++ b/gimp.spec @@ -14,7 +14,7 @@ Version: 2.2.4 %define minorver 200 %define microver %(ver=%{version}; echo ${ver##*.*.}) #define prever pre2 -Release: %{?prever:0.0.%{prever}.}2 +Release: %{?prever:0.0.%{prever}.}3 Epoch: 2 License: GPL, LGPL Group: Applications/Multimedia @@ -56,6 +56,7 @@ Patch0: gimp-2.0pre3-buildroot.patch Patch1: gimp-2.0.1-gimphelpmissing.patch Patch2: gimp-2.2.3-icontheme.patch Patch3: gimp-2.2.4-gcc4.patch +Patch4: gimp-2.2.4-gifload.patch %description The GIMP (GNU Image Manipulation Program) is a powerful image @@ -94,6 +95,7 @@ extensions. %patch1 -p1 -b .gimphelpmissing %patch2 -p1 -b .icontheme %patch3 -p1 -b .gcc4 +%patch4 -p1 -b .gifload %build libtoolize --copy --force @@ -311,6 +313,10 @@ fi %{_libdir}/pkgconfig/* %changelog +* Wed Mar 09 2005 Nils Philippsen +- prevent gifload plugin from crashing when loading files with bogus frame size + (#150677, #150678) + * Wed Mar 02 2005 Nils Philippsen - rebuild against gcc 4.0