lib/adouble: drop ad_data reallocate logic
authorRalph Boehme <slow@samba.org>
Fri, 25 Oct 2019 13:21:32 +0000 (15:21 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 30 Oct 2019 13:23:42 +0000 (13:23 +0000)
commit9a3da6bebcdb924ca2027337544d79ac2088677e
tree8ef42b500832c89fcb2b3ae0ce30cbbf9f5b4584
parentbaaaf59e948df625b01fa8b6317ab5c3babb4e8f
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>
source3/lib/adouble.c