glusterfs/0443-fuse-fix-high-sev-coverity-issue.patch
Rinku Kothiya 14e44be7b0 autobuild v6.0-38
Resolves: bz#1234220 bz#1286171 bz#1487177 bz#1524457 bz#1640573
Resolves: bz#1663557 bz#1667954 bz#1683602 bz#1686897 bz#1721355
Resolves: bz#1748865 bz#1750211 bz#1754391 bz#1759875 bz#1761531
Resolves: bz#1761932 bz#1763124 bz#1763129 bz#1764091 bz#1775637
Resolves: bz#1776901 bz#1781550 bz#1781649 bz#1781710 bz#1783232
Resolves: bz#1784211 bz#1784415 bz#1786516 bz#1786681 bz#1787294
Resolves: bz#1787310 bz#1787331 bz#1787994 bz#1790336 bz#1792873
Resolves: bz#1794663 bz#1796814 bz#1804164 bz#1810924 bz#1815434
Resolves: bz#1836099 bz#1837467 bz#1837926 bz#1838479 bz#1839137
Resolves: bz#1844359
Signed-off-by: Rinku Kothiya <rkothiya@redhat.com>
2020-06-10 00:48:36 -04:00

56 lines
1.7 KiB
Diff

From 3ac3312d63b9dc3c15cd8765ab8b7c601b007500 Mon Sep 17 00:00:00 2001
From: Sunny Kumar <sunkumar@redhat.com>
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 <sunkumar@redhat.com>
BUG: 1787310
Change-Id: Ib2c9af25019ee57131b3d384fc4b557437e75d3e
Signed-off-by: Csaba Henk <csaba@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/202759
Tested-by: RHGS Build Bot <nigelb@redhat.com>
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
---
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