The Samba-Bugzilla – Attachment 14112 Details for
Bug 13372
vfswrap_getwd() leaks memory.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for master.
0001-s3-smbd-Fix-memory-leak-in-vfswrap_getwd.patch (text/plain), 1.03 KB, created by
Jeremy Allison
on 2018-04-06 23:04:41 UTC
(
hide
)
Description:
git-am fix for master.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2018-04-06 23:04:41 UTC
Size:
1.03 KB
patch
obsolete
>From 92e8095023f82238c0490fc36a38af0ba9eeed8c Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Fri, 6 Apr 2018 13:52:52 -0700 >Subject: [PATCH] s3: smbd: Fix memory leak in vfswrap_getwd() > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=13372 > >Signed-off-by: Andrew Walker <awalker@ixsystems.com>. >Reviewed-by: Jeremy Allison <jra@samba.org> >--- > source3/modules/vfs_default.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > >diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c >index a26bec457ae..a9c87e444fe 100644 >--- a/source3/modules/vfs_default.c >+++ b/source3/modules/vfs_default.c >@@ -2229,9 +2229,12 @@ static struct smb_filename *vfswrap_getwd(vfs_handle_struct *handle, > NULL, > NULL, > 0); >- if (smb_fname == NULL) { >- SAFE_FREE(result); >- } >+ /* >+ * sys_getwd() *always* returns malloced memory. >+ * We must free here to avoid leaks: >+ * BUG:https://bugzilla.samba.org/show_bug.cgi?id=13372 >+ */ >+ SAFE_FREE(result); > return smb_fname; > } > >-- >2.17.0.484.g0c8726318c-goog >
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
Actions:
View
Attachments on
bug 13372
:
14108
|
14109
|
14112
|
14115