udf: Fortify loading of sparing table
authorJan Kara <jack@suse.cz>
Wed, 27 Jun 2012 19:23:07 +0000 (21:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:03:51 +0000 (09:03 -0700)
commit4836ee563d65bb492f907cbe267a5761b9693e4d
treea511d2b95441b7e36c9c8ea2ef70a36a0c7161f0
parentb3b9f9cd546c4b3d72b0a95ba4ca29c840fce28e
udf: Fortify loading of sparing table

commit 1df2ae31c724e57be9d7ac00d78db8a5dabdd050 upstream.

Add sanity checks when loading sparing table from disk to avoid accessing
unallocated memory or writing to it.

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