David Howells bfd4981fe3 afs: Fix storage of cell names
[ Upstream commit 719fdd32921fb7e3208db8832d32ae1c2d68900f ]

The cell name stored in the afs_cell struct is a 64-char + NUL buffer -
when it needs to be able to handle up to AFS_MAXCELLNAME (256 chars) + NUL.

Fix this by changing the array to a pointer and allocating the string.

Found using Coverity.

Fixes: 989782dcdc91 ("afs: Overhaul cell database management")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-30 15:37:02 -04:00
..
2019-07-08 19:36:47 -07:00
2020-06-30 15:37:02 -04:00
2020-06-24 17:50:46 +02:00
2020-06-30 15:37:02 -04:00
2020-01-09 10:19:48 +01:00
2019-09-02 11:43:54 +01:00
2019-07-10 20:55:33 -07:00