]> git.proxmox.com Git - mirror_edk2.git/commit - SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c
SecurityPkg SecureBootConfigDxe: Add check for the external PE/COFF image.
authorLiming Gao <liming.gao@intel.com>
Wed, 13 Jul 2016 12:28:15 +0000 (20:28 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 14 Jul 2016 07:04:53 +0000 (15:04 +0800)
commit5e9dfc67821b75ab606d8565f0bc1133bbc2a92c
treea4f73371fb4eb8608d221e9ab407e8f19e750a25
parent04147690b59bba6900e175c7d06e3fe48570ab73
SecurityPkg SecureBootConfigDxe: Add check for the external PE/COFF image.

Use BasePeCoffLib PeCoffLoaderGetImageInfo() to check the PE/COFF image.

In V2, add specific ImageRead() to make sure the PE/COFF image content
read is within the image buffer.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
SecurityPkg/SecurityPkg.dsc
SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c
SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.h