[fuse/f16] add fix for bz870485

Tom Callaway spot at fedoraproject.org
Wed Oct 31 14:25:09 UTC 2012


commit cbca409211c27f1468788cec68b07b71149ed304
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Wed Oct 31 10:26:39 2012 -0400

    add fix for bz870485

 ...-3c4c063a2fd5cc6e9ce2b5db82e2a0dfa59b2e40.patch |   14 ++++++++++++++
 fuse.spec                                          |    9 ++++++++-
 2 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/fuse-3c4c063a2fd5cc6e9ce2b5db82e2a0dfa59b2e40.patch b/fuse-3c4c063a2fd5cc6e9ce2b5db82e2a0dfa59b2e40.patch
new file mode 100644
index 0000000..1603a86
--- /dev/null
+++ b/fuse-3c4c063a2fd5cc6e9ce2b5db82e2a0dfa59b2e40.patch
@@ -0,0 +1,14 @@
+diff --git a/lib/fuse.c b/lib/fuse.c
+index 644878b..3c7f642 100644
+--- a/lib/fuse.c
++++ b/lib/fuse.c
+@@ -1162,7 +1162,7 @@ static int try_get_path2(struct fuse *f, fuse_ino_t nodeid1, const char *name1,
+ 			struct node *wn1 = wnode1 ? *wnode1 : NULL;
+ 
+ 			unlock_path(f, nodeid1, wn1, NULL, ticket);
+-			free(path1);
++			free(*path1);
+ 			if (ticket && err != -EAGAIN)
+ 				release_tickets(f, nodeid1, wn1, ticket);
+ 		}
+
diff --git a/fuse.spec b/fuse.spec
index 704ac1b..b1604a3 100644
--- a/fuse.spec
+++ b/fuse.spec
@@ -1,6 +1,6 @@
 Name:           fuse
 Version:        2.8.7
-Release:        1%{?dist}.1
+Release:        2%{?dist}
 Summary:        File System in Userspace (FUSE) utilities
 
 Group:          System Environment/Base
@@ -11,6 +11,9 @@ Source1:	%{name}.conf
 
 Patch1:		fuse-0001-Fix-udev-rules-Fedora-specific.patch
 Patch2:		fuse-0002-More-parentheses.patch
+# Apply upstream fix for BZ#870485
+# http://fuse.git.sourceforge.net/git/gitweb.cgi?p=fuse/fuse;a=commit;h=3c4c063a2fd5cc6e9ce2b5db82e2a0dfa59b2e40
+Patch3:         fuse-3c4c063a2fd5cc6e9ce2b5db82e2a0dfa59b2e40.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires:       kernel >= 2.6.14
 Requires:       which
@@ -53,6 +56,7 @@ pgk-config) to develop FUSE based applications/filesystems.
 sed -i 's|mknod|echo Disabled: mknod |g' util/Makefile.in
 %patch1 -p1 -b .fix_udev_rules
 %patch2 -p1 -b .add_parentheses
+%patch3 -p1 -b .bz870485
 
 %build
 # Can't pass --disable-static here, or else the utils don't build
@@ -130,6 +134,9 @@ fi
 %{_includedir}/fuse
 
 %changelog
+* Wed Oct 31 2012 Tom Callaway <spot at fedoraproject.org> - 2.8.7-2
+- apply upstream fix for crash caused by freeing a stack address (bz870485)
+
 * Thu Apr 19 2012 Peter Lemenkov <lemenkov at gmail.com> - 2.8.7-1
 - Ver. 2.8.7
 


More information about the scm-commits mailing list