summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Core
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-16 05:20:06 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-16 05:20:06 +0000
commit56056c7cd8c829baa5941f5650b3739e074c7f71 (patch)
treed53ecd1e65d31d6b7feedcd7fc871a2d5f69be4f /EdkModulePkg/Core
parentdf13cebafa37f6b1e78157ad1b93de69fb0f34dd (diff)
downloadedk2-platforms-56056c7cd8c829baa5941f5650b3739e074c7f71.tar.xz
1. UsbMassStorage: Increase the timeout of USBFloppyRead10 and USBFloppyWrite10 for data transfer.
2. PxeBc: Fix array out bound error and add code to check the validation of the IP and subnet mask addresses. 3. DxeIpl: Make sure FV HOB is not corrupted by checking FV signature. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2570 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Core')
-rw-r--r--EdkModulePkg/Core/DxeIplPeim/DxeLoad.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/EdkModulePkg/Core/DxeIplPeim/DxeLoad.c b/EdkModulePkg/Core/DxeIplPeim/DxeLoad.c
index cd38a03e57..1133f62860 100644
--- a/EdkModulePkg/Core/DxeIplPeim/DxeLoad.c
+++ b/EdkModulePkg/Core/DxeIplPeim/DxeLoad.c
@@ -370,6 +370,11 @@ Returns:
Hob.Raw = GetHobList ();
while ((Hob.Raw = GetNextHob (EFI_HOB_TYPE_FV, Hob.Raw)) != NULL) {
FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) (UINTN) (Hob.FirmwareVolume->BaseAddress);
+ //
+ // Make sure the FV HOB does not get corrupted.
+ //
+ ASSERT (FwVolHeader->Signature == EFI_FVH_SIGNATURE);
+
Status = PeiServicesFfsFindNextFile (
Type,
FwVolHeader,