]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: simplify PE consistency check
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 30 May 2020 05:35:59 +0000 (07:35 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 3 Jun 2020 15:19:18 +0000 (17:19 +0200)
commit55af40a5781f1de574822745c9c76b3a928388cd
tree949422853439daf0b406ce97ce03d2e28eded916
parent13f62d9f7edf4fe6a63506e83df03f43a9041cba
efi_loader: simplify PE consistency check

Knowing that at least one section header follows the optional header we
only need to check for the length of the 64bit header which is longer than
the 32bit header.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_image_loader.c