• Jan Kara's avatar
    udf: Fix oops when invalid character in filename occurs · 59285c28
    Jan Kara authored
    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>
    59285c28
unicode.c 11.1 KB