]> git.baikalelectronics.ru Git - uboot.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)
commit424d450eb4e67261f26a30af688edb01bfabf526
tree949422853439daf0b406ce97ce03d2e28eded916
parent15fd574d023a62d145ee8710577543a6d71bc6c7
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