diff --git a/eclipse-launcher-double-free-bug.patch b/eclipse-launcher-double-free-bug.patch new file mode 100644 index 0000000..0c24961 --- /dev/null +++ b/eclipse-launcher-double-free-bug.patch @@ -0,0 +1,10 @@ +--- library/eclipse.c.orig 2007-06-25 15:57:02.000000000 -0400 ++++ library/eclipse.c 2007-08-03 15:23:02.000000000 -0400 +@@ -529,6 +530,7 @@ + } + displayMessage( title, errorMsg ); + free( errorMsg ); ++ errorMsg = NULL; + } + free( title ); + break; diff --git a/eclipse.spec b/eclipse.spec index 2928817..de1f308 100644 --- a/eclipse.spec +++ b/eclipse.spec @@ -19,7 +19,7 @@ Epoch: 1 Summary: An open, extensible IDE Name: eclipse Version: %{eclipse_majmin}.%{eclipse_micro} -Release: 4%{?dist} +Release: 5%{?dist} License: Eclipse Public License Group: Text Editors/Integrated Development Environments (IDE) URL: http://www.eclipse.org/ @@ -65,6 +65,8 @@ Patch7: %{name}-tomcat55-build.patch # Use ecj for gcj Patch17: %{name}-ecj-gcj.patch Patch24: %{name}-add-ppc64-sparc64-s390-s390x.patch +#https://bugs.eclipse.org/bugs/show_bug.cgi?id=198840 +Patch25: %{name}-launcher-double-free-bug.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ant @@ -388,6 +390,7 @@ popd rm plugins/org.eclipse.platform/launchersrc.zip pushd features/org.eclipse.equinox.executable %patch12 -p0 +%patch25 -p0 # put the configuration directory in an arch-specific location sed --in-place "s:/usr/lib/eclipse/configuration:%{_libdir}/%{name}/configuration:" library/eclipse.c # make the eclipse binary relocatable @@ -1626,6 +1629,10 @@ fi %{_libdir}/%{name}/plugins/org.eclipse.sdk_* %changelog +* Fri Aug 03 2007 Ben Konrath 3.3.0-5 +- Add patch to fix double free bug in launcher library. +- Resolves: #248798. + * Tue Jul 31 2007 Ben Konrath 3.3.0-4 - Link to commons-el.jar. - Remove ant 1.7 hacks.