lib/adouble: drop ad_data reallocate logic
authorRalph Boehme <slow@samba.org>
Fri, 25 Oct 2019 13:21:32 +0000 (15:21 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 8 Nov 2019 12:32:28 +0000 (12:32 +0000)
commitc00a8959b6ff474478a40469cd5ea367c7037be4
tree01689b4f8cce313bba3cdd0807054bd67e72bec0
parent1fa47717494f63413c1fe6a1e348605bdc2a17f3
lib/adouble: drop ad_data reallocate logic

Simply set the buffer size to AD_XATTR_MAX_HDR_SIZE. When reading the
AppleDouble file, read up to AD_XATTR_MAX_HDR_SIZE from the file.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14171

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(backported from commit 9a3da6bebcdb924ca2027337544d79ac2088677e)
source3/modules/vfs_fruit.c