The Samba-Bugzilla – Attachment 13726 Details for
Bug 13100
Double free in vfs_gluster
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 4.7
0001-s3-vfs_glusterfs-Fix-a-double-free-in-vfs_gluster_ge.patch (text/plain), 1.02 KB, created by
Andreas Schneider
on 2017-10-26 12:15:43 UTC
(
hide
)
Description:
patch for 4.7
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2017-10-26 12:15:43 UTC
Size:
1.02 KB
patch
obsolete
>From 5a42df799e1bd1d95d6bad6b8e21fae30a926c5c Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@samba.org> >Date: Wed, 25 Oct 2017 19:39:34 +0200 >Subject: [PATCH] s3:vfs_glusterfs: Fix a double free in vfs_gluster_getwd() > >Found by cppcheck. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=13100 > >Signed-off-by: Andreas Schneider <asn@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> > >(cherry picked from commit 16389bed0773952ca563b7bf1fecc2a737587257) >--- > source3/modules/vfs_glusterfs.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c >index 91cf87faa11..c09ebe1c0f3 100644 >--- a/source3/modules/vfs_glusterfs.c >+++ b/source3/modules/vfs_glusterfs.c >@@ -1089,8 +1089,9 @@ static struct smb_filename *vfs_gluster_getwd(struct vfs_handle_struct *handle, > } > > ret = glfs_getcwd(handle->data, cwd, PATH_MAX - 1); >- if (ret == 0) { >+ if (ret == NULL) { > free(cwd); >+ return NULL; > } > smb_fname = synthetic_smb_fname(ctx, > ret, >-- >2.14.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
jra
:
review+
Actions:
View
Attachments on
bug 13100
: 13726 |
13727