audk/EdkCompatibilityPkg/Compatibility
lzeng14 9d00d20ed4 1. Use the check IsAddressValid() to prevent SMM communication buffer overflow in SmmVariable, FtwSmm, FpdtSmm, SmmCorePerformance and SmmBaseHelper, and add check to prevent InfoSize overflows in SmmVariableHandler.
2. Refine the debug message.
3. Add check to make sure the input VariableName is A Null-terminated string.
4. Use local variable to hold StrSize (VariableName) to avoid duplicated StrSize calculation.

Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14317 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-25 10:49:45 +00:00
..
AcpiVariableHobOnSmramReserveHobThunk Avoid using code name in comments. 2011-10-19 05:44:28 +00:00
BootScriptSaveOnS3SaveStateThunk Allocate ReservedMemory instead of ACPIMemoryNVS for its shadow memory space which is not required to be restored by OS. 2012-11-12 05:28:32 +00:00
BootScriptThunkHelper Allocate ReservedMemory instead of ACPIMemoryNVS for its shadow memory space which is not required to be restored by OS. 2012-11-12 05:28:32 +00:00
CpuIo2OnCpuIoThunk
DeviceIoOnPciRootBridgeIoThunk Fix comparisons of enumerated types which may cause warnings for some compilers. 2012-08-28 06:48:28 +00:00
DxeSmmReadyToLockOnExitPmAuthThunk Avoid using code name in comments. 2011-10-19 05:44:28 +00:00
FrameworkHiiOnUefiHiiThunk Fixed build failed. 2012-05-31 08:35:48 +00:00
FrameworkSmmStatusCodeOnPiSmmStatusCodeThunk
Fv2OnFvThunk
FvFileLoaderOnLoadFileThunk
FvOnFv2Thunk
Include Clean up the private GUID definition in module Level. 2011-09-20 02:15:00 +00:00
LegacyRegion2OnLegacyRegionThunk
Library/UefiLanguageLib
MpServicesOnFrameworkMpServicesThunk EdkCompatibilityPkg MpServicesOnFrameworkMpServicesThunk: Update .S files to be consistent with corresponding .asm files. 2012-07-02 10:38:24 +00:00
PciCfg2OnPciCfgThunk
PciCfgOnPciCfg2Thunk Avoid using code name in comments. 2011-10-19 05:44:28 +00:00
PiSmbiosRecordOnDataHubSmbiosRecordThunk According to PI errata 0000654 and 000811, we need use 0xFFFE to instead of 0 for EFI_SMBIOS_PROTOCOL.Add() SmbiosHandle parameter to assign a unique handle to the SMBIOS record, and for EFI_SMBIOS_PROTOCOL.GetNext() SmbiosHandle parameter to get the first matched SMBIOS handle or indicate no more SMBIOS record. 2011-11-21 08:53:04 +00:00
PiSmmStatusCodeOnFrameworkSmmStatusCodeThunk
PrintThunk
ReadOnlyVariable2OnReadOnlyVariableThunk
ReadOnlyVariableOnReadOnlyVariable2Thunk
SmmAccess2OnSmmAccessThunk
SmmBaseHelper 1. Use the check IsAddressValid() to prevent SMM communication buffer overflow in SmmVariable, FtwSmm, FpdtSmm, SmmCorePerformance and SmmBaseHelper, and add check to prevent InfoSize overflows in SmmVariableHandler. 2013-04-25 10:49:45 +00:00
SmmBaseOnSmmBase2Thunk
SmmControl2OnSmmControlThunk PI 1.2 Errata C: A new return condition is added for the returned status code EFI_INVALID_PARAMETER for SMM Control2 Protocol.Trigger(). 2011-11-21 05:23:58 +00:00
Uc2OnUcThunk String Reference Cleanup. 2011-06-08 05:53:18 +00:00
UcOnUc2Thunk String Reference Cleanup. 2011-06-08 05:53:18 +00:00