diff options
author | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-03-19 08:39:40 +0000 |
---|---|---|
committer | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-03-19 08:39:40 +0000 |
commit | 1329da4417afbbc54da4a6409f1a230cc2c93154 (patch) | |
tree | 4c1e00646e733e2210e4b1f040babac87dc2d7de /EdkCompatibilityPkg | |
parent | 3b1464d5ac4e8b917c54b9f29a43ad972d2a2c85 (diff) | |
download | edk2-1329da4417afbbc54da4a6409f1a230cc2c93154.tar.gz edk2-1329da4417afbbc54da4a6409f1a230cc2c93154.tar.bz2 edk2-1329da4417afbbc54da4a6409f1a230cc2c93154.zip |
Add parameter check in SmmBase.Communicate().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10289 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg')
-rw-r--r-- | EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBaseOnSmmBase2Thunk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBaseOnSmmBase2Thunk.c b/EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBaseOnSmmBase2Thunk.c index 51240bbdc7..e470da0af0 100644 --- a/EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBaseOnSmmBase2Thunk.c +++ b/EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBaseOnSmmBase2Thunk.c @@ -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;
|