mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
CryptoPkg/BaseCryptLibMbedTls: Fix uninitialized variable errors
Clang complains about a couple of variables potentially being uninitialized, and those complaints seem to be valid. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
parent
468a36b22f
commit
90d861f63d
@ -486,6 +486,7 @@ Pkcs7Sign (
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Buffer = NULL;
|
||||
BufferSize = 4096;
|
||||
|
||||
SignatureLen = MAX_SIGNATURE_SIZE;
|
||||
|
@ -118,12 +118,11 @@ ImageTimestampVerify (
|
||||
OUT EFI_TIME *SigningTime
|
||||
)
|
||||
{
|
||||
BOOLEAN Status;
|
||||
UINT8 *Ptr;
|
||||
UINT8 *End;
|
||||
INT32 Len;
|
||||
UINTN ObjLen;
|
||||
UINT8 *TempPtr;
|
||||
UINT8 *Ptr;
|
||||
UINT8 *End;
|
||||
INT32 Len;
|
||||
UINTN ObjLen;
|
||||
UINT8 *TempPtr;
|
||||
|
||||
//
|
||||
// Initializations
|
||||
@ -374,8 +373,8 @@ ImageTimestampVerify (
|
||||
//
|
||||
if (SigningTime != NULL) {
|
||||
SetMem (SigningTime, sizeof (EFI_TIME), 0);
|
||||
Status = ConvertAsn1TimeToEfiTime (Ptr, SigningTime);
|
||||
return ConvertAsn1TimeToEfiTime (Ptr, SigningTime);
|
||||
}
|
||||
|
||||
return Status;
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user