Update code to support VS2013 tool chain.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15694 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
94866d4035
commit
d4193108b5
@ -8,7 +8,7 @@ buffer overflow, integer overflow.
|
|||||||
|
|
||||||
TcgDxePassThroughToTpm() will receive untrusted input and do basic validation.
|
TcgDxePassThroughToTpm() will receive untrusted input and do basic validation.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -735,6 +735,8 @@ MeasureHandoffTables (
|
|||||||
UINTN ProcessorNum;
|
UINTN ProcessorNum;
|
||||||
EFI_CPU_PHYSICAL_LOCATION *ProcessorLocBuf;
|
EFI_CPU_PHYSICAL_LOCATION *ProcessorLocBuf;
|
||||||
|
|
||||||
|
ProcessorLocBuf = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Measure SMBIOS with EV_EFI_HANDOFF_TABLES to PCR[1]
|
// Measure SMBIOS with EV_EFI_HANDOFF_TABLES to PCR[1]
|
||||||
//
|
//
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
This module implements TrEE Protocol.
|
This module implements TrEE Protocol.
|
||||||
|
|
||||||
Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -1099,6 +1099,8 @@ MeasureHandoffTables (
|
|||||||
UINTN ProcessorNum;
|
UINTN ProcessorNum;
|
||||||
EFI_CPU_PHYSICAL_LOCATION *ProcessorLocBuf;
|
EFI_CPU_PHYSICAL_LOCATION *ProcessorLocBuf;
|
||||||
|
|
||||||
|
ProcessorLocBuf = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Measure SMBIOS with EV_EFI_HANDOFF_TABLES to PCR[1]
|
// Measure SMBIOS with EV_EFI_HANDOFF_TABLES to PCR[1]
|
||||||
//
|
//
|
||||||
|
@ -2122,6 +2122,7 @@ VerifyTimeBasedPayload (
|
|||||||
WrapSigData = NULL;
|
WrapSigData = NULL;
|
||||||
SignerCerts = NULL;
|
SignerCerts = NULL;
|
||||||
RootCert = NULL;
|
RootCert = NULL;
|
||||||
|
CertsInCertDb = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// When the attribute EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS is
|
// When the attribute EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS is
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Handles non-volatile variable store garbage collection, using FTW
|
Handles non-volatile variable store garbage collection, using FTW
|
||||||
(Fault Tolerant Write) protocol.
|
(Fault Tolerant Write) protocol.
|
||||||
|
|
||||||
Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -48,7 +48,8 @@ GetLbaAndOffsetByAddress (
|
|||||||
|
|
||||||
*Lba = (EFI_LBA) (-1);
|
*Lba = (EFI_LBA) (-1);
|
||||||
*Offset = 0;
|
*Offset = 0;
|
||||||
|
Fvb = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get the proper FVB protocol.
|
// Get the proper FVB protocol.
|
||||||
//
|
//
|
||||||
|
@ -3881,6 +3881,7 @@ GetFvbInfoByAddress (
|
|||||||
EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader;
|
EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader;
|
||||||
EFI_FVB_ATTRIBUTES_2 Attributes;
|
EFI_FVB_ATTRIBUTES_2 Attributes;
|
||||||
|
|
||||||
|
HandleBuffer = NULL;
|
||||||
//
|
//
|
||||||
// Get all FVB handles.
|
// Get all FVB handles.
|
||||||
//
|
//
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
InitCommunicateBuffer() is really function to check the variable data size.
|
InitCommunicateBuffer() is really function to check the variable data size.
|
||||||
|
|
||||||
Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -222,6 +222,7 @@ VariableLockRequestToLock (
|
|||||||
}
|
}
|
||||||
|
|
||||||
VariableNameSize = StrSize (VariableName);
|
VariableNameSize = StrSize (VariableName);
|
||||||
|
VariableToLock = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// If VariableName exceeds SMM payload limit. Return failure
|
// If VariableName exceeds SMM payload limit. Return failure
|
||||||
@ -302,6 +303,7 @@ RuntimeServiceGetVariable (
|
|||||||
|
|
||||||
TempDataSize = *DataSize;
|
TempDataSize = *DataSize;
|
||||||
VariableNameSize = StrSize (VariableName);
|
VariableNameSize = StrSize (VariableName);
|
||||||
|
SmmVariableHeader = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// If VariableName exceeds SMM payload limit. Return failure
|
// If VariableName exceeds SMM payload limit. Return failure
|
||||||
@ -404,6 +406,7 @@ RuntimeServiceGetNextVariableName (
|
|||||||
|
|
||||||
OutVariableNameSize = *VariableNameSize;
|
OutVariableNameSize = *VariableNameSize;
|
||||||
InVariableNameSize = StrSize (VariableName);
|
InVariableNameSize = StrSize (VariableName);
|
||||||
|
SmmGetNextVariableName = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// If input string exceeds SMM payload limit. Return failure
|
// If input string exceeds SMM payload limit. Return failure
|
||||||
@ -523,6 +526,7 @@ RuntimeServiceSetVariable (
|
|||||||
}
|
}
|
||||||
|
|
||||||
VariableNameSize = StrSize (VariableName);
|
VariableNameSize = StrSize (VariableName);
|
||||||
|
SmmVariableHeader = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// If VariableName or DataSize exceeds SMM payload limit. Return failure
|
// If VariableName or DataSize exceeds SMM payload limit. Return failure
|
||||||
@ -602,6 +606,8 @@ RuntimeServiceQueryVariableInfo (
|
|||||||
UINTN PayloadSize;
|
UINTN PayloadSize;
|
||||||
SMM_VARIABLE_COMMUNICATE_QUERY_VARIABLE_INFO *SmmQueryVariableInfo;
|
SMM_VARIABLE_COMMUNICATE_QUERY_VARIABLE_INFO *SmmQueryVariableInfo;
|
||||||
|
|
||||||
|
SmmQueryVariableInfo = NULL;
|
||||||
|
|
||||||
if(MaximumVariableStorageSize == NULL || RemainingVariableStorageSize == NULL || MaximumVariableSize == NULL || Attributes == 0) {
|
if(MaximumVariableStorageSize == NULL || RemainingVariableStorageSize == NULL || MaximumVariableSize == NULL || Attributes == 0) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user