s3:smbd: Fix invalid memory access in posix_sys_acl_blob_get_fd()
commiteac2d1504b72d766762f2991c0acd1355835a2cd
authorAndreas Schneider <asn@samba.org>
Mon, 1 Feb 2021 11:03:17 +0000 (1 12:03 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 3 Feb 2021 21:23:55 +0000 (3 21:23 +0000)
treeac883e03de56cabe6973a77b761e2c9d37307748
parentcc1568be4d4250390a9ad03c84f5e260fc7acffd
s3:smbd: Fix invalid memory access in posix_sys_acl_blob_get_fd()

We are handing down an out of scope buffer.

Found by AddressSanitizer.

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 0a93f5367bc55ee14f13da5bdb812333c9d9e9f3)
source3/smbd/posix_acls.c