prevent gifload plugin from crashing when loading files with bogus frame
size (#150677, #150678)
This commit is contained in:
parent
77fd4d40db
commit
ae258ef29c
16
gimp-2.2.4-gifload.patch
Normal file
16
gimp-2.2.4-gifload.patch
Normal file
@ -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
|
@ -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 <nphilipp@redhat.com>
|
||||
- prevent gifload plugin from crashing when loading files with bogus frame size
|
||||
(#150677, #150678)
|
||||
|
||||
* Wed Mar 02 2005 Nils Philippsen <nphilipp@redhat.com>
|
||||
- rebuild against gcc 4.0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user