Re: [PATCH v2 2/7] udf: Check output buffer length when converting name to CS0

2016-01-04 Thread Jan Kara
On Thu 24-12-15 10:25:33, Andrew Gabbasov wrote: > If a name contains at least some characters with Unicode values > exceeding single byte, the CS0 output should have 2 bytes per character. > And if other input characters have single byte Unicode values, then > the single input byte is converted to

[PATCH v2 2/7] udf: Check output buffer length when converting name to CS0

2015-12-24 Thread Andrew Gabbasov
If a name contains at least some characters with Unicode values exceeding single byte, the CS0 output should have 2 bytes per character. And if other input characters have single byte Unicode values, then the single input byte is converted to 2 output bytes, and the length of output becomes larger