summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2010-03-19 09:57:45 +0000
committerPacho Ramos <pacho@gentoo.org>2010-03-19 09:57:45 +0000
commit936ea8e43a35a3f65afc81bfac0953b2864c7e36 (patch)
tree903695b084f0069423e7b05cbc70063615b42e65 /gnome-base/gnome-vfs/files
parentamd64 stable, bug 308379 (diff)
downloadgentoo-2-936ea8e43a35a3f65afc81bfac0953b2864c7e36.tar.gz
gentoo-2-936ea8e43a35a3f65afc81bfac0953b2864c7e36.tar.bz2
gentoo-2-936ea8e43a35a3f65afc81bfac0953b2864c7e36.zip
Fix bug 285706 and bug 309621
(Portage version: 2.1.7.17/cvs/Linux x86_64)
Diffstat (limited to 'gnome-base/gnome-vfs/files')
-rw-r--r--gnome-base/gnome-vfs/files/gnome-vfs-2.24.2-symlink-crash.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnome-base/gnome-vfs/files/gnome-vfs-2.24.2-symlink-crash.patch b/gnome-base/gnome-vfs/files/gnome-vfs-2.24.2-symlink-crash.patch
new file mode 100644
index 000000000000..93a6f628f6ee
--- /dev/null
+++ b/gnome-base/gnome-vfs/files/gnome-vfs-2.24.2-symlink-crash.patch
@@ -0,0 +1,28 @@
+From 92869585b2e9ab4e262f1d6b7592fe7e2c3fb327 Mon Sep 17 00:00:00 2001
+From: Alexander Larsson <alexl@redhat.com>
+Date: Wed, 10 Mar 2010 10:23:24 +0000
+Subject: Don't crash if we get a NULL symlink
+
+Patch from debian/ubuntu:
+http://launchpadlibrarian.net/35571673/gnome-vfs_2.24.2-1ubuntu2.debdiff
+---
+diff --git a/modules/ftp-method.c b/modules/ftp-method.c
+index c40c323..ac02b56 100644
+--- a/modules/ftp-method.c
++++ b/modules/ftp-method.c
+@@ -2678,7 +2678,12 @@ do_read_directory (GnomeVFSMethod *method,
+ res = GNOME_VFS_ERROR_TOO_MANY_LINKS;
+ break;
+ }
+-
++
++ if (symlink_info->symlink_name == NULL) {
++ res = GNOME_VFS_ERROR_BAD_PARAMETERS;
++ break;
++ }
++
+ symlink_name = gnome_vfs_escape_path_string (symlink_info->symlink_name);
+ gnome_vfs_file_info_clear (symlink_info);
+
+--
+cgit v0.8.3.1