Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 47d988387efc8b45561f542f7a8e5b6a43979a8c
      
https://github.com/tianocore/edk2/commit/47d988387efc8b45561f542f7a8e5b6a43979a8c
  Author: Min M Xu <min.m...@intel.com>
  Date:   2022-12-02 (Fri, 02 Dec 2022)

  Changed paths:
    M OvmfPkg/Library/PlatformInitLib/Platform.c

  Log Message:
  -----------
  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 <erdemak...@google.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Signed-off-by: Min Xu <min.m...@intel.com>
Reviewed-by: Jiewen Yao <jiewen....@intel.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to