From: Eric Sesterhenn Date: Thu, 16 Oct 2008 05:04:11 +0000 (-0700) Subject: hfs: fix namelength memory corruption X-Git-Tag: v2.6.28-rc1~361 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d38b7aa7fc3371b52d036748028db50b585ade2e;p=pandora-kernel.git hfs: fix namelength memory corruption Fix a stack corruption caused by a corrupted hfs filesystem. If the catalog name length is corrupted the memcpy overwrites the catalog btree structure. Since the field is limited to HFS_NAMELEN bytes in the structure and the file format, we throw an error if it is too long. Cc: Roman Zippel Signed-off-by: Eric Sesterhenn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed