edk2/MdeModulePkg
Star Zeng 9aef515648 MdeModulePkg/DxeCore: Ensure FfsFileHeader 8 bytes aligned
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=864
REF: CVE-2018-3630

To follow PI spec, ensure FfsFileHeader 8 bytes aligned.

For the integrity of FV(especially non-MemoryMapped FV) layout,
let CachedFv point to FV beginning, but not (FV + FV header).

And current code only handles (FwVolHeader->ExtHeaderOffset != 0) path,
update code to also handle (FwVolHeader->ExtHeaderOffset == 0) path.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
2019-02-28 18:22:53 +08:00
..
Application MdeModulePkg: Rename confusion function name 2019-02-25 09:14:21 +08:00
Bus MdeModulePkg/UfsBlockIoPei: Correct use of 'DeviceIndex' in BlkIO PPI 2019-02-25 16:33:49 +08:00
Core MdeModulePkg/DxeCore: Ensure FfsFileHeader 8 bytes aligned 2019-02-28 18:22:53 +08:00
Include MdeModulePkg: Rename confusion function name 2019-02-25 09:14:21 +08:00
Library MdeModulePkg/UefiBootManagerLib: fix LoadImage/StartImage status code rep. 2019-02-25 11:50:51 +01:00
Logo MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
Universal MdeModulePkg/RamDiskDxe: Restrict on RAM disk size (CVE-2018-12180) 2019-02-28 08:15:51 +08:00
MdeModulePkg.dec MdeModulePkg: Add GUID for LockBox to save storage dev to init in S3 2019-02-22 08:20:07 +08:00
MdeModulePkg.dsc MdeModulePkg: Add the runtime ResetSystemLib in MdeModulePkg.dsc 2019-02-22 09:45:45 +08:00
MdeModulePkg.uni MdeModulePkg: Refine description a little for PcdEmuVariableNvStoreReserved 2019-01-24 10:52:36 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00