kernel-ark/fs/udf
Marcin Slusarz 6305a0a9d5 udf: fix udf_build_ustr
udf_build_ustr was broken:

- size == 1:
    dest->u_len = ptr[1 - 1], but at ptr[0] there's cmpID,
    so we created string with wrong length
    it should not happen, so we BUG() it
- size > 1 and size < UDF_NAME_LEN:
    we set u_len correctly, but memcpy copied one needless byte
- size == UDF_NAME_LEN - 1:
    memcpy overwrited u_len - with correct value, but...
- size >= UDF_NAME_LEN:
    we copied UDF_NAME_LEN - 1 bytes, but dest->u_name is array
    of UDF_NAME_LEN - 2 bytes, so we were overwriting u_len with
    character from input string

nobody noticed because all callers set size
to acceptable values (constants within range)

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2008-04-17 14:22:24 +02:00
..
balloc.c udf: fix udf_add_free_space 2008-02-13 16:21:20 -08:00
crc.c udf: fix coding style 2008-02-08 09:22:35 -08:00
dir.c udf: kill useless file header comments for vfs method implementations 2008-04-17 14:22:23 +02:00
directory.c udf: cleanup directory offset handling 2008-02-08 09:22:36 -08:00
ecma_167.h
file.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
fsync.c
ialloc.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
inode.c udf: kill useless file header comments for vfs method implementations 2008-04-17 14:22:23 +02:00
lowlevel.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
Makefile
misc.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
namei.c udf: kill useless file header comments for vfs method implementations 2008-04-17 14:22:23 +02:00
osta_udf.h
partition.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
super.c make udf_error() static 2008-04-17 14:22:23 +02:00
symlink.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
truncate.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
udf_i.h udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
udf_sb.h udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
udfdecl.h udf: udf_CS0toUTF8 cleanup 2008-04-17 14:22:23 +02:00
udfend.h
udftime.c udf: fix coding style 2008-02-08 09:22:35 -08:00
unicode.c udf: fix udf_build_ustr 2008-04-17 14:22:24 +02:00