
18 Dec
2022
18 Dec
'22
7:08 a.m.
The VariableNameSize parameter is in bytes but u16_strnlen() counts u16.
Fix the parameter check for null termination. Provide unit test for parameter checks in GetNextVariableName
@Ilias: Could you, please, run the unit test against the OP-TEE variable store (CONFIG_EFI_MM_COMM_TEE=y)..
Heinrich Schuchardt (2): efi_loader: fix efi_get_next_variable_name_mem() efi_selftest: conformance test for GetNextVariableName
include/efi_variable.h | 3 +- lib/efi_loader/efi_var_mem.c | 6 ++-- lib/efi_selftest/efi_selftest_variables.c | 35 +++++++++++++++++++++++ 3 files changed, 40 insertions(+), 4 deletions(-)
--
2.37.2