Skip to content
Commit 9afadc4b authored by Jan Kara's avatar Jan Kara Committed by Jan Kara
Browse files

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: default avatarJan Kara <jack@suse.cz>
parent 221e583a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment