audk/MdeModulePkg/Universal/Network
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
..
ArpDxe MdeModulePkg: Check received packet size before use it. 2016-04-01 13:30:08 +08:00
Dhcp4Dxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
DpcDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
IScsiDxe MdeModulePkg IScsiDxe: Fix a typo in function description 2016-01-06 01:11:49 +00:00
Ip4Dxe MdeModulePkg: Fix IPv4 double free 2016-03-04 15:20:58 +08:00
MnpDxe MdeModulePkg:Fix a robustness issue of Mnp Driver 2016-02-29 09:24:58 +08:00
Mtftp4Dxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
SnpDxe MdeModulePkg: SNP should check Cdb.StatCode with PXE_STATCODE_SUCCESS. 2016-02-17 08:51:03 +08:00
Tcp4Dxe MdeModulePkg: Check received packet size before use it. 2016-04-01 13:30:08 +08:00
Udp4Dxe MdeModulePkg: Check received packet size before use it. 2016-04-01 13:30:08 +08:00
UefiPxeBcDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
VlanConfigDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00