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)
committerJan Kara <jack@suse.cz>
Thu, 28 Jun 2012 17:30:58 +0000 (19:30 +0200)
commitadee11b2085bee90bd8f4f52123ffb07882d6256
treec0219a7105329d633a9101235548a587bfcebee2
parentcb14d340ef1737c24125dd663eff77734a482d47
udf: Avoid run away loop when partition table length is corrupted

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>
fs/udf/super.c