linux_dsm_epyc7002/drivers/firmware/efi/libstub
Arvind Sankar 15c316bcbc efi/libstub: Get the exact UTF-8 length
efi_convert_cmdline currently overestimates the length of the equivalent
UTF-8 encoding.

snprintf can now be used to do the conversion to UTF-8, however, it does
not have a way to specify the size of the UTF-16 string, only the size
of the resulting UTF-8 string. So in order to use it, we need to
precalculate the exact UTF-8 size.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200518190716.751506-24-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
2020-05-20 19:09:20 +02:00
..
alignedmem.c efi/libstub: Add API function to allocate aligned memory 2020-04-24 14:52:16 +02:00
arm32-stub.c efi/libstub: Move pr_efi/pr_efi_err into efi namespace 2020-05-01 09:40:02 +02:00
arm64-stub.c efi/libstub: Move pr_efi/pr_efi_err into efi namespace 2020-05-01 09:40:02 +02:00
efi-stub-helper.c efi/libstub: Get the exact UTF-8 length 2020-05-20 19:09:20 +02:00
efi-stub.c efi/libstub: Check return value of efi_parse_options 2020-05-01 09:40:02 +02:00
efistub.h efi/gop: Add an option to list out the available GOP modes 2020-05-20 19:09:20 +02:00
fdt.c efi/libstub: Move pr_efi/pr_efi_err into efi namespace 2020-05-01 09:40:02 +02:00
file.c efi/libstub: Use %ls for filename 2020-05-20 19:09:20 +02:00
gop.c efi/gop: Add an option to list out the available GOP modes 2020-05-20 19:09:20 +02:00
hidden.h efi/libstub: Use hidden visibility for all source files 2020-02-23 21:57:12 +01:00
Makefile efi/libstub: Optimize for size instead of speed 2020-05-19 10:30:52 +02:00
mem.c efi/libstub: Move efi_relocate_kernel() into separate source file 2020-04-24 14:52:16 +02:00
pci.c efi/libstub: Correct comment typos 2020-05-06 11:27:55 +02:00
random.c efi/libstub: Describe RNG functions 2020-02-23 21:57:19 +01:00
randomalloc.c efi/libstub/random: Increase random alloc granularity 2020-04-23 20:15:06 +02:00
relocate.c efi/libstub: Correct comment typos 2020-05-06 11:27:55 +02:00
secureboot.c efi/libstub: Move pr_efi/pr_efi_err into efi namespace 2020-05-01 09:40:02 +02:00
skip_spaces.c efi/libstub: Clean up command line parsing routine 2020-02-23 21:57:15 +01:00
string.c efi/libstub: Clean up command line parsing routine 2020-02-23 21:57:15 +01:00
tpm.c efi/tpm: Use efi_err for error messages 2020-05-01 09:40:02 +02:00
vsprintf.c efi/printf: Add support for wchar_t (UTF-16) 2020-05-20 19:09:20 +02:00
x86-stub.c efi/libstub: Check return value of efi_parse_options 2020-05-01 09:40:02 +02:00