diff --git a/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c b/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c index 3331b6862e..ca1bdc0be8 100644 --- a/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c +++ b/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c @@ -1448,7 +1448,7 @@ IsAllowedByDb ( if (Status == EFI_BUFFER_TOO_SMALL) { goto Done; } - DbxData = (UINT8 *) AllocateZeroPool (DataSize); + DbxData = (UINT8 *) AllocateZeroPool (DbxDataSize); if (DbxData == NULL) { goto Done; }