SecurityPkg Variable: Add NULL pointer check.
authorStar Zeng <star.zeng@intel.com>
Fri, 28 Mar 2014 02:47:46 +0000 (02:47 +0000)
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 28 Mar 2014 02:47:46 +0000 (02:47 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15409 6f19259b-4bc3-4df7-8a09-765794883524

SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c

index 7d7bc9e..6a33a78 100644 (file)
@@ -860,6 +860,7 @@ Reclaim (
     if (EFI_ERROR (Status)) {\r
       goto Done;\r
     }\r
+    ASSERT ((NewPubKeyIndex != NULL) && (NewPubKeyStore != NULL));\r
 \r
     //\r
     // Refresh the PubKeyIndex for all valid variables (ADDED and IN_DELETED_TRANSITION).\r