diff options
author | gtian <gtian@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-02-04 19:52:06 +0000 |
---|---|---|
committer | gtian <gtian@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-02-04 19:52:06 +0000 |
commit | 39aea48d30311de191a1e6c2c66b2307c29f385f (patch) | |
tree | ea369a57afc488f7851fd79a26b244f5be080945 /MdeModulePkg/Universal/Variable/Pei | |
parent | fd431a9b3f927c51e5e9fdd9fe0b439024e58cfa (diff) | |
download | edk2-platforms-39aea48d30311de191a1e6c2c66b2307c29f385f.tar.xz |
Add the check- in missed file
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4675 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Variable/Pei')
-rw-r--r-- | MdeModulePkg/Universal/Variable/Pei/Variable.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Variable/Pei/Variable.c b/MdeModulePkg/Universal/Variable/Pei/Variable.c index 92e690724d..52e19d1f73 100644 --- a/MdeModulePkg/Universal/Variable/Pei/Variable.c +++ b/MdeModulePkg/Universal/Variable/Pei/Variable.c @@ -603,6 +603,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) {
|