public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/2] efi_loader: fix efi_get_next_variable_name_mem()
@ 2022-12-18  6:08 Heinrich Schuchardt
  2022-12-18  6:08 ` [PATCH 1/2] " Heinrich Schuchardt
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Heinrich Schuchardt @ 2022-12-18  6:08 UTC (permalink / raw)
  To: Ilias Apalodimas; +Cc: u-boot, Heinrich Schuchardt

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-12-19  9:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-18  6:08 [PATCH 0/2] efi_loader: fix efi_get_next_variable_name_mem() Heinrich Schuchardt
2022-12-18  6:08 ` [PATCH 1/2] " Heinrich Schuchardt
2022-12-19  9:15   ` Ilias Apalodimas
2022-12-18  6:08 ` [PATCH 2/2] efi_selftest: conformance test for GetNextVariableName Heinrich Schuchardt
2022-12-19  6:55   ` Ilias Apalodimas
2022-12-19  9:19 ` [PATCH 0/2] efi_loader: fix efi_get_next_variable_name_mem() Ilias Apalodimas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox