mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
MdeModulePkg/SmmCore: Modify check for Mm Communicate Buffer without data
Modify communication buffer size check to take into consideration that buffer might not have data. Signed-off-by: Sachin Ganesh <sachinganesh@ami.com>
This commit is contained in:
parent
0cb71c18c5
commit
fe19f86dcd
1 changed files with 1 additions and 1 deletions
|
|
@ -734,7 +734,7 @@ SmmEntryPoint (
|
|||
// Check for over or underflows
|
||||
//
|
||||
if (!SmmIsBufferOutsideSmmValid ((UINTN)CommunicationBuffer, BufferSize) ||
|
||||
IsOverlapped || (BufferSize < sizeof (EFI_SMM_COMMUNICATE_HEADER)))
|
||||
IsOverlapped || (BufferSize < OFFSET_OF (EFI_SMM_COMMUNICATE_HEADER, Data)))
|
||||
{
|
||||
//
|
||||
// If CommunicationBuffer is not in valid address scope,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue