mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 20:06:35 +00:00
parse_dcal() validate num_aces to allocate ace array. f (num_aces > ULONG_MAX / sizeof(struct smb_ace *)) It is an incorrect validation that we can create an array of size ULONG_MAX. smb_acl has ->size field to calculate actual number of aces in response buffer size. Use this to check invalid num_aces. Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>