udf: Fortify loading of sparing table
authorJan Kara <jack@suse.cz>
Wed, 27 Jun 2012 19:23:07 +0000 (21:23 +0200)
committerJan Kara <jack@suse.cz>
Thu, 28 Jun 2012 17:31:09 +0000 (19:31 +0200)
commit1df2ae31c724e57be9d7ac00d78db8a5dabdd050
tree359174ba11f0884c778c72c07578e5a35cf603e3
parentadee11b2085bee90bd8f4f52123ffb07882d6256
udf: Fortify loading of sparing table

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