]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: Improve the parameter check for QueryVariableInfo()
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>
Wed, 30 Jun 2021 15:49:48 +0000 (00:49 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 2 Jul 2021 07:37:01 +0000 (09:37 +0200)
commit417a3c24c9991d3d9df8401063188324bf404952
tree6479d14c1e7288cb9af56eafd4b9f16b0661bb5c
parentabd62e4d41112893d70ddcbe7faad887116ed323
efi_loader: Improve the parameter check for QueryVariableInfo()

Improve efi_query_variable_info() to check the parameter settings and
return correct error code according to the UEFI Specification 2.9,
and the Self Certification Test (SCT) II Case Specification, June
2017, chapter 4.1.4 QueryVariableInfo().

Reported-by: Kazuhiko Sakamoto <sakamoto.kazuhiko@socionext.com>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_var_common.c