vfs_fruit: allocate ad_data buffer up to AD_XATTR_MAX_HDR_SIZE bytes
authorRalph Boehme <slow@samba.org>
Tue, 10 Oct 2017 14:04:29 +0000 (16:04 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 25 Oct 2017 06:43:05 +0000 (08:43 +0200)
commit0a620332b49fe74d47bb1bee16fb99fc6cf0eddf
tree1c66421be5852630a396efe59a60b5e1318492c3
parenta0acb0f6f6b27af6b9f14497d320fa2e2b9316ba
vfs_fruit: allocate ad_data buffer up to AD_XATTR_MAX_HDR_SIZE bytes

This is in preperation of reading potential xattr header data from the
AppleDouble file, not just reading a fixed amount of bytes.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13076

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit ab8d01959b906d0b2873357f836bff72d209ff98)
source3/modules/vfs_fruit.c