s3:vfs_gpfs fix memory corruption in gpfs2smb_acl
commit545973ed1bcb86292813a5aa92441c34bb94719c
authorChristian Ambach <ambi@samba.org>
Fri, 2 Nov 2012 07:41:10 +0000 (2 08:41 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 3 Dec 2012 11:47:02 +0000 (3 12:47 +0100)
tree81bb5ee1116978095d6a0e5305bf6b37311e060d
parent066a957b9f834915113c98bdbff7cce7d07ee349
s3:vfs_gpfs fix memory corruption in gpfs2smb_acl

sys_acl_init returns a SMB_ACL_T with zero entries in the acl array
reallocate the array to proper size before filling it, otherwise we overwrite memory

This one is a result of a improper fixing in 7a6182962966e5edb42728c8

Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 1a71f07cee0bfe50ea6821a195a950d2206aab55)
source3/modules/vfs_gpfs.c