Re: [PATCH] ecryptfs: fix string overflow on long cipher names

2007-12-18 Thread Michael Halcrow
On Tue, Dec 18, 2007 at 09:51:15AM -0600, Eric Sandeen wrote: > Passing a cipher name > 32 chars on mount results in an overflow > when the cipher name is printed, because the last character > in the struct ecryptfs_key_tfm's cipher_name string was never > zeroed. > > Signed-off-by: Eric Sandeen

[PATCH] ecryptfs: fix string overflow on long cipher names

2007-12-18 Thread Eric Sandeen
Passing a cipher name > 32 chars on mount results in an overflow when the cipher name is printed, because the last character in the struct ecryptfs_key_tfm's cipher_name string was never zeroed. Signed-off-by: Eric Sandeen <[EMAIL PROTECTED]> --- Index: linux-2.6.24-rc3/fs/ecryptfs/crypto.c ===