Skip to content
Commit 59285c28 authored by Jan Kara's avatar Jan Kara
Browse files

udf: Fix oops when invalid character in filename occurs



Functions udf_CS0toNLS() and udf_NLStoCS0() didn't count with the fact that
NLS can return negative length when invalid character is given to it for
conversion. Thus interesting things could happen (such as overwriting random
memory with the rest of filename). Add appropriate checks.

Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 557f5a14
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