Revision: 13725
          http://edk2.svn.sourceforge.net/edk2/?rev=13725&view=rev
Author:   erictian
Date:     2012-09-12 08:24:10 +0000 (Wed, 12 Sep 2012)
Log Message:
-----------
MdeModulePkg/VariableSmm: Fix a VariableSmm bug when reading variable with size 
0.

Signed-off-by: Tian, Feng <[email protected]>
Reviewed-by: Zhang, Chao <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.c

Modified: trunk/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.c 
2012-09-12 07:19:39 UTC (rev 13724)
+++ trunk/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.c 
2012-09-12 08:24:10 UTC (rev 13725)
@@ -426,7 +426,7 @@
     return EFI_SUCCESS;
   }
 
-  if (*CommBufferSize < sizeof(SMM_VARIABLE_COMMUNICATE_HEADER) - 1) {
+  if (*CommBufferSize < SMM_VARIABLE_COMMUNICATE_HEADER_SIZE) {
     return EFI_SUCCESS;
   }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to