From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 97B3E81EC7 for ; Tue, 15 Nov 2016 21:38:42 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP; 15 Nov 2016 21:38:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,646,1473145200"; d="scan'208";a="1085856262" Received: from sfu5-mobl3.ccr.corp.intel.com ([10.239.194.23]) by fmsmga002.fm.intel.com with ESMTP; 15 Nov 2016 21:38:46 -0800 From: Fu Siyuan To: edk2-devel@lists.01.org Date: Wed, 16 Nov 2016 13:38:41 +0800 Message-Id: <1479274723-9468-1-git-send-email-siyuan.fu@intel.com> X-Mailer: git-send-email 2.7.4.windows.1 Subject: [Patch 0/2] Check-for-the-max-DHCP-packet-length X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2016 05:38:42 -0000 Updates the PXE and HTTP boot driver to drop the input DHCP packet if it exceed the maximum length. Fu Siyuan (2): MdeModulePkg: Check for the max DHCP packet length before use it. NetworkPkg: Check for the max DHCP packet length before use it. .../Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c | 23 +++++++++++++++ .../Universal/Network/UefiPxeBcDxe/PxeBcDhcp.h | 2 +- NetworkPkg/HttpBootDxe/HttpBootDhcp4.h | 4 ++- NetworkPkg/HttpBootDxe/HttpBootDhcp6.c | 6 ++++ NetworkPkg/HttpBootDxe/HttpBootDhcp6.h | 4 ++- NetworkPkg/HttpBootDxe/HttpBootImpl.c | 4 +-- NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c | 34 ++++++++++++++++++++-- NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.h | 6 ++-- NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c | 29 ++++++++++++++++++ NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.h | 6 ++-- NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c | 16 +++++----- 11 files changed, 115 insertions(+), 19 deletions(-) -- 2.7.4.windows.1