rpms/gtk-vnc/devel gtk-vnc-0.2.0-coroutine-cleanup.patch, NONE, 1.1 gtk-vnc.spec, 1.6, 1.7

Daniel P. Berrange (berrange) fedora-extras-commits at redhat.com
Wed Oct 10 20:54:43 UTC 2007


Author: berrange

Update of /cvs/pkgs/rpms/gtk-vnc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3093

Modified Files:
	gtk-vnc.spec 
Added Files:
	gtk-vnc-0.2.0-coroutine-cleanup.patch 
Log Message:
Fix coroutine cleanup to avoid crash (rhbz #325731)

gtk-vnc-0.2.0-coroutine-cleanup.patch:

--- NEW FILE gtk-vnc-0.2.0-coroutine-cleanup.patch ---
changeset:   78:8d1799e6a392
tag:         tip
user:        "Daniel P. Berrange <berrange at redhat.com>"
date:        Wed Oct 10 16:38:16 2007 -0400
files:       src/coroutine.c
description:
Clear coroutine caller when exiting coroutine


diff -r df7828ad6498 -r 8d1799e6a392 src/coroutine.c
--- a/src/coroutine.c	Wed Oct 10 10:09:08 2007 -0300
+++ b/src/coroutine.c	Wed Oct 10 16:38:16 2007 -0400
@@ -28,6 +28,8 @@ static int _coroutine_release(struct con
 		if (ret < 0)
 			return ret;
 	}
+
+	co->caller = NULL;
 
 	return munmap(cc->stack, cc->stack_size);
 }



Index: gtk-vnc.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gtk-vnc/devel/gtk-vnc.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- gtk-vnc.spec	5 Oct 2007 01:53:20 -0000	1.6
+++ gtk-vnc.spec	10 Oct 2007 20:54:10 -0000	1.7
@@ -3,12 +3,13 @@
 Summary: A GTK widget for VNC clients
 Name: gtk-vnc
 Version: 0.2.0
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: LGPLv2+
 Group: Development/Libraries
 Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 Patch1: %{name}-%{version}-execmem.patch
 Patch2: %{name}-%{version}-coroutine-caller.patch
+Patch3: %{name}-%{version}-coroutine-cleanup.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 URL: http://gtk-vnc.sf.net/
 BuildRequires: gtk2-devel pygtk2-devel python-devel gnutls-devel
@@ -45,6 +46,7 @@
 %setup -q
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %configure
@@ -84,6 +86,9 @@
 %{_libdir}/python*/site-packages/gtkvnc.so
 
 %changelog
+* Thu Oct 10 2007 Daniel P. Berrange <berrange at redhat.com> - 0.2.0-4.fc8
+- Fixed coroutine cleanup to avoid SEGV (rhbz #325731)
+
 * Thu Oct  4 2007 Daniel P. Berrange <berrange at redhat.com> - 0.2.0-3.fc8
 - Fixed coroutine caller to avoid SEGV
 




More information about the fedora-extras-commits mailing list