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 15:47:38 +0000 (08:47 -0700)
commit8411aa07c7aa22ef3fe269a05e45e672590e4f7f
tree6d573278c6db84c53c329813060a2cf0865141b4
parentf8db7530c08115356964240e4f9cc90fd112d251
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