NetworkPkg: UefiPxeBcDxe: SECURITY PATCH CVE-2023-45234 Unit Tests
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4539 Unit tests to that the bug.. Buffer overflow when processing DNS Servers option in a DHCPv6 Advertise message ..has been patched This contains tests for the following functions: PxeBcHandleDhcp6Offer PxeBcCacheDnsServerAddresses Cc: Saloni Kasbekar <saloni.kasbekar@intel.com> Cc: Zachary Clark-williams <zachary.clark-williams@intel.com> Signed-off-by: Doug Flick [MSFT] <doug.edk2@gmail.com> Reviewed-by: Saloni Kasbekar <saloni.kasbekar@intel.com>
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
## @file
|
||||
# Unit test suite for the UefiPxeBcDxe using Google Test
|
||||
#
|
||||
# Copyright (c) Microsoft Corporation.<BR>
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
##
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010005
|
||||
BASE_NAME = UefiPxeBcDxeGoogleTest
|
||||
FILE_GUID = 77D45C64-EC1E-4174-887B-886E89FD1EDF
|
||||
MODULE_TYPE = HOST_APPLICATION
|
||||
VERSION_STRING = 1.0
|
||||
|
||||
#
|
||||
# The following information is for reference only and not required by the build tools.
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64
|
||||
#
|
||||
|
||||
[Sources]
|
||||
UefiPxeBcDxeGoogleTest.cpp
|
||||
PxeBcDhcp6GoogleTest.cpp
|
||||
PxeBcDhcp6GoogleTest.h
|
||||
../PxeBcDhcp6.c
|
||||
../PxeBcSupport.c
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec
|
||||
NetworkPkg/NetworkPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
GoogleTestLib
|
||||
DebugLib
|
||||
NetLib
|
||||
PcdLib
|
||||
|
||||
[Protocols]
|
||||
gEfiDhcp6ServiceBindingProtocolGuid
|
||||
gEfiDns6ServiceBindingProtocolGuid
|
||||
gEfiDns6ProtocolGuid
|
||||
|
||||
[Pcd]
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdDhcp6UidType
|
||||
|
||||
[Guids]
|
||||
gZeroGuid
|
Reference in New Issue
Block a user