]> err.no Git - linux-2.6/commit
ecryptfs: fix string overflow on long cipher names
authorEric Sandeen <sandeen@redhat.com>
Sat, 22 Dec 2007 22:03:24 +0000 (14:03 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 23 Dec 2007 20:54:36 +0000 (12:54 -0800)
commitb88629060b03adc58639f818fe0968bf5fe81b5d
tree5ee2455acde11f0f229de31a73a4475df3445e82
parented367fc3a7349b17354c7acef551533337764859
ecryptfs: fix string overflow on long cipher names

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 <sandeen@redhat.com>
Acked-by: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/crypto.c