Re: [U-Boot] [PATCH v2 1/1] lib: vsprintf: avoid overflow printing UTF16 strings

2019-02-10 Thread Simon Glass
On Sun, 10 Feb 2019 at 04:11, Heinrich Schuchardt wrote: > > We have to ensure while printing UTF16 strings that we do not exceed the > end of the print buffer. > > Signed-off-by: Heinrich Schuchardt > --- > v2 > Use the exact UTF8 length of the converted UTF16 character when >

[U-Boot] [PATCH v2 1/1] lib: vsprintf: avoid overflow printing UTF16 strings

2019-02-10 Thread Heinrich Schuchardt
We have to ensure while printing UTF16 strings that we do not exceed the end of the print buffer. Signed-off-by: Heinrich Schuchardt --- v2 Use the exact UTF8 length of the converted UTF16 character when checking if sufficient space is remaining in the buffer. This avoids