udf: Fix oops when invalid character in filename occurs
authorJan Kara <jack@suse.cz>
Wed, 4 Feb 2009 18:46:11 +0000 (19:46 +0100)
committerJan Kara <jack@suse.cz>
Thu, 2 Apr 2009 10:29:53 +0000 (12:29 +0200)
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: Jan Kara <jack@suse.cz>

No differences found