mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Buffer = NULL;
|
||||||
BufferSize = 4096;
|
BufferSize = 4096;
|
||||||
|
|
||||||
SignatureLen = MAX_SIGNATURE_SIZE;
|
SignatureLen = MAX_SIGNATURE_SIZE;
|
||||||
|
@ -118,12 +118,11 @@ ImageTimestampVerify (
|
|||||||
OUT EFI_TIME *SigningTime
|
OUT EFI_TIME *SigningTime
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
BOOLEAN Status;
|
UINT8 *Ptr;
|
||||||
UINT8 *Ptr;
|
UINT8 *End;
|
||||||
UINT8 *End;
|
INT32 Len;
|
||||||
INT32 Len;
|
UINTN ObjLen;
|
||||||
UINTN ObjLen;
|
UINT8 *TempPtr;
|
||||||
UINT8 *TempPtr;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Initializations
|
// Initializations
|
||||||
@ -374,8 +373,8 @@ ImageTimestampVerify (
|
|||||||
//
|
//
|
||||||
if (SigningTime != NULL) {
|
if (SigningTime != NULL) {
|
||||||
SetMem (SigningTime, sizeof (EFI_TIME), 0);
|
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