udf: Avoid run away loop when partition table length is corrupted
commit65ff664e2f099decc176a151670d6ecb9b6efb60
authorJan Kara <jack@suse.cz>
Wed, 27 Jun 2012 18:20:22 +0000 (27 20:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 7 Oct 2012 21:37:54 +0000 (7 23:37 +0200)
tree48d317f53da26d7c3ee4a73ef8fc64e1394ad351
parentdb8a784af98d392a51fa25bb651bf90a982044e3
udf: Avoid run away loop when partition table length is corrupted

commit adee11b2085bee90bd8f4f52123ffb07882d6256 upstream.

Check provided length of partition table so that (possibly maliciously)
corrupted partition table cannot cause accessing data beyond current buffer.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/udf/super.c