Commit 7b4a99be authored by Stewart, Chris (SW Architect) via's avatar Stewart, Chris (SW Architect) via Committed by mergify[bot]
Browse files

CryptoPkg: BaseCryptLib fix incorrect param order


Function ConvertAsn1TimeToEfiTime initializes timestamp to zeroes with
SetMem, but the actual parameters are out of order. The result is
the SetMem operation has no effect. The fix is to put the actual
parameters in the correct order.

Signed-off-by: default avatarChris Stewart <>
Reviewed-by: default avatarLiming Gao <>
Reviewed-by: default avatarJiewen Yao <>
Cc: Jiewen Yao <>
Cc: Jian J Wang <>
Cc: Xiaoyu Lu <>
Cc: Guomin Jiang <>
parent 8dd4fc5b
......@@ -155,7 +155,7 @@ ConvertAsn1TimeToEfiTime (
Str = (CONST CHAR8*)Asn1Time->data;
SetMem (EfiTime, 0, sizeof (EFI_TIME));
SetMem (EfiTime, sizeof (EFI_TIME), 0);
Index = 0;
if (Asn1Time->type == V_ASN1_UTCTIME) { /* two digit year */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment