]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: fix efi_get_next_variable_name_mem()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 18 Dec 2022 06:08:57 +0000 (06:08 +0000)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 20 Dec 2022 15:06:48 +0000 (16:06 +0100)
commit70a4ac693d3f1e5ce8cc1bc919c9bd080e1bda77
treec1fdb3b4166763fe39e774d9d29ffee798c437ad
parent645502743ac10ffaa5abf944bf0b751b32b47220
efi_loader: fix efi_get_next_variable_name_mem()

The VariableNameSize parameter is in bytes but u16_strnlen() counts u16.

Fix the parameter check for null termination.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/efi_variable.h
lib/efi_loader/efi_var_mem.c