udf: Avoid overflow when session starts at large offset
authorJan Kara <jack@suse.cz>
Mon, 16 Oct 2017 09:38:11 +0000 (11:38 +0200)
committerJan Kara <jack@suse.cz>
Mon, 16 Oct 2017 09:38:11 +0000 (11:38 +0200)
commitabdc0eb06964fe1d2fea6dd1391b734d0590365d
tree6c75ded4a2c2df2c1640d61c9a3cfcced615134e
parent8af634ff9e5c0fd5daff37c9759cd6594345b372
udf: Avoid overflow when session starts at large offset

When session starts beyond offset 2^31 the arithmetics in
udf_check_vsd() would overflow. Make sure the computation is done in
large enough type.

Reported-by: Cezary Sliwa <sliwa@ifpan.edu.pl>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c