Skip to content

udf: UTF handling fix and cleanups

Jan Kara linux-fsdevel stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7udf: Fix leak of UTF-16 surrogates into encoded stringsfs/udf/unicode.c+6 -00 replies
2/7udf: Always require NLS supportfs/udf/Kconfig fs/udf/super.c+1 -130 replies
3/7udf: Use UTF-32 <-> UTF-8 conversion functions from NLSfs/udf/unicode.c+17 -630 replies
4/7udf: Convert ident strings to proper charsetfs/udf/super.c fs/udf/udfdecl.h fs/udf/unicode.c+14 -60 replies
5/7udf: Push sb argument to udf_name_[to|from]_CS0()fs/udf/unicode.c+24 -330 replies
6/7udf: Add support for encoding UTF-16 charactersfs/udf/unicode.c+43 -360 replies
7/7udf: Add support for decoding UTF-16 charactersfs/udf/unicode.c+68 -350 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] udf: UTF handling fix and cleanups

Hello,

the first patch in the series fixes a possible leak of UTF-16 surrogates into the resulting UTF-8 string decoded from on-disk names. The rest of the series the cleans up the unicode conversion functions somewhat and adds support for full encoding and decoding of UTF-16 characters outside of Base Multilingual Plane (characters needing more than one UTF-16 codepoint). Review and testing is welcome.

Honza