The branch, master has been updated
       via  3bea5a1 s3-vfstest: Fix an uninitialized read in close
       via  25d3a2e s3-vfstest: Fix a double-free on closing a file
      from  dab7b0e s3:auth: fill the sids array of the info3 in 
wbcAuthUserInfo_to_netr_SamInfo3() (bug #8739)

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


- Log -----------------------------------------------------------------
commit 3bea5a147b2a381fc4fa860c7b1ceeed11be4e80
Author: Volker Lendecke <[email protected]>
Date:   Thu Feb 2 16:24:30 2012 +0100

    s3-vfstest: Fix an uninitialized read in close
    
    Autobuild-User: Volker Lendecke <[email protected]>
    Autobuild-Date: Thu Feb  2 18:00:58 CET 2012 on sn-devel-104

commit 25d3a2e83c66371eeee9a5f34a5379b87435e687
Author: Volker Lendecke <[email protected]>
Date:   Thu Feb 2 16:23:40 2012 +0100

    s3-vfstest: Fix a double-free on closing a file
    
    "mem_ctx" will be gone after we leave the routine

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

Summary of changes:
 source3/torture/cmd_vfs.c |    2 +-
 source3/torture/vfstest.c |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c
index 7c44a48..667cc16 100644
--- a/source3/torture/cmd_vfs.c
+++ b/source3/torture/cmd_vfs.c
@@ -329,7 +329,7 @@ static NTSTATUS cmd_open(struct vfs_state *vfs, TALLOC_CTX 
*mem_ctx, int argc, c
        }
        fsp->conn = vfs->conn;
 
-       status = create_synthetic_smb_fname_split(mem_ctx, argv[1], NULL,
+       status = create_synthetic_smb_fname_split(NULL, argv[1], NULL,
                                                  &smb_fname);
        if (!NT_STATUS_IS_OK(status)) {
                SAFE_FREE(fsp);
diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c
index 95c377a..22cded8 100644
--- a/source3/torture/vfstest.c
+++ b/source3/torture/vfstest.c
@@ -478,6 +478,10 @@ int main(int argc, char *argv[])
        /* some advanced initialization stuff */
        smbd_vfs_init(vfs.conn);
 
+       if (!posix_locking_init(false)) {
+               return 1;
+       }
+
        /* Do we have a file input? */
        if (filename && filename[0]) {
                process_file(&vfs, filename);


-- 
Samba Shared Repository

Reply via email to