audk/MdeModulePkg/Core/Dxe/FwVol
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
..
Ffs.c Add core FFS3 support, DxeCore. 2011-10-27 09:23:19 +00:00
FwVol.c MdeModulePkg/DxeCore: Ensure FfsFileHeader 8 bytes aligned 2019-02-28 18:22:53 +08:00
FwVolAttrib.c Don't install FV protocol on the corrupt FV image. 2012-02-17 05:04:49 +00:00
FwVolDriver.h MdeModulePkg/IntelFrameworkModulePkg FwVol: 2014-10-29 03:31:46 +00:00
FwVolRead.c MdeModulePkg Core: Support FFS_ATTRIB_DATA_ALIGNMENT_2 2017-09-26 18:01:03 +08:00
FwVolWrite.c Update the copyright notice format 2010-04-24 09:49:11 +00:00