Fix possible UDF data corruption
authorJan Kara <jack@suse.cz>
Fri, 1 Jun 2007 07:46:29 +0000 (00:46 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 1 Jun 2007 15:18:27 +0000 (08:18 -0700)
commit85d71244f02583886dc20a60df2d4657d42116b4
tree9140675832d488f40f5a4b230ff7c651a598dbf4
parent296baae254c2e9ead4da5bfa57ecec86750331c7
Fix possible UDF data corruption

update_next_aext() could possibly rewrite values in elen and eloc, possibly
leading to data corruption when rewriting a file.  Use temporary variables
instead.  Also advance cur_epos as it can also point to an indirect extent
pointer.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/udf/inode.c