2004-10-18 Padraig O'Briain <[email protected]>
authorpadraigo
Mon, 18 Oct 2004 10:00:13 +0000
changeset 4277 3a0eb3e3dbd3
parent 4276 2a2c7f354601
child 4278 a975c162e973
2004-10-18 Padraig O'Briain <[email protected]> * vte.spec Update * patches/vte-09-fix-crash.diff: Fix for bug #5107420.
ChangeLog
patches/vte-09-fix-crash.diff
vte.spec
--- a/ChangeLog	Mon Oct 18 09:30:38 2004 +0000
+++ b/ChangeLog	Mon Oct 18 10:00:13 2004 +0000
@@ -1,3 +1,8 @@
+2004-10-18  Padraig O'Briain  <[email protected]>
+
+	* vte.spec Update
+	* patches/vte-09-fix-crash.diff: Fix for bug #5107420.
+
 2004-10-18  Dermot McCluskey <[email protected]>
 
 	* *.spec: Incremented release numbers for build 21
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/vte-09-fix-crash.diff	Mon Oct 18 10:00:13 2004 +0000
@@ -0,0 +1,23 @@
+Index: vte/src/vteaccess.c
+===================================================================
+RCS file: /cvs/gnome/vte/src/vteaccess.c,v
+retrieving revision 1.44
+diff -u -p -r1.44 vteaccess.c
+--- vte/src/vteaccess.c	1 May 2004 07:12:51 -0000	1.44
++++ vte/src/vteaccess.c	18 Oct 2004 07:57:26 -0000
+@@ -909,6 +922,15 @@ vte_terminal_accessible_get_text(AtkText
+ 	int start, end;
+ 	gchar *ret;
+ 
++        /* Swap around if start is greater than end */
++        if (start_offset > end_offset) {
++                gint tmp;
++
++                tmp = start_offset;
++                start_offset = end_offset;
++                end_offset = tmp;
++        }
++
+ 	g_return_val_if_fail((start_offset >= 0) && (end_offset >= -1),
+ 			     g_strdup(""));
+ 
--- a/vte.spec	Mon Oct 18 09:30:38 2004 +0000
+++ b/vte.spec	Mon Oct 18 10:00:13 2004 +0000
@@ -16,6 +16,7 @@
 Patch6:       vte-06-cut-copy-paste-handle.diff
 Patch7:       vte-07-update-logout-record.diff
 Patch8:       vte-08-utf8-ambiguous.diff
+Patch9:       vte-09-fix-crash.diff
 URL:          http://www.gnome.org
 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
 Docdir:	      %{_defaultdocdir}/doc
@@ -49,6 +50,7 @@
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 
 %build
 %ifos linux
@@ -123,6 +125,9 @@
 %{_libdir}/pkgconfig/*
 
 %changelog
+* Mon Oct 18 2004 - [email protected]
+- Add patch vte-09-fix-crash.diff to fix bug 5107420.
+
 * Sat Oct 09 2004 - [email protected]
 - Add patch vte-08-utf8-ambiguous.diff to fix bug 5028816
   [Cinnabar] gnome-terminal display full-width characters as half-width on UTF-8