]> git.proxmox.com Git - mirror_edk2.git/commit - NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
NetworkPkg: Check for the max DHCP packet length before use it.
authorFu Siyuan <siyuan.fu@intel.com>
Wed, 16 Nov 2016 05:37:15 +0000 (13:37 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Fri, 18 Nov 2016 08:30:50 +0000 (16:30 +0800)
commit632dcfd6857b6211ce3fe9755d3c11e74ef5d447
tree03c5766d7efa36d127b45d5c716561115ee62dd6
parent4f6b33b460226bc1a54d8af2c0f4fe195f2f04ce
NetworkPkg: Check for the max DHCP packet length before use it.

This patch updates the PXE and HTTP boot driver to drop the input DHCP packet
if it exceed the maximum length.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-By: Wu Jiaxin <jiaxin.wu@intel.com>
NetworkPkg/HttpBootDxe/HttpBootDhcp4.h
NetworkPkg/HttpBootDxe/HttpBootDhcp6.c
NetworkPkg/HttpBootDxe/HttpBootDhcp6.h
NetworkPkg/HttpBootDxe/HttpBootImpl.c
NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.h
NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c
NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.h
NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c