From a5acf9488ad0e116a93ea8a2c328f4ffc8575987 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Wed, 4 Mar 2009 22:07:28 +0000 Subject: [PATCH] - Don't crash when changing the LUKS passphrase on a device --- gdu-0.2-passphrase-change-crash.patch | 23 +++++++++++++++++++++++ gnome-disk-utility.spec | 8 +++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 gdu-0.2-passphrase-change-crash.patch diff --git a/gdu-0.2-passphrase-change-crash.patch b/gdu-0.2-passphrase-change-crash.patch new file mode 100644 index 0000000..d112f2a --- /dev/null +++ b/gdu-0.2-passphrase-change-crash.patch @@ -0,0 +1,23 @@ +From 15eda99b58d602119ba9df881595fcbb02853c2a Mon Sep 17 00:00:00 2001 +From: David Zeuthen +Date: Wed, 04 Mar 2009 16:37:56 +0000 +Subject: don't use g_free on a GIcon, use g_object_unref instead + +This fixes a crash when attempting to change the passphrase of a LUKS +device. +--- +diff --git a/src/gdu-gtk/gdu-gtk.c b/src/gdu-gtk/gdu-gtk.c +index d86599a..d0a41d4 100644 +--- a/src/gdu-gtk/gdu-gtk.c ++++ b/src/gdu-gtk/gdu-gtk.c +@@ -1057,7 +1057,7 @@ out: + + g_free (window_title); + if (window_icon != NULL) +- g_free (window_icon); ++ g_object_unref (window_icon); + if (device != NULL) + g_object_unref (device); + return ret; +-- +cgit v0.8.2 diff --git a/gnome-disk-utility.spec b/gnome-disk-utility.spec index 6077b16..3095289 100644 --- a/gnome-disk-utility.spec +++ b/gnome-disk-utility.spec @@ -11,7 +11,7 @@ Summary: Disk management application Name: gnome-disk-utility Version: 0.2 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ Group: System Environment/Libraries URL: http://gitweb.freedesktop.org/?p=users/david/gnome-disk-utility.git;a=summary @@ -34,6 +34,8 @@ BuildRequires: intltool Requires(post): scrollkeeper Requires(postun): scrollkeeper +Patch0: gdu-0.2-passphrase-change-crash.patch + %description This package contains the Palimpsest disk management application. Palimpsest supports partitioning, file system creation, encryption, @@ -87,6 +89,7 @@ develop applications with gnome-disk-utility-ui-libs. %prep %setup -q +%patch0 -p1 -b .luks-passphrase-change %build %configure @@ -194,6 +197,9 @@ fi %{_includedir}/gnome-disk-utility/gdu-gtk/* %changelog +* Wed Mar 04 2009 David Zeuthen - 0.2-2%{?dist} +- Don't crash when changing the LUKS passphrase on a device + * Mon Mar 02 2009 David Zeuthen - 0.2-1%{?dist} - Update to version 0.2