Revision: 17687 http://sourceforge.net/p/edk2/code/17687 Author: lgao4 Date: 2015-06-23 10:48:30 +0000 (Tue, 23 Jun 2015) Log Message: ----------- SecurityPkg: Fix wrong calculation of ImageExeInfoEntrySize
Per UEFI spec, EFI_IMAGE_EXECUTION_INFO structure is updated to comment Signature field. So, its structure doesn't include Signature field. But, ImageExeInfoEntrySize uses its structure size minor Signature size. It will be corrected in this change. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming....@intel.com> Reviewed-by: Chao Zhang <chao.b.zh...@intel.com> Modified Paths: -------------- trunk/edk2/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c Modified: trunk/edk2/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c =================================================================== --- trunk/edk2/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c 2015-06-23 10:48:04 UTC (rev 17686) +++ trunk/edk2/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c 2015-06-23 10:48:30 UTC (rev 17687) @@ -1,5 +1,5 @@ /** @file - Implement image verification services for secure boot service in UEFI2.3.1. + Implement image verification services for secure boot service Caution: This file requires additional review when modified. This library will have external input - PE/COFF image. @@ -769,7 +769,7 @@ } DevicePathSize = GetDevicePathSize (DevicePath); - NewImageExeInfoEntrySize = sizeof (EFI_IMAGE_EXECUTION_INFO) - sizeof (EFI_SIGNATURE_LIST) + NameStringLen + DevicePathSize + SignatureSize; + NewImageExeInfoEntrySize = sizeof (EFI_IMAGE_EXECUTION_INFO) + NameStringLen + DevicePathSize + SignatureSize; NewImageExeInfoTable = (EFI_IMAGE_EXECUTION_INFO_TABLE *) AllocateRuntimePool (ImageExeInfoTableSize + NewImageExeInfoEntrySize); if (NewImageExeInfoTable == NULL) { return ; ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits