Skip to content

Commit

Permalink
Fixing buffer size not set
Browse files Browse the repository at this point in the history
  • Loading branch information
kuqin12 committed Apr 16, 2024
1 parent 937a2bc commit db81073
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,11 @@ AdvancedLoggerGetLoggerInfo (
(UINT16)(sizeof (EFI_HOB_GUID_TYPE) + sizeof (ADVANCED_LOGGER_INFO) + ADVANCED_LOGGER_MAX_MESSAGE_SIZE),
(VOID **)&GuidHobInterimBuf
);
if (EFI_ERROR (Status)) {
return NULL;
}
LoggerInfo = (ADVANCED_LOGGER_INFO *)GET_GUID_HOB_DATA (GuidHobInterimBuf);
BufferSize = sizeof (ADVANCED_LOGGER_INFO) + ADVANCED_LOGGER_MAX_MESSAGE_SIZE;
ZeroMem ((VOID *)LoggerInfo, BufferSize);
LoggerInfo->Signature = ADVANCED_LOGGER_SIGNATURE;
LoggerInfo->Version = ADVANCED_LOGGER_VERSION;
Expand Down

0 comments on commit db81073

Please sign in to comment.