!20 升级到3.10.5

From: @lixiaokeng
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
This commit is contained in:
openeuler-ci-bot 2021-11-24 08:31:52 +00:00 committed by Gitee
commit 8f57c50b84
5 changed files with 4 additions and 71 deletions

View File

@ -1,29 +0,0 @@
From d632df7ef5ede4d5a818a1bedbea8659113470b8 Mon Sep 17 00:00:00 2001
From: winndows <winndows@163.com>
Date: Wed, 1 Jul 2020 13:20:01 +0800
Subject: [PATCH 1/2] libfuse: Assign NULL to "old" to avoid free it twice
(#522)
Assign NULL to "old" at the first free(), to avoid the possible 2nd free() for it.
Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
Co-authored-by: Liao Pingfang <liao.pingfang@zte.com.cn>
---
lib/modules/iconv.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/modules/iconv.c b/lib/modules/iconv.c
index eb5edd8..3a4db7c 100644
--- a/lib/modules/iconv.c
+++ b/lib/modules/iconv.c
@@ -705,6 +705,7 @@ static struct fuse_fs *iconv_new(struct fuse_args *args,
if (old) {
setlocale(LC_CTYPE, old);
free(old);
+ old = NULL;
}
ic->next = next[0];
--
1.8.3.1

View File

@ -1,39 +0,0 @@
From bcb7659504c0b0ba6ab0fe0db930b686381da9ab Mon Sep 17 00:00:00 2001
From: winndows <winndows@163.com>
Date: Sat, 11 Jul 2020 02:58:07 +0800
Subject: [PATCH 2/2] fuse_lowlevel: Move assert for se before dereferencing it
with se->debug (#530)
Move assert for se before dereferencing it with se->debug.
Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
Co-authored-by: Liao Pingfang <liao.pingfang@zte.com.cn>
---
lib/fuse_lowlevel.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index 3dabbd5..7b72ee0 100644
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -167,6 +167,7 @@ static int fuse_send_msg(struct fuse_session *se, struct fuse_chan *ch,
{
struct fuse_out_header *out = iov[0].iov_base;
+ assert(se != NULL);
out->len = iov_length(iov, count);
if (se->debug) {
if (out->unique == 0) {
@@ -189,8 +190,6 @@ static int fuse_send_msg(struct fuse_session *se, struct fuse_chan *ch,
int err = errno;
if (res == -1) {
- assert(se != NULL);
-
/* ENOENT means the operation was interrupted */
if (!fuse_session_exited(se) && err != ENOENT)
perror("fuse: writing device");
--
1.8.3.1

BIN
fuse-3.10.5.tar.xz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
%global fuse3ver 3.9.2
%global fuse3ver 3.10.5
Name: fuse3
Version: %{fuse3ver}
@ -10,8 +10,6 @@ Source0: https://github.com/libfuse/libfuse/archive/fuse-%{fuse3ver}.tar.xz
Source1: fuse.conf
Patch1: 0001-fix-chown-and-mknod-failed.patch
Patch2: 0002-libfuse-Assign-NULL-to-old-to-avoid-free-it-twice-52.patch
Patch3: 0003-fuse_lowlevel-Move-assert-for-se-before-dereferencin.patch
BuildRequires: libselinux-devel, pkgconfig, systemd-udev, meson, fdupes
BuildRequires: autoconf, automake, libtool, gettext-devel, ninja-build
@ -102,6 +100,9 @@ install -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}
%{_mandir}/man8/*
%changelog
* Tue Nov 23 2021 lixiaokeng <lixiaokeng@huawei.com> -3.10.5-1
- upgrade to 3.10.5
* Mon Jul 26 2021 lixiaokeng <lixiaokeng@huawei.com> -3.9.2-6
- autosetup patch