From: Heinrich Schuchardt Date: Tue, 22 Nov 2022 11:25:10 +0000 (+0100) Subject: efi_selftest: test FatToStr() truncation X-Git-Tag: baikal/mips/sdk5.8.2~5^2~136^2~8 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=b4a14aefd9aebc80ab54d96674f0a6e55c1e3ad1;p=uboot.git efi_selftest: test FatToStr() truncation Let the FatToStr test check that the FatSize parameter is considered. Signed-off-by: Heinrich Schuchardt --- diff --git a/lib/efi_selftest/efi_selftest_unicode_collation.c b/lib/efi_selftest/efi_selftest_unicode_collation.c index 11050a37cf..32c99caf35 100644 --- a/lib/efi_selftest/efi_selftest_unicode_collation.c +++ b/lib/efi_selftest/efi_selftest_unicode_collation.c @@ -178,7 +178,7 @@ static int test_fat_to_str(void) boottime->set_mem(str, sizeof(str), 0); unicode_collation_protocol->fat_to_str(unicode_collation_protocol, 6, - "U-BOOT", str); + "U-BOOT!", str); if (efi_st_strcmp_16_8(str, "U-BOOT")) { efi_st_error("fat_to_str returned \"%ps\"\n", str); return EFI_ST_FAILURE;