summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgtian <gtian@6f19259b-4bc3-4df7-8a09-765794883524>2008-02-04 19:51:45 +0000
committergtian <gtian@6f19259b-4bc3-4df7-8a09-765794883524>2008-02-04 19:51:45 +0000
commitfd431a9b3f927c51e5e9fdd9fe0b439024e58cfa (patch)
tree4fe4e9924d29bf69319f8ae1ccba47692ff44a60
parent7adf5fa455d6f40354fbc5c37dabbc2013b1e417 (diff)
downloadedk2-fd431a9b3f927c51e5e9fdd9fe0b439024e58cfa.zip
edk2-fd431a9b3f927c51e5e9fdd9fe0b439024e58cfa.tar.gz
edk2-fd431a9b3f927c51e5e9fdd9fe0b439024e58cfa.tar.bz2
Add the check- in missed file
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4674 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--IntelFrameworkModulePkg/Universal/VariablePei/Variable.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/IntelFrameworkModulePkg/Universal/VariablePei/Variable.c b/IntelFrameworkModulePkg/Universal/VariablePei/Variable.c
index 72d8fd1..8fc6749 100644
--- a/IntelFrameworkModulePkg/Universal/VariablePei/Variable.c
+++ b/IntelFrameworkModulePkg/Universal/VariablePei/Variable.c
@@ -614,6 +614,13 @@ Returns:
//
VarDataSize = DataSizeOfVariable (Variable.CurrPtr);
if (*DataSize >= VarDataSize) {
+ //
+ // PO-TKW: Address one checking in this place
+ //
+ if (Data == NULL) {
+ return EFI_INVALID_PARAMETER;
+ }
+
(*PeiServices)->CopyMem (Data, GetVariableDataPtr (Variable.CurrPtr), VarDataSize);
if (Attributes != NULL) {