lib: vsprintf: avoid overflow printing UTF16 strings
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 10 Feb 2019 10:11:26 +0000 (11:11 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 13 Feb 2019 08:40:06 +0000 (09:40 +0100)
commit0e66c10a7d808062898f9a19f0c95f04d8dd85ed
tree4c03de59966d96a733c85634721a567760e5b8a0
parent5fbb28958becc2e725d2ee14a35c3b2f0918c62f
lib: vsprintf: avoid overflow printing UTF16 strings

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.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/vsprintf.c