NetworkPkg: UefiPxeBcDxe: SECURITY PATCH CVE-2023-45235 Unit Tests
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4540 Unit tests to confirm that the bug.. Buffer overflow when handling Server ID option from a DHCPv6 proxy Advertise message ..has been patched. This patch contains unit tests for the following functions: PxeBcRequestBootService PxeBcDhcp6Discover 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:
@@ -47,4 +47,22 @@ PxeBcCacheDnsServerAddresses (
|
||||
IN PXEBC_DHCP6_PACKET_CACHE *Cache6
|
||||
);
|
||||
|
||||
/**
|
||||
Build and send out the request packet for the bootfile, and parse the reply.
|
||||
|
||||
@param[in] Private The pointer to PxeBc private data.
|
||||
@param[in] Index PxeBc option boot item type.
|
||||
|
||||
@retval EFI_SUCCESS Successfully discovered the boot file.
|
||||
@retval EFI_OUT_OF_RESOURCES Failed to allocate resources.
|
||||
@retval EFI_NOT_FOUND Can't get the PXE reply packet.
|
||||
@retval Others Failed to discover the boot file.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
PxeBcRequestBootService (
|
||||
IN PXEBC_PRIVATE_DATA *Private,
|
||||
IN UINT32 Index
|
||||
);
|
||||
|
||||
#endif // PXE_BC_DHCP6_GOOGLE_TEST_H_
|
||||
|
Reference in New Issue
Block a user