]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: variable: check a return value of uuid__str_to_bin()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Fri, 8 May 2020 05:51:21 +0000 (14:51 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 9 May 2020 07:30:27 +0000 (09:30 +0200)
commitb433acbb819e1546ef9493dc3ba97a44b398a9db
tree32682b5cd5200f7cec425475aa597a4c95956990
parent52d7bfe78787c93b95e805b44bb4d746a65edde4
efi_loader: variable: check a return value of uuid__str_to_bin()

The only error case is that a given UUID is in wrong format.
So just return EFI_INVALID_PARAMETER here.

Reported-by: Coverity (CID 300333)
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_variable.c