diff options
author | Volker Lendecke <vl@samba.org> | 2012-05-21 14:41:40 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-05-21 22:10:15 +0200 |
commit | 857625673833ddfa3897ce30def118cb593865b6 (patch) | |
tree | 62820d2d710b93ba8806b9e598d5e5cab42ba489 /source3 | |
parent | ce11eb5b9427e4ba5b86c6cd0378a7300ce1218f (diff) | |
download | samba-857625673833ddfa3897ce30def118cb593865b6.tar.gz samba-857625673833ddfa3897ce30def118cb593865b6.tar.bz2 samba-857625673833ddfa3897ce30def118cb593865b6.zip |
s3: Fix vfs_xattr_tdb.c
"size" is the maximum buffer, only copy what we actually got. For me, this
fixes valgrind errors in the DIR1 test that might potentially make DIR1
non-flaky again.
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon May 21 22:10:15 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_xattr_tdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index ee3199d277..fc5c3de6e5 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -57,7 +57,7 @@ static ssize_t xattr_tdb_getxattr(struct vfs_handle_struct *handle, errno = ERANGE; return -1; } - memcpy(value, blob.data, size); + memcpy(value, blob.data, xattr_size); return xattr_size; } |