audk/OvmfPkg/Library/PlatformInitLib
Min M Xu 47d988387e OvmfPkg/PlatformInitLib: Add check to NvVarStoreFV HeaderLength
There should be a check that the FV HeaderLength cannot be an odd
number. Otherwise in the following CalculateSum16 there would be an
ASSERT.

In ValidateFvHeader@QemuFlashFvbServicesRuntimeDxe/FwBlockServices.c
there a is similar check to the FwVolHeader->HeaderLength.

Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
2022-12-02 01:06:01 +00:00
..
Cmos.c OvmfPkg: Create initial version of PlatformInitLib 2022-04-02 08:15:12 +00:00
IntelTdx.c OvmfPkg: Introduce lazy accept in PlatformInitLib and PlatformPei 2022-11-01 10:08:10 +00:00
IntelTdxNull.c OvmfPkg: Update PlatformInitLib for Tdx guest 2022-04-02 08:15:12 +00:00
MemDetect.c OvmfPkg: Introduce lazy accept in PlatformInitLib and PlatformPei 2022-11-01 10:08:10 +00:00
Platform.c OvmfPkg/PlatformInitLib: Add check to NvVarStoreFV HeaderLength 2022-12-02 01:06:01 +00:00
PlatformInitLib.inf OvmfPkg/PlatformInitLib: Add functions for EmuVariableNvStore 2022-09-06 07:21:42 +00:00