8 Star 0 Fork 5

src-anolis-os/glusterfs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0443-fuse-fix-high-sev-coverity-issue.patch 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
geliwei 提交于 2021-06-16 16:09 . update to glusterfs-6.0-49.1.el8.src.rpm
From 3ac3312d63b9dc3c15cd8765ab8b7c601b007500 Mon Sep 17 00:00:00 2001
From: Sunny Kumar <[email protected]>
Date: Tue, 19 Mar 2019 22:51:14 +0530
Subject: [PATCH 443/449] fuse : fix high sev coverity issue
This patch fixed coverity issue in fuse-bridge.c.
CID : 1398630 : Resource leak
CID : 1399757 : Uninitialized pointer read
Upstream patch https://review.gluster.org/c/glusterfs/+/22382
> updates: bz#789278
>
> Change-Id: I69f8591400ee56a5d215eeac443a8e3d7777db27
> Signed-off-by: Sunny Kumar <[email protected]>
BUG: 1787310
Change-Id: Ib2c9af25019ee57131b3d384fc4b557437e75d3e
Signed-off-by: Csaba Henk <[email protected]>
Reviewed-on: https://code.engineering.redhat.com/gerrit/202759
Tested-by: RHGS Build Bot <[email protected]>
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <[email protected]>
---
xlators/mount/fuse/src/fuse-bridge.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index cfad2b4..d17320b 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -4174,6 +4174,7 @@ fuse_setxattr(xlator_t *this, fuse_in_header_t *finh, void *msg,
if (ret < 0) {
op_errno = -ret;
GF_FREE(dict_value);
+ GF_FREE(newkey);
goto done;
}
@@ -5963,7 +5964,12 @@ fuse_thread_proc(void *data)
ssize_t res = 0;
struct iobuf *iobuf = NULL;
fuse_in_header_t *finh = NULL;
- struct iovec iov_in[2];
+ struct iovec iov_in[2] = {
+ {
+ 0,
+ },
+ };
+
void *msg = NULL;
/* we need 512 extra buffer size for BATCH_FORGET fop. By tests, it is
found to be reduces 'REALLOC()' in the loop */
--
1.8.3.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-anolis-os/glusterfs.git
[email protected]:src-anolis-os/glusterfs.git
src-anolis-os
glusterfs
glusterfs
a8

搜索帮助