]> git.karo-electronics.de Git - karo-tx-linux.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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:53 +0000 (15:35 -0400)
commit2ccd3d16c41e5b6226f24bb168298f18b90c5415
tree145119744429d2e43e8c4d94208e804b4b8a321e
parent7db9f90917b40dde4c5ea003cf58cd9eddb557c1
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: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/hfs/trans.c