[SCM] Samba Shared Repository - branch master updated

Ralph Böhme slow at samba.org
Mon Jan 8 02:17:02 UTC 2018


The branch, master has been updated
       via  7bc329f vfs_fileid: fix a use after free
      from  debf8ba vfs_fileid: add fileid:algorithm = fsname_norootdir

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 7bc329fcc9776312081f21f6aabd2a3171533287
Author: Ralph Boehme <slow at samba.org>
Date:   Sat Jan 6 16:13:52 2018 +0100

    vfs_fileid: fix a use after free
    
    Signed-off-by: Ralph Boehme <slow at samba.org>
    Reviewed-by: Jeremy Allison <jra at samba.org>
    
    Autobuild-User(master): Ralph Böhme <slow at samba.org>
    Autobuild-Date(master): Mon Jan  8 03:16:30 CET 2018 on sn-devel-144

-----------------------------------------------------------------------

Summary of changes:
 source3/modules/vfs_fileid.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_fileid.c b/source3/modules/vfs_fileid.c
index 98cc32d..c890876 100644
--- a/source3/modules/vfs_fileid.c
+++ b/source3/modules/vfs_fileid.c
@@ -233,9 +233,11 @@ static uint64_t fileid_device_mapping_hostname(struct fileid_handle_data *data,
 		return UINT64_MAX;
 	}
 	devname_len = talloc_array_length(devname) - 1;
-	TALLOC_FREE(devname);
 
 	id = fileid_uint64_hash((uint8_t *)devname, devname_len);
+
+	TALLOC_FREE(devname);
+
 	return id;
 }
 


-- 
Samba Shared Repository



More information about the samba-cvs mailing list