]> err.no Git - linux-2.6/commit
isofs: fix access to unallocated memory when reading corrupted filesystem
authorJan Kara <jack@suse.cz>
Wed, 30 Apr 2008 07:52:33 +0000 (00:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:33 +0000 (08:29 -0700)
commit2deb1acc653cbd5384b107d050d2deba089db2bd
tree8d9a944b7f5b08b27d849a1aaa20d6ee3851ae9e
parent6bfe0b499082fd3950429017cd8ebf2a6c458aa5
isofs: fix access to unallocated memory when reading corrupted filesystem

When a directory on isofs is corrupted, we did not check whether length of the
name in a directory entry and the length of the directory entry itself are
consistent.  This could lead to possible access beyond the end of buffer when
the length of the name was too big.  Add this sanity check to directory
reading code.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/isofs/dir.c
fs/isofs/namei.c