]> git.dujemihanovic.xyz Git - u-boot.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)
commiteb537fd7eb05665a088766128eebd45b585679d3
tree2d5d9b97d5965ad5d3a3529277d6b86cc60004dd
parent1a44b7059c183a227f2fc4519df24da09d403cba
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