Add parameter check in SmmBase.Communicate().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10289 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -202,6 +202,10 @@ SmmBaseCommunicate (
|
||||
/// Note this is a runtime interface
|
||||
///
|
||||
|
||||
if (CommunicationBuffer == NULL || BufferSize == NULL) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
mCommunicationData.FunctionData.Function = SmmBaseFunctionCommunicate;
|
||||
mCommunicationData.FunctionData.Args.Communicate.ImageHandle = ImageHandle;
|
||||
mCommunicationData.FunctionData.Args.Communicate.CommunicationBuffer = CommunicationBuffer;
|
||||
|
Reference in New Issue
Block a user