You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
Fix an issue in firmware update
This patch fixed an issue in firmware update. During the saved capsule signature verification against the capsule signature to make sure that the capsule did not change during the reboot, instead of using length of the signature, used the size of the macro that indicate the length of the signature. Verified that firmware update is able to pass on WHL. Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>
This commit is contained in:
committed by
Maurice Ma
parent
0000d110a2
commit
4bee65a8f6
@@ -623,7 +623,7 @@ AuthenticateCapsule (
|
||||
//
|
||||
if (*(UINT32 *)(FwUpdStatus.CapsuleSig) != 0xFFFFFFFF) {
|
||||
|
||||
CopyMem((VOID *)&FwUpdStatus.CapsuleSig, (VOID *)SignatureHdr, sizeof(FW_UPDATE_SIG_LENGTH));
|
||||
CopyMem((VOID *)&FwUpdStatus.CapsuleSig, (VOID *)SignatureHdr, FW_UPDATE_SIG_LENGTH);
|
||||
|
||||
Status = BootMediaWrite (FwUpdStatusOffset, sizeof(FW_UPDATE_STATUS), (UINT8 *)&FwUpdStatus);
|
||||
if (EFI_ERROR (Status)) {
|
||||
|
||||
Reference in New Issue
Block a user