summaryrefslogtreecommitdiff
path: root/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2016-07-13 20:28:17 +0800
committerLiming Gao <liming.gao@intel.com>2016-07-14 15:04:54 +0800
commit5a8eae9560ddf8422ed1b43aff8612931e472eb6 (patch)
treecef1c47fe06c5beecba622ca7f90168d120ad4e5 /SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
parentcad19cd3f2ac26de35c545acd29f98c5f4f82f7c (diff)
downloadedk2-5a8eae9560ddf8422ed1b43aff8612931e472eb6.zip
edk2-5a8eae9560ddf8422ed1b43aff8612931e472eb6.tar.gz
edk2-5a8eae9560ddf8422ed1b43aff8612931e472eb6.tar.bz2
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>
Diffstat (limited to 'SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c')
-rw-r--r--SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
index 7720c27..95219c0 100644
--- a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
+++ b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
@@ -127,6 +127,8 @@ EFI_HANDLE mImageHandle;
PE/COFF image is external input, so this function will validate its data structure
within this image buffer before use.
+ Notes: PE/COFF image is checked by BasePeCoffLib PeCoffLoaderGetImageInfo().
+
@param[in] PCRIndex TPM PCR index
@param[in] ImageAddress Start address of image buffer.
@param[in] ImageSize Image size