mirror_edk2/MdeModulePkg/Universal/Variable/RuntimeDxe
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
..
Reclaim.c Add SMM Variable implementation. 2010-12-10 09:27:54 +00:00
Variable.c MdeModulePkg/Variable: Check if there is a NV Variable Storage header prior to use its attributes 2011-12-12 19:00:59 +00:00
Variable.h MdeModulePkg/Variable: Check if there is a NV Variable Storage header prior to use its attributes 2011-12-12 19:00:59 +00:00
VariableDxe.c correct Intel's copyright date as the changes checked-in at r11273 & r11272 are contributed by third party. 2011-02-12 03:29:24 +00:00
VariableRuntimeDxe.inf MdeModulePkg/Variable: Check if there is a NV Variable Storage header prior to use its attributes 2011-12-12 19:00:59 +00:00
VariableSmm.c Puts SMM variable common definitions in SmmVariableCommon.h. 2011-02-28 07:31:45 +00:00
VariableSmm.inf Change Variable driver (Pei/RuntimeDxe) to support the default variable data stored in HOB. 2011-10-14 05:19:39 +00:00
VariableSmmRuntimeDxe.c Puts SMM variable common definitions in SmmVariableCommon.h. 2011-02-28 07:31:45 +00:00
VariableSmmRuntimeDxe.inf Puts SMM variable common definitions in SmmVariableCommon.h. 2011-02-28 07:31:45 +00:00