audk/NetworkPkg
Fu Siyuan 37b680116d NetworkPkg: 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:23 +08:00
..
Application NetworkPkg: Refine the code of shell app under networkPkg. 2016-03-11 11:55:06 +08:00
Dhcp6Dxe NetworkPkg: Check received packet size before use it. 2016-04-01 13:30:23 +08:00
DnsDxe NetworkPkg: Check received packet size before use it. 2016-04-01 13:30:23 +08:00
HttpBootDxe NetworkPkg: Check pointer for NULL before use. 2016-04-01 13:14:49 +08:00
HttpDxe NetworkPkg: Use the New Functions from HttpLib 2016-03-10 10:01:42 +08:00
HttpUtilitiesDxe NetworkPkg: Use the New Functions from HttpLib 2016-03-10 10:01:42 +08:00
IScsiDxe NetworkPkg IScsiDxe: Fix typos in function descriptions 2016-01-06 01:12:27 +00:00
Include/Guid NetworkPkg: Add URI configuration form to HTTP boot driver. 2016-03-07 09:12:14 +08:00
Ip6Dxe NetworkPkg: Change the default IPv6 config policy 2016-03-02 15:43:52 +08:00
IpSecDxe NetworkPkg: IpSecDxe: remove set but unused variables 2016-03-25 10:52:31 +01:00
Mtftp6Dxe NetworkPkg:Fix Network memory leak when calling GetModeData interface 2016-01-28 02:32:43 +00:00
TcpDxe NetworkPkg: Check received packet size before use it. 2016-04-01 13:30:23 +08:00
Udp6Dxe NetworkPkg: Check received packet size before use it. 2016-04-01 13:30:23 +08:00
UefiPxeBcDxe NetworkPkg: Reword PXE download message 2016-02-14 10:18:54 +08:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
NetworkPkg.dec NetworkPkg: Add URI configuration form to HTTP boot driver. 2016-03-07 09:12:14 +08:00
NetworkPkg.dsc NetworkPkg: Add NOOPT target in NetworkPkg.dsc 2016-01-19 04:06:24 +00:00
NetworkPkg.uni NetworkPkg: Update NetworkPkg.uni to UTF-8 file format 2015-12-23 07:55:27 +00:00
NetworkPkgExtra.uni NetworkPkg: Convert all .uni files to utf-8 2015-12-15 04:56:57 +00:00