On Sun, 10 Feb 2019 at 04:11, Heinrich Schuchardt <xypron.g...@gmx.de> 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 <xypron.g...@gmx.de> > --- > v2 > Use the exact UTF8 length of the converted UTF16 character when > checking if sufficient space is remaining in the buffer. This > avoids missing up to 2 characters. > --- > lib/vsprintf.c | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <s...@chromium.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot