audk/MdeModulePkg/Universal
Fu Siyuan 1b31acb66c MdeModulePkg: Check received packet size before use it.
Arbitrary length of packet may be received from network, including the
packets with zero payload data or malformed protocol header. So the code
much check the actually received data size before using it. For example, in
current edk2 network stack, an zero payload UDP packet may cause the
platform ASSERT in NetbufFromExt() because of the zero fragment number.
This patch update the IpIoLib and UdpIoLib to check and discard the zero
payload data packet to avoid above assert. Some other network drivers are
also updated to check the packet size to guarantee the minimum length of
protocol header is received from upper layer driver.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
2016-04-01 13:30:08 +08:00
..
Acpi MdeModulePkg AcpiTableDxe: Use Rsdt to check against NULL 2016-03-08 18:05:16 +08:00
BdsDxe MdeModulePkg BdsDxe: Change file format which the existed folder has mixed file format. 2015-12-16 03:23:37 +00:00
BootManagerPolicyDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
CapsulePei MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
CapsuleRuntimeDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Console Revert "TerminalDxe: select the UART's default receive FIFO depth" 2016-04-01 09:18:23 +08:00
DebugPortDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
DebugSupportDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
DevicePathDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Disk MdeModulePkg RamDiskDxe: Fix incorrect RAM disk memory address calculation 2016-03-31 13:08:44 +08:00
DisplayEngineDxe MdeModulePkg/DisplayEngineDxe: Refine the coding style 2016-03-04 14:03:25 +08:00
DriverHealthManagerDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
DriverSampleDxe MdeModulePkg/DriverSampleDxe: Uninstall the ConfigAccess protocol 2016-03-16 10:40:55 +08:00
EbcDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
EsrtDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
FaultTolerantWriteDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
FaultTolerantWritePei MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
FileExplorerDxe MdeModulePkg FileExplorerDxe: Change file format which has mixed file format. 2015-12-16 03:22:39 +00:00
FvSimpleFileSystemDxe MdeModulePkg/FvSimpleFs: don't open DevicePath with BY_DRIVER mode 2016-03-03 15:50:19 +08:00
HiiDatabaseDxe MdeModulePkg: Make HII configuration settings available to OS runtime 2016-03-04 14:04:43 +08:00
HiiResourcesSampleDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
LegacyRegion2Dxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
LockBox/SmmLockBox MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
MemoryTest MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Metronome MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
MonotonicCounterRuntimeDxe MdeModulePkg: Minor comments update to GetNextHighMonotonicCount() 2016-01-29 09:26:49 +00:00
Network MdeModulePkg: Check received packet size before use it. 2016-04-01 13:30:08 +08:00
PCD MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
PcatSingleSegmentPciCfg2Pei MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
PlatformDriOverrideDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
PrintDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
PropertiesTableAttributesDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
RegularExpressionDxe MdeModulePkg: Fixed incorrect return value of MatchString 2016-03-17 10:53:48 +08:00
ReportStatusCodeRouter MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
ResetSystemRuntimeDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
SectionExtractionDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
SectionExtractionPei MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
SecurityStubDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
SerialDxe MdeModulePkg/SerialDxe: Set FIFO depth with PCD 2016-03-29 15:00:30 +08:00
SetupBrowserDxe MdeModulePkg: Add new HII action type EFI_BROWSER_ACTION_SUBMITTED 2016-02-25 14:42:24 +08:00
SmbiosDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
SmbiosMeasurementDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
StatusCodeHandler MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
TimestampDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Variable MdeModulePkg Variable: Minor update to the Data parameter for GetVariable() 2016-01-29 09:15:43 +00:00
WatchdogTimerDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00