SignedCapsulePkg Universal: Init local variables before using them
Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
@ -579,6 +579,9 @@ ProcessRecoveryImage (
|
|||||||
VOID *AuthenticatedImage;
|
VOID *AuthenticatedImage;
|
||||||
UINTN AuthenticatedImageSize;
|
UINTN AuthenticatedImageSize;
|
||||||
|
|
||||||
|
AuthenticatedImage = NULL;
|
||||||
|
AuthenticatedImageSize = 0;
|
||||||
|
|
||||||
Status = CapsuleAuthenticateSystemFirmware(Image, Length, TRUE, &LastAttemptVersion, &LastAttemptStatus, &AuthenticatedImage, &AuthenticatedImageSize);
|
Status = CapsuleAuthenticateSystemFirmware(Image, Length, TRUE, &LastAttemptVersion, &LastAttemptStatus, &AuthenticatedImage, &AuthenticatedImageSize);
|
||||||
if (EFI_ERROR(Status)) {
|
if (EFI_ERROR(Status)) {
|
||||||
DEBUG((DEBUG_INFO, "CapsuleAuthenticateSystemFirmware - %r\n", Status));
|
DEBUG((DEBUG_INFO, "CapsuleAuthenticateSystemFirmware - %r\n", Status));
|
||||||
|
@ -58,6 +58,9 @@ DispatchSystemFmpImages (
|
|||||||
EFI_FIRMWARE_VOLUME_HEADER *FvImage;
|
EFI_FIRMWARE_VOLUME_HEADER *FvImage;
|
||||||
BOOLEAN Result;
|
BOOLEAN Result;
|
||||||
|
|
||||||
|
AuthenticatedImage = NULL;
|
||||||
|
AuthenticatedImageSize = 0;
|
||||||
|
|
||||||
DEBUG((DEBUG_INFO, "DispatchSystemFmpImages\n"));
|
DEBUG((DEBUG_INFO, "DispatchSystemFmpImages\n"));
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -223,6 +223,9 @@ SystemFirmwareAuthenticatedUpdate (
|
|||||||
VOID *AuthenticatedImage;
|
VOID *AuthenticatedImage;
|
||||||
UINTN AuthenticatedImageSize;
|
UINTN AuthenticatedImageSize;
|
||||||
|
|
||||||
|
AuthenticatedImage = NULL;
|
||||||
|
AuthenticatedImageSize = 0;
|
||||||
|
|
||||||
DEBUG((DEBUG_INFO, "SystemFirmwareAuthenticatedUpdate...\n"));
|
DEBUG((DEBUG_INFO, "SystemFirmwareAuthenticatedUpdate...\n"));
|
||||||
|
|
||||||
Status = CapsuleAuthenticateSystemFirmware(Image, ImageSize, FALSE, LastAttemptVersion, LastAttemptStatus, &AuthenticatedImage, &AuthenticatedImageSize);
|
Status = CapsuleAuthenticateSystemFirmware(Image, ImageSize, FALSE, LastAttemptVersion, LastAttemptStatus, &AuthenticatedImage, &AuthenticatedImageSize);
|
||||||
|
Reference in New Issue
Block a user