rpms/vinagre/devel vinagre-history-crash.patch, NONE, 1.1 vinagre.spec, 1.66, 1.67
Matthias Clasen
mclasen at fedoraproject.org
Tue Jan 5 01:48:27 UTC 2010
- Previous message (by thread): rpms/vinagre/F-12 vinagre-history-crash.patch, NONE, 1.1 vinagre.spec, 1.62, 1.63
- Next message (by thread): rpms/xorg-x11-drv-wacom/devel .cvsignore, 1.4, 1.5 sources, 1.4, 1.5 xorg-x11-drv-wacom.spec, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mclasen
Update of /cvs/pkgs/rpms/vinagre/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12719
Modified Files:
vinagre.spec
Added Files:
vinagre-history-crash.patch
Log Message:
Avoid a crash
vinagre-history-crash.patch:
vinagre-connect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE vinagre-history-crash.patch ---
diff -up vinagre-2.28.1/vinagre/vinagre-connect.c.history-crash vinagre-2.28.1/vinagre/vinagre-connect.c
--- vinagre-2.28.1/vinagre/vinagre-connect.c.history-crash 2010-01-04 20:37:20.282194058 -0500
+++ vinagre-2.28.1/vinagre/vinagre-connect.c 2010-01-04 20:37:29.269077172 -0500
@@ -203,7 +203,7 @@ saved_history (void)
{
history_from_file = g_strsplit (file_contents, "\n", 0);
len = g_strv_length (history_from_file);
- if (strlen (history_from_file[len-1]) == 0)
+ if (len > 0 && strlen (history_from_file[len-1]) == 0)
{
g_free (history_from_file[len-1]);
history_from_file[len-1] = NULL;
Index: vinagre.spec
===================================================================
RCS file: /cvs/pkgs/rpms/vinagre/devel/vinagre.spec,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -p -r1.66 -r1.67
--- vinagre.spec 5 Dec 2009 05:05:17 -0000 1.66
+++ vinagre.spec 5 Jan 2010 01:48:27 -0000 1.67
@@ -1,6 +1,6 @@
Name: vinagre
Version: 2.29.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: VNC client for GNOME
Group: Applications/System
@@ -27,6 +27,9 @@ BuildRequires: scrollkeeper
# for /usr/share/dbus-1/services
Requires: dbus
+# https://bugzilla.gnome.org/show_bug.cgi?id=606072
+Patch0: vinagre-history-crash.patch
+
%description
Vinagre is a VNC client for the GNOME desktop.
@@ -50,6 +53,7 @@ to vinagre.
%prep
%setup -q
+%patch0 -p1 -b .history-crash
%build
%configure --enable-avahi=yes --disable-static
@@ -157,6 +161,9 @@ fi
%changelog
+* Mon Jan 4 2010 Matthias Clasen <mclasen at redhat.com> 2.29.1-2
+- Don't crash when the history file is empty (#552076)
+
* Fri Dec 4 2009 Matthias Clasen <mclasen at redhat.com> 2.29.1-1
- 2.29.1
- Previous message (by thread): rpms/vinagre/F-12 vinagre-history-crash.patch, NONE, 1.1 vinagre.spec, 1.62, 1.63
- Next message (by thread): rpms/xorg-x11-drv-wacom/devel .cvsignore, 1.4, 1.5 sources, 1.4, 1.5 xorg-x11-drv-wacom.spec, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list