linux/fs/udf
Jan Kara 44f06ba829 udf: Fix leak of UTF-16 surrogates into encoded strings
OSTA UDF specification does not mention whether the CS0 charset in case
of two bytes per character encoding should be treated in UTF-16 or
UCS-2. The sample code in the standard does not treat UTF-16 surrogates
in any special way but on systems such as Windows which work in UTF-16
internally, filenames would be treated as being in UTF-16 effectively.
In Linux it is more difficult to handle characters outside of Base
Multilingual plane (beyond 0xffff) as NLS framework works with 2-byte
characters only. Just make sure we don't leak UTF-16 surrogates into the
resulting string when loading names from the filesystem for now.

CC: stable@vger.kernel.org # >= v4.6
Reported-by: Mingye Wang <arthur200126@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2018-04-18 16:34:55 +02:00
..
balloc.c
dir.c
directory.c
ecma_167.h
file.c udf: Apply uid/gid mount options also to new inodes & chown 2018-02-27 10:25:33 +01:00
ialloc.c udf: Apply uid/gid mount options also to new inodes & chown 2018-02-27 10:25:33 +01:00
inode.c udf: Clean up handling of invalid uid/gid 2018-02-27 10:25:33 +01:00
Kconfig udf: Update Kconfig description 2015-01-05 11:04:37 +01:00
lowlevel.c
Makefile
misc.c
namei.c
osta_udf.h
partition.c
super.c udf: fix potential refcnt problem of nls module 2018-03-02 14:23:12 +01:00
symlink.c
truncate.c
udf_i.h
udf_sb.h udf: Do not mark possibly inconsistent filesystems as closed 2018-03-02 14:22:57 +01:00
udfdecl.h udf: Clean up handling of invalid uid/gid 2018-02-27 10:25:33 +01:00
udfend.h
udftime.c udf: Sanitize nanoseconds for time stamps 2017-12-19 08:11:01 +01:00
unicode.c udf: Fix leak of UTF-16 surrogates into encoded strings 2018-04-18 16:34:55 +02:00