audk/MdeModulePkg/Universal/Network/Tcp4Dxe
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
..
ComponentName.c Initialize data and correct faulty logic in TcpComponentNameGetControllerName(). 2015-02-04 06:43:34 +00:00
SockImpl.c 1. Fix a bug in PXE driver that the PXE boot do not restart if a new boot option on the different IP stack is selected. 2012-10-17 08:23:41 +00:00
SockImpl.h Update the copyright notice format 2010-04-24 09:33:45 +00:00
SockInterface.c 1. Add EFI_COMPONENT_NAME2_PROTOCOL.GetControllerName() support. 2012-12-13 06:47:06 +00:00
Socket.h 1. Add EFI_COMPONENT_NAME2_PROTOCOL.GetControllerName() support. 2012-12-13 06:47:06 +00:00
Tcp4Dispatcher.c MdeModulePkg: Source fixes and cleanup for ARMGCC compiles 2014-12-04 00:32:24 +00:00
Tcp4Driver.c 1. Mark the network volatile variables as deprecated in code comments and remove related code to set/get these variable. 2014-05-07 06:17:31 +00:00
Tcp4Driver.h 1. Mark the network volatile variables as deprecated in code comments and remove related code to set/get these variable. 2014-05-07 06:17:31 +00:00
Tcp4Dxe.inf MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:34:06 +00:00
Tcp4Dxe.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Tcp4DxeExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Tcp4Func.h 1. Mark the network volatile variables as deprecated in code comments and remove related code to set/get these variable. 2014-05-07 06:17:31 +00:00
Tcp4Input.c MdeModulePkg: Check received packet size before use it. 2016-04-01 13:30:08 +08:00
Tcp4Io.c Update the copyright notice format 2010-04-24 09:33:45 +00:00
Tcp4Main.c Remove CONST modifier to be spec compliance 2011-08-24 09:38:10 +00:00
Tcp4Main.h 1. Add EFI_COMPONENT_NAME2_PROTOCOL.GetControllerName() support. 2012-12-13 06:47:06 +00:00
Tcp4Misc.c Save initial TSVal from TCP connection initiation packets. 2015-04-13 01:39:29 +00:00
Tcp4Option.c Update the copyright notice format 2010-04-24 09:33:45 +00:00
Tcp4Option.h Update the copyright notice format 2010-04-24 09:33:45 +00:00
Tcp4Output.c Refine soma code to make code run safely. 2010-09-15 07:48:11 +00:00
Tcp4Proto.h The patch acknowledges the TCP zero window probe message, either the format with 1 byte new data, or no new data. It also increases exponentially the interval between successive probes when performing TCP zero window probe. 2010-08-27 07:57:45 +00:00
Tcp4Timer.c The patch acknowledges the TCP zero window probe message, either the format with 1 byte new data, or no new data. It also increases exponentially the interval between successive probes when performing TCP zero window probe. 2010-08-27 07:57:45 +00:00