audk/MdeModulePkg/Core/Pei
Star Zeng 467e1ffa76 MdeModulePkg/PeiCore: 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.

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:52 +08:00
..
BootMode MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
CpuIo MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
Dependency MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
Dispatcher MdeModulePkg PeiCore: Remove the using of PcdPeiCoreMaxPpiSupported 2018-12-19 12:33:30 +08:00
FwVol MdeModulePkg/PeiCore: Ensure FfsFileHeader 8 bytes aligned 2019-02-28 18:22:52 +08:00
Hob MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
Image MdeModulePkg PeiCore: Always use PeiImageRead() function to load PEI image 2018-09-07 21:39:26 +08:00
Memory MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
PciCfg2 MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
PeiMain MdeModulePkg/PeiMain: Support EFI_PEI_CORE_FV_LOCATION_PPI 2019-02-15 13:40:30 +08:00
Ppi MdeModulePkg PeiCore: Remove the using of PcdPeiCoreMaxPpiSupported 2018-12-19 12:33:30 +08:00
Reset MdeModulePkg/PeiMain: Cleanup whitespace in Reset.c 2018-02-09 15:29:50 +08:00
Security MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
StatusCode MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
PeiCore.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
PeiCoreExtra.uni MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
PeiMain.h MdeModulePkg/PeiMain: Support EFI_PEI_CORE_FV_LOCATION_PPI 2019-02-15 13:40:30 +08:00
PeiMain.inf MdeModulePkg/PeiMain: Support EFI_PEI_CORE_FV_LOCATION_PPI 2019-02-15 13:40:30 +08:00