audk/MdeModulePkg/Core/Dxe
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
..
Dispatcher MdeModulePkg DxeCore: Handle multiple FV images in one FV file 2018-09-03 17:04:58 +08:00
DxeMain MdeModulePkg Core/Dxe: Remove redundant functions 2018-08-21 16:29:04 +08:00
Event MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
FwVol MdeModulePkg/DxeCore: Ensure FfsFileHeader 8 bytes aligned 2019-02-28 18:22:53 +08:00
FwVolBlock MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
Gcd MdeModulePkg/Dxe/Gcd: disregard memory above MAX_ALLOC_ADDRESS 2018-12-20 11:01:49 +01:00
Hand MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
Image MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
Library Update the copyright notice format 2010-04-24 09:49:11 +00:00
Mem MdeModulePkg/Dxe/Page: take MAX_ALLOC_ADDRESS into account 2018-12-20 11:01:58 +01:00
Misc MdeModulePkg/Core: fix ineffective guard page issue 2018-11-07 23:08:27 +08:00
SectionExtraction MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
DxeCore.uni MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
DxeCoreExtra.uni MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
DxeMain.h MdeModulePkg Core/Dxe: Remove redundant functions 2018-08-21 16:29:04 +08:00
DxeMain.inf MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00