audk/MdeModulePkg/Universal
oliviermartin d65502601e MdeModulePkg/Variable: Check if there is a NV Variable Storage header prior to use its attributes
The Variable PEI and RuntimeDxe drivers were using the attribute 'HeaderLength' of
EFI_FIRMWARE_VOLUME_HEADER without checking if a Firmware Volume Header was existing at
the base address.
In case the Firmware Volume Header does not exist or is corrupted, the attribute 'HeaderLength'
is a non valid value that can lead to a non valid physical address when accessing produces an
access error.

Signed-off-by: oliviermartin
Reviewed-by: niruiyu



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12836 6f19259b-4bc3-4df7-8a09-765794883524
2011-12-12 19:00:59 +00:00
..
Acpi Free memory allocated by ReadSection. 2011-12-02 01:08:05 +00:00
CapsulePei Add PCD for 1G page table 2011-09-21 03:45:35 +00:00
CapsuleRuntimeDxe Add capsule > 4GB support. When capsule data is put above 4GB, IA32 PEI transfers to long mode to get capsule data. 2011-09-02 11:34:35 +00:00
Console Remove PCD usage for console driver, PcdConOutRow and PcdConOutColumn are current text mode during boot, not console device capability. 2011-11-30 06:01:22 +00:00
DebugPortDxe Fix the comments to follow UEFI Spec regarding how to check an EFI_HANDLE is valid/invalid. 2011-07-06 03:55:36 +00:00
DebugSupportDxe A complement fix for revision 11664 to update GCC assembly files : clear the direction flag in interrupt/exception handlers' assembly entry code before calling C functions to follow the UEFI calling convention. 2011-05-17 08:35:20 +00:00
DevicePathDxe Adopt new IPv4/IPv6 device path for network modules. 2011-10-26 09:29:46 +00:00
Disk 1. Remove the unnecessary check of the existing of BlockIo2 in PartitionDriverBindingSupported(). 2011-12-01 05:10:41 +00:00
DriverSampleDxe Add sample code for EFI_IFR_QUESTION_REF3 opcode. 2011-11-25 07:00:05 +00:00
EbcDxe Re-org the EBC thunk code for better code maintenance. 2011-11-23 13:23:34 +00:00
FaultTolerantWriteDxe Enhance inf and dec file to follow specs. 2011-03-14 08:43:59 +00:00
HiiDatabaseDxe Patch includes: 2011-11-24 08:47:57 +00:00
HiiResourcesSampleDxe Clean up the private GUID definition in module Level. 2011-09-18 12:21:01 +00:00
LegacyRegion2Dxe Enhance inf and dec file to follow specs. 2011-03-14 08:43:59 +00:00
LockBox/SmmLockBox RestoreLockBox in DXE with Length NULL, Buffer NULL will fail to get data from Lockbox. Fix this issue. 2011-08-25 08:25:13 +00:00
MemoryTest MdeModulePkg: Add GenericMemoryTestDxe driver 2011-07-01 00:40:26 +00:00
Metronome Update the copyright notice format 2010-04-24 09:33:45 +00:00
MonotonicCounterRuntimeDxe Clean up the private GUID definition in module Level. 2011-09-18 12:21:01 +00:00
Network Add pointer check for NULL before dereference it. 2011-11-23 05:05:12 +00:00
PCD Correctly use GetPtrTypeSize() to get MaxSize. 2011-11-28 03:43:26 +00:00
PcatSingleSegmentPciCfg2Pei Update the copyright notice format 2010-04-24 09:33:45 +00:00
PlatformDriOverrideDxe Clean up the private GUID definition in module Level. 2011-09-18 12:21:01 +00:00
PrintDxe Update the copyright notice format 2010-04-24 09:33:45 +00:00
ReportStatusCodeRouter The handler dispatcher in PEI statuscode router driver should check if handler is NULL, if it is not NULL, then handler can be called. 2011-11-15 06:36:37 +00:00
ResetSystemRuntimeDxe MdeModulePkg: Add ResetSystemRuntimeDxe driver 2011-07-01 00:40:46 +00:00
SecurityStubDxe Update the copyright notice format 2010-04-24 09:33:45 +00:00
SetupBrowserDxe Enable EFI_BROWSER_ACTION_CHANGED callback type for browser. 2011-12-07 05:49:01 +00:00
SmbiosDxe According to PI errata 0000654 and 000811, we need use 0xFFFE to instead of 0 for EFI_SMBIOS_PROTOCOL.Add() SmbiosHandle parameter to assign a unique handle to the SMBIOS record, and for EFI_SMBIOS_PROTOCOL.GetNext() SmbiosHandle parameter to get the first matched SMBIOS handle or indicate no more SMBIOS record. 2011-11-21 08:50:41 +00:00
StatusCodeHandler AsciiSPrint returns The number of ASCII characters in the produced output buffer not including the Null-terminator, but SerialStatusCodeWorker has bug which overwrites the last character, which causes there is a missing character in serial log output. The fix is to resolve this issue. 2011-10-11 03:45:24 +00:00
Variable MdeModulePkg/Variable: Check if there is a NV Variable Storage header prior to use its attributes 2011-12-12 19:00:59 +00:00
WatchdogTimerDxe Add debug print that the system is about to be reset. I was seeing watchtog timeouts in UnixPkg and they were hard to debug as gdb was exiting. This debug print should be useful in general. 2010-07-30 16:01:09 +00:00