mirror of
https://github.com/samba-team/samba.git
synced 2025-08-27 05:49:32 +03:00
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
This commit is contained in:
committed by
Jeremy Allison
parent
ce11eb5b94
commit
8576256738
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user