audk/MdeModulePkg/Universal
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
..
Acpi 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
CapsulePei 1. Add debug init flag DEBUG_AGENT_INIT_THUNK_PEI_IA32TOX64 in Debug Agent Library. 2012-08-27 08:36:23 +00:00
CapsuleRuntimeDxe Add capsule > 4GB support. When capsule data is put above 4GB, IA32 PEI transfers to long mode to get capsule data. 2011-09-02 11:34:35 +00:00
Console Don't assume HiiDatabase has been present at the entrypoint and don't assume HiiDatabase and HiiFont are on the same handle according to the UEFI spec. 2013-04-02 03:23:54 +00:00
DebugPortDxe MdeModulePkg/DebugPortDxe: Fixed the ordering of the EFI_DEBUGPORT_PROTOCOL entries 2012-03-15 15:27:18 +00:00
DebugSupportDxe MdeModulePkg: eliminate all implicit library dependencies for all modules in MdeModulePkg on PcdLib 2012-11-01 06:59:25 +00:00
DevicePathDxe Fix build failure by adding UINT16 type cast. 2013-04-12 07:16:42 +00:00
Disk Add comment for modules which have external input. 2012-06-12 08:28:43 +00:00
DriverSampleDxe Refine code to follow coding style. 2013-01-24 08:46:59 +00:00
EbcDxe Add Missing invocations to VA_END() for VA_START(). 2012-02-01 06:06:08 +00:00
FaultTolerantWriteDxe 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
HiiDatabaseDxe Base on the type field to get the width of value field for option opcode. 2013-01-06 06:12:50 +00:00
HiiResourcesSampleDxe Clean up the private GUID definition in module Level. 2011-09-18 12:21:01 +00:00
LegacyRegion2Dxe Enhance inf and dec file to follow specs. 2011-03-14 08:43:59 +00:00
LockBox/SmmLockBox 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
MemoryTest MdeModulePkg: Add GenericMemoryTestDxe driver 2011-07-01 00:40:26 +00:00
Metronome
MonotonicCounterRuntimeDxe Clean up the private GUID definition in module Level. 2011-09-18 12:21:01 +00:00
Network Fix ping command issue in IP4 driver. 2013-04-25 01:25:49 +00:00
PCD Adds ASSERT check in DxePcd driver when error status of read DynamicHii PCD is not EFI_NOT_FOUND to avoid the incorrect value is used. 2013-02-27 03:01:40 +00:00
PcatSingleSegmentPciCfg2Pei
PlatformDriOverrideDxe Fixed build failed. 2012-05-31 08:35:48 +00:00
PrintDxe
ReportStatusCodeRouter MdeModulePkg: eliminate all implicit library dependencies for all modules in MdeModulePkg on PcdLib 2012-11-01 06:59:25 +00:00
ResetSystemRuntimeDxe Add missing status code in several modules. 2012-10-30 04:23:40 +00:00
SecurityStubDxe Update SecurityStub SAP protocol to support SecureHandler and SecureHandler2 both. 2013-02-01 05:34:19 +00:00
SetupBrowserDxe Update the browser logic, make the storage as browser level instead of form set level. 2013-04-16 10:53:22 +00:00
SmbiosDxe Fill SMBIOS BCD revision field. 2013-04-02 07:44:11 +00:00
StatusCodeHandler EFI_STATUS_CODE_DATA_MAX_SIZE is just for the maximum size of an EFI_DEBUG_INFO structure. Seemly, it is not suitable to be used in SerialStatusCodeHandler, so update SerialStatusCodeHandler to use MAX_DEBUG_MESSAGE_LENGTH (0x100) as the max printed string size to align with other DebugLib’s behavior. 2012-06-12 04:52:23 +00:00
Variable 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
WatchdogTimerDxe Add debug print that the system is about to be reset. I was seeing watchtog timeouts in UnixPkg and they were hard to debug as gdb was exiting. This debug print should be useful in general. 2010-07-30 16:01:09 +00:00