audk/MdeModulePkg
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
..
Application Update code to pass packaging tool. 2011-05-30 09:56:57 +00:00
Bus MdeModulePkg: Fix a bug that UnregisterAtaDev() will return error when SSP protocol is not installed 2011-12-12 09:51:55 +00:00
Core MdeModulePkg DXE Core: Refine code to avoid UNIXGCC build break. 2011-12-09 02:35:04 +00:00
Include Add Acpi50 FPDT and BGRT module into MdeModulePkg. 2011-12-01 01:57:27 +00:00
Library Roll back the change which doesn't call LocateProtocol when TPL is TPL_NOTIFY because it may cause certain status code get lost in some rare case. 2011-11-30 01:53:13 +00:00
Logo Update the copyright notice format 2010-04-24 09:49:11 +00:00
Universal MdeModulePkg/Variable: Check if there is a NV Variable Storage header prior to use its attributes 2011-12-12 19:00:59 +00:00
MdeModulePkg.dec Add Acpi50 FPDT and BGRT module into MdeModulePkg. 2011-12-01 01:57:27 +00:00
MdeModulePkg.dsc Add Acpi50 FPDT and BGRT module into MdeModulePkg. 2011-12-01 01:57:27 +00:00