diff options
author | Star Zeng <star.zeng@intel.com> | 2014-03-28 02:47:46 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-03-28 02:47:46 +0000 |
commit | 3a4b498ee1f10d2ed7ac4f29f99d69d1abb9f24b (patch) | |
tree | a16027c9ffdc9c23c5ab821299103a2e7269d68d /SecurityPkg/VariableAuthenticated | |
parent | 4c7e997ef1c81be69e6b4a8e2fa8cec013ee0d5f (diff) | |
download | edk2-platforms-3a4b498ee1f10d2ed7ac4f29f99d69d1abb9f24b.tar.xz |
SecurityPkg Variable: Add NULL pointer check.
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
Diffstat (limited to 'SecurityPkg/VariableAuthenticated')
-rw-r--r-- | SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c b/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c index 7d7bc9e0e1..6a33a78da4 100644 --- a/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c +++ b/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c @@ -860,6 +860,7 @@ Reclaim ( if (EFI_ERROR (Status)) {
goto Done;
}
+ ASSERT ((NewPubKeyIndex != NULL) && (NewPubKeyStore != NULL));
//
// Refresh the PubKeyIndex for all valid variables (ADDED and IN_DELETED_TRANSITION).
|