mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
SecurityPkg: Tcg2Dxe: Fix undersized TempBuf
TempBuf in SetupEventLog needs to include sizeof(UINT32) to hold NumberOfAlgorithms. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Thomas Palmer <thomas.palmer@hpe.com> Reviewed-by: Yao Jiewen <jiewen.yao@intel.com> Reviewed-by: Chao Zhang <chao.b.zhang@intel.com> Reviewed-by: El-Haj-Mahmoud Samer <samer.el-haj-mahmoud@hpe.com>
This commit is contained in:
parent
065e587c17
commit
9381e149ad
@ -1482,7 +1482,7 @@ SetupEventLog (
|
|||||||
UINT32 DigestListBinSize;
|
UINT32 DigestListBinSize;
|
||||||
UINT32 EventSize;
|
UINT32 EventSize;
|
||||||
TCG_EfiSpecIDEventStruct *TcgEfiSpecIdEventStruct;
|
TCG_EfiSpecIDEventStruct *TcgEfiSpecIdEventStruct;
|
||||||
UINT8 TempBuf[sizeof(TCG_EfiSpecIDEventStruct) + (HASH_COUNT * sizeof(TCG_EfiSpecIdEventAlgorithmSize)) + sizeof(UINT8)];
|
UINT8 TempBuf[sizeof(TCG_EfiSpecIDEventStruct) + sizeof(UINT32) + (HASH_COUNT * sizeof(TCG_EfiSpecIdEventAlgorithmSize)) + sizeof(UINT8)];
|
||||||
TCG_PCR_EVENT_HDR FirstPcrEvent;
|
TCG_PCR_EVENT_HDR FirstPcrEvent;
|
||||||
TCG_EfiSpecIdEventAlgorithmSize *DigestSize;
|
TCG_EfiSpecIdEventAlgorithmSize *DigestSize;
|
||||||
TCG_EfiSpecIdEventAlgorithmSize *TempDigestSize;
|
TCG_EfiSpecIdEventAlgorithmSize *TempDigestSize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user