Exploit databaseDownload repository ZIP
GH-557a35ec88cecc5153df8ffeda95d1c2
bob11vrdp/cve-2022-39425
Sources for CVE-2022-39425
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files18
bob11vrdp/cve-2022-39425Revision 1d03f54cf1ec
- ↑..Parent directory
- CompareMemWrapper.c
- CopyMemWrapper.c
- IsZeroBufferWrapper.c
- MemLib.c
- MemLibGeneric.c
- MemLibGuid.c
- MemLibInternals.h
- ScanMem16Wrapper.c
- ScanMem32Wrapper.c
- ScanMem64Wrapper.c
- ScanMem8Wrapper.c
- SetMem16Wrapper.c
- SetMem32Wrapper.c
- SetMem64Wrapper.c
- SetMemWrapper.c
- UefiMemoryLib.inf
- UefiMemoryLib.uni
- ZeroMemWrapper.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
VirtualBox-6.1.38/src/VBox/Devices/EFI/Firmware/MdePkg/Library/UefiMemoryLib/MemLib.c
C · 1,438 bytes/** @file
Base Memory Library functions implementation bases on Uefi Boot Service.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "MemLibInternals.h"
/**
Copies a source buffer to a destination buffer, and returns the destination buffer.
This function wraps the gBS->CopyMem().
@param DestinationBuffer The pointer to the destination buffer of the memory copy.
@param SourceBuffer The pointer to the source buffer of the memory copy.
@param Length The number of bytes to copy from SourceBuffer to DestinationBuffer.
@return DestinationBuffer.
**/
VOID *
EFIAPI
InternalMemCopyMem (
OUT VOID *Destination,
IN CONST VOID *Source,
IN UINTN Length
)
{
gBS->CopyMem (Destination, (VOID*)Source, Length);
return Destination;
}
/**
Fills a target buffer with a byte value, and returns the target buffer.
This function wraps the gBS->SetMem().
@param Buffer Memory to set.
@param Size The number of bytes to set.
@param Value Value of the set operation.
@return Buffer.
**/
VOID *
EFIAPI
InternalMemSetMem (
OUT VOID *Buffer,
IN UINTN Size,
IN UINT8 Value
)
{
gBS->SetMem (Buffer, Size, Value);
return Buffer;
}