commit | 9afadc4b1fd25337003832c9a4668f9bd42cdda9 | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@ghost.suse.cz> | Tue May 06 18:26:17 2008 +0200 |
committer | Jan Kara <jack@suse.cz> | Wed May 07 09:49:52 2008 +0200 |
tree | 45f0ce3a176c3562ff308189ced71ebb6f0a1110 | |
parent | 221e583a735fc5d879d83c2a76b8ee5afcbdf146 [diff] |
udf: Fix memory corruption when fs mounted with noadinicb option When UDF filesystem is mounted with noadinicb mount option, it happens that we extend an empty directory with a block. A code in udf_add_entry() didn't count with this possibility and used uninitialized data leading to memory and filesystem corruption. Add a check whether file already has some extents before operating on them. Signed-off-by: Jan Kara <jack@suse.cz>