mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-20 09:08:10 +02:00
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4534 These tests confirm that the report bug... "Out-of-bounds read when processing IA_NA/IA_TA options in a DHCPv6 Advertise message" ..has been patched. The following functions are tested to confirm an out of bounds read is patched and that the correct statuses are returned: Dhcp6SeekInnerOptionSafe Dhcp6SeekStsOption TCBZ4534 CVE-2023-45229 CVSS 6.5 : CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CWE-125 Out-of-bounds Read 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>
45 lines
1009 B
INI
45 lines
1009 B
INI
## @file
|
|
# Unit test suite for the Dhcp6Dxe using Google Test
|
|
#
|
|
# Copyright (c) Microsoft Corporation.<BR>
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
##
|
|
[Defines]
|
|
INF_VERSION = 0x00010017
|
|
BASE_NAME = Dhcp6DxeGoogleTest
|
|
FILE_GUID = 1D2A4C65-38C8-4C2F-BB60-B5FA49625AA9
|
|
VERSION_STRING = 1.0
|
|
MODULE_TYPE = HOST_APPLICATION
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = IA32 X64 AARCH64
|
|
#
|
|
[Sources]
|
|
Dhcp6DxeGoogleTest.cpp
|
|
Dhcp6IoGoogleTest.cpp
|
|
Dhcp6IoGoogleTest.h
|
|
../Dhcp6Io.c
|
|
../Dhcp6Utility.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec
|
|
NetworkPkg/NetworkPkg.dec
|
|
|
|
[LibraryClasses]
|
|
GoogleTestLib
|
|
DebugLib
|
|
NetLib
|
|
PcdLib
|
|
|
|
[Protocols]
|
|
gEfiDhcp6ServiceBindingProtocolGuid
|
|
|
|
[Pcd]
|
|
gEfiNetworkPkgTokenSpaceGuid.PcdDhcp6UidType
|
|
|
|
[Guids]
|
|
gZeroGuid
|