]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hfs: add sanity check for file name length
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 14 Nov 2011 14:52:08 +0000 (17:52 +0300)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:18:50 +0000 (11:18 -0800)
commit8dba745154e8afeefbf78f2cabcbd4d6f8432127
tree3342d976e757d1f7a74a91a1bab27552fe1b59e8
parentba9e67df20214ab1970921b6df63efdf677fff4a
hfs: add sanity check for file name length

commit bc5b8a9003132ae44559edd63a1623b7b99dfb68 upstream.

On a corrupted file system the ->len field could be wrong leading to
a buffer overflow.

Reported-and-acked-by: Clement LECIGNE <clement.lecigne@netasq.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/hfs/trans.c