rpms/uget/F-11 uget-1.5.0.1-crash-with-invalid-uri.patch, NONE, 1.1 uget.spec, 1.14, 1.15

Mamoru Tasaka mtasaka at fedoraproject.org
Fri Jan 22 09:22:12 UTC 2010


Author: mtasaka

Update of /cvs/extras/rpms/uget/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24798/F-11

Modified Files:
	uget.spec 
Added Files:
	uget-1.5.0.1-crash-with-invalid-uri.patch 
Log Message:
* Fri Jan 22 2010 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.5.0.1-2
- Fix segv when invalid uri is passed to the argument (bug 556907)


uget-1.5.0.1-crash-with-invalid-uri.patch:
 ug_url.c |    2 ++
 1 file changed, 2 insertions(+)

--- NEW FILE uget-1.5.0.1-crash-with-invalid-uri.patch ---
--- uget-1.5.0.1/src/ug_url.c.debug	2009-11-30 10:55:28.000000000 +0900
+++ uget-1.5.0.1/src/ug_url.c	2010-01-22 18:07:07.000000000 +0900
@@ -184,6 +184,8 @@
 	if (str_len == -1)
 		str_len = strlen (str);
 	result = g_uri_unescape_segment (str, str+str_len, NULL);
+	if (!result)
+		result = g_strndup (str, str_len);
 
 	// check encoding
 	if (g_utf8_validate (result, -1, NULL) == FALSE) {


Index: uget.spec
===================================================================
RCS file: /cvs/extras/rpms/uget/F-11/uget.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -p -r1.14 -r1.15
--- uget.spec	23 Dec 2009 15:17:14 -0000	1.14
+++ uget.spec	22 Jan 2010 09:22:12 -0000	1.15
@@ -1,12 +1,16 @@
 Name:		uget
 Version:	1.5.0.1
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Download manager using GTK+ and libcurl
 
 Group:		Applications/Internet
 License:	LGPLv2+
 URL:		http://urlget.sourceforge.net/
 Source0:	http://downloads.sourceforge.net/urlget/%{name}-%{version}.tar.gz
+# The following change already appears in upstream trunk/src/ug_uri.c
+# rev 273
+# Patch to fix bug 556907
+Patch0:		uget-1.5.0.1-crash-with-invalid-uri.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	desktop-file-utils
@@ -28,6 +32,7 @@ Uget is the successor of urlgfe, which w
 
 %prep
 %setup -q
+%patch0 -p1 -b .invalid_uri
 
 %build
 %configure
@@ -75,6 +80,9 @@ exit 0
 %{_datadir}/sounds/%{name}/
 
 %changelog
+* Fri Jan 22 2010 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.5.0.1-2
+- Fix segv when invalid uri is passed to the argument (bug 556907)
+
 * Wed Dec 23 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.5.0.1-1
 - 1.5.0.1 (which should fix bug 546289)
 



More information about the scm-commits mailing list