audk/MdeModulePkg/Core
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
..
Dxe MdeModulePkg/DxeCore: Ensure FfsFileHeader 8 bytes aligned 2019-02-28 18:22:53 +08:00
DxeIplPeim MdeModulePkg/DxeIpl: support more NX related PCDs 2018-09-26 08:55:10 +08:00
Pei MdeModulePkg/PeiCore: Ensure FfsFileHeader 8 bytes aligned 2019-02-28 18:22:52 +08:00
PiSmmCore MdeModulePkg/PiSmmIpl: Do not reset SMRAM to UC when CPU driver runs 2018-11-01 10:06:30 +08:00
RuntimeDxe MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00