mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/VariableSmm: Fix a VariableSmm bug when reading variable with size 0.
Signed-off-by: Tian, Feng <feng.tian@intel.com> Reviewed-by: Zhang, Chao <chao.b.zhang@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13725 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7ca126ff30
commit
d294b9a4b7
|
@ -426,7 +426,7 @@ SmmVariableHandler (
|
|||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
if (*CommBufferSize < sizeof(SMM_VARIABLE_COMMUNICATE_HEADER) - 1) {
|
||||
if (*CommBufferSize < SMM_VARIABLE_COMMUNICATE_HEADER_SIZE) {
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue