[PATCH 0/2] lib: fix snprintf() for UTF-16 strings

Simon Glass sjg at chromium.org
Mon Jan 31 17:13:15 CET 2022


Hi Heinrich,

On Sat, 29 Jan 2022 at 10:40, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Up to now printing UTF-16 strings with snprintf() resulted in correct
> truncation of printed strings. But the returned required buffer length
> was incorrect.
>
> * fix function string16()
> * provide a unit test
>
> Heinrich Schuchardt (2):
>   lib: fix snprintf() for UTF-16 strings
>   test: test UTF-16 truncation in sprintf()
>
>  lib/vsprintf.c    | 14 ++++++++++++--
>  test/unicode_ut.c | 31 +++++++++++++++++++++++++++++++
>  2 files changed, 43 insertions(+), 2 deletions(-)
>
> --
> 2.33.1
>

Would you mind reviewing this one, please?

https://patchwork.ozlabs.org/project/uboot/list/?series=282385

I am worried there might be conflicts and it has been outstanding for
a long time.

Regards,
Simon


More information about the U-Boot mailing list