From: Jan Kara Date: Wed, 30 Apr 2008 07:52:33 +0000 (-0700) Subject: isofs: fix access to unallocated memory when reading corrupted filesystem X-Git-Tag: v2.6.26-rc1~315 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2deb1acc653cbd5384b107d050d2deba089db2bd;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed