udf: Avoid run away loop when partition table length is corrupted
authorJan Kara <jack@suse.cz>
Wed, 27 Jun 2012 18:20:22 +0000 (20:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:03:51 +0000 (09:03 -0700)
commitb3b9f9cd546c4b3d72b0a95ba4ca29c840fce28e
tree51efd28037725f043eb319413e0aebecea312683
parent132a45d8bdc699d831dcc51cfd4db7238d183b42
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>
fs/udf/super.c