The Samba-Bugzilla – Attachment 6902 Details for
Bug 8464
SEGV in dirsort plugin when opening non-existent directory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix SEGV when opening non-existent directory
0002-Fix-SEGV-when-opening-non-existent-directory.patch (text/plain), 834 bytes, created by
(account disabled)
on 2011-09-17 05:15:06 UTC
(
hide
)
Description:
Fix SEGV when opening non-existent directory
Filename:
MIME Type:
Creator:
(account disabled)
Created:
2011-09-17 05:15:06 UTC
Size:
834 bytes
patch
obsolete
>From b58e7e621dd094105c4a0523db8645daa29da71f Mon Sep 17 00:00:00 2001 >Date: Thu, 1 Sep 2011 16:24:57 -0700 >Subject: [PATCH 2/5] Fix SEGV when opening non-existent directory. > >--- > source3/modules/vfs_dirsort.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > >diff --git a/source3/modules/vfs_dirsort.c b/source3/modules/vfs_dirsort.c >index 1dd8919..92909a0 100644 >--- a/source3/modules/vfs_dirsort.c >+++ b/source3/modules/vfs_dirsort.c >@@ -113,6 +113,11 @@ static SMB_STRUCT_DIR *dirsort_opendir(vfs_handle_struct *handle, > data->source_directory = SMB_VFS_NEXT_OPENDIR(handle, fname, mask, > attr); > >+ if (data->source_directory == NULL) { >+ SAFE_FREE(data); >+ return NULL; >+ } >+ > data->fd = dirfd(data->source_directory); > > SMB_VFS_HANDLE_SET_DATA(handle, data, free_dirsort_privates, >-- >1.7.3.4 >
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 8464
: 6902