s3:vfs_gpfs fix memory corruption in gpfs2smb_acl
commit1a71f07cee0bfe50ea6821a195a950d2206aab55
authorChristian Ambach <ambi@samba.org>
Fri, 2 Nov 2012 07:41:10 +0000 (2 08:41 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Nov 2012 22:28:21 +0000 (16 23:28 +0100)
treeb523e4b1efc0596f3d4726d01df4bc5b531990d1
parent3dab1ef8a57670a36a81e706895bbe225892f3ff
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>
source3/modules/vfs_gpfs.c