SecurityPkg Tcg2Dxe: Add check for the 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>
This commit is contained in:
Liming Gao
2016-07-13 20:28:17 +08:00
parent cad19cd3f2
commit 5a8eae9560
3 changed files with 74 additions and 1 deletions

View File

@@ -59,6 +59,7 @@
PerformanceLib
ReportStatusCodeLib
Tcg2PhysicalPresenceLib
PeCoffLib
[Guids]
## SOMETIMES_CONSUMES ## Variable:L"SecureBoot"