]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: image_loader: retrieve authenticode only if it exists
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 8 Jul 2020 05:01:53 +0000 (14:01 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 11 Jul 2020 21:14:15 +0000 (23:14 +0200)
commit1d38a4c0c77b45f91f3e705db8444ba8127d71a5
tree2d5d9b97d5965ad5d3a3529277d6b86cc60004dd
parentf0d2ac8a07cb0bb81d2f7c6f4fe827696650a390
efi_loader: image_loader: retrieve authenticode only if it exists

Since the certificate table, which is indexed by
IMAGE_DIRECTORY_ENTRY_SECURITY and contains authenticode in PE image,
doesn't always exist, we should make sure that we will retrieve its pointer
only if it exists.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
lib/efi_loader/efi_image_loader.c