X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFrameworkModulePkg%2FUniversal%2FVariablePei%2FVariable.c;fp=IntelFrameworkModulePkg%2FUniversal%2FVariablePei%2FVariable.c;h=0b9fa29bdbfab4fc37fedf644b311a47cae4123f;hp=8fc67499fb78184c844b871ab26070231e039f43;hb=de631489deaebcdf5e3bc702ea7c8c28586b9c8c;hpb=01f352a7ca57e2bc5ed0f72e5b1d50b6de4469ed diff --git a/IntelFrameworkModulePkg/Universal/VariablePei/Variable.c b/IntelFrameworkModulePkg/Universal/VariablePei/Variable.c index 8fc67499fb..0b9fa29bdb 100644 --- a/IntelFrameworkModulePkg/Universal/VariablePei/Variable.c +++ b/IntelFrameworkModulePkg/Universal/VariablePei/Variable.c @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2006 - 2007 Intel Corporation.
+Copyright (c) 2006 - 2008 Intel Corporation.
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -598,7 +598,7 @@ Returns: UINTN VarDataSize; EFI_STATUS Status; - if (VariableName == NULL || VendorGuid == NULL) { + if (VariableName == NULL || VendorGuid == NULL || DataSize == NULL) { return EFI_INVALID_PARAMETER; } // @@ -725,7 +725,7 @@ Returns: UINTN VarNameSize; EFI_STATUS Status; - if (VariableName == NULL) { + if (VariableNameSize == NULL || VariableName == NULL || VendorGuid == NULL) { return EFI_INVALID_PARAMETER; }