]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/Pei/FwVol/FwVol.c
MdeModulePkg/PeiCore: Ensure FfsFileHeader 8 bytes aligned
authorStar Zeng <star.zeng@intel.com>
Fri, 5 Jan 2018 05:05:29 +0000 (13:05 +0800)
committerJian J Wang <jian.j.wang@intel.com>
Thu, 28 Feb 2019 10:22:52 +0000 (18:22 +0800)
commit467e1ffa7634159b99fb8aeb93e2836b0f2e5f43
tree28b006b7ebba9806a54f2c0a8e4f0f2dcd417aec
parent3a4698202cf5ca81d4401bdc6c0974400064f333
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>
MdeModulePkg/Core/Pei/FwVol/FwVol.c