[PATCH 0/2] efi_loader: fix efi_get_next_variable_name_mem()

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sun Dec 18 07:08:56 CET 2022


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



More information about the U-Boot mailing list