OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
TestFatDxe.c File Reference
#include <Fat.h>
#include <UserFile.h>
#include <UserGlobalVar.h>
#include <UserMemory.h>
#include <UserUnicodeCollation.h>
#include <string.h>

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI FuzzBlockIoFlushBlocks (IN EFI_BLOCK_IO_PROTOCOL *This)
 
EFI_STATUS EFIAPI FuzzReadDisk (IN EFI_DISK_IO_PROTOCOL *This, IN UINT32 MediaId, IN UINT64 Offset, IN UINTN BufferSize, OUT VOID *Buffer)
 
EFI_STATUS EFIAPI WrapInstallMultipleProtocolInterfaces (IN OUT EFI_HANDLE *Handle,...)
 
VOID FreeAll (IN CHAR16 *FileName, IN FAT_VOLUME *Volume, IN EFI_FILE_PROTOCOL *RootDirInstance)
 
STATIC INT32 TestFatDxe (CONST UINT8 *FuzzData, UINTN FuzzSize)
 
INT32 LLVMFuzzerTestOneInput (CONST UINT8 *FuzzData, UINTN FuzzSize)
 
int ENTRY_POINT (int argc, char **argv)
 

Variables

EFI_UNICODE_COLLATION_PROTOCOL * mUnicodeCollationInterface
 
STATIC EFI_SIMPLE_FILE_SYSTEM_PROTOCOL * mEfiSfsInterface
 
UINTN mFuzzOffset
 
UINTN mFuzzSize
 
CONST UINT8 * mFuzzPointer
 

Detailed Description

Copyright (c) 2023, Savva Mitrofanov. All rights reserved. SPDX-License-Identifier: BSD-3-Clause

Definition in file TestFatDxe.c.

Function Documentation

◆ ENTRY_POINT()

int ENTRY_POINT ( int argc,
char ** argv )

Definition at line 487 of file TestFatDxe.c.

◆ FreeAll()

VOID FreeAll ( IN CHAR16 * FileName,
IN FAT_VOLUME * Volume,
IN EFI_FILE_PROTOCOL * RootDirInstance )

Definition at line 98 of file TestFatDxe.c.

◆ FuzzBlockIoFlushBlocks()

EFI_STATUS EFIAPI FuzzBlockIoFlushBlocks ( IN EFI_BLOCK_IO_PROTOCOL * This)

Definition at line 24 of file TestFatDxe.c.

◆ FuzzReadDisk()

EFI_STATUS EFIAPI FuzzReadDisk ( IN EFI_DISK_IO_PROTOCOL * This,
IN UINT32 MediaId,
IN UINT64 Offset,
IN UINTN BufferSize,
OUT VOID * Buffer )

Definition at line 33 of file TestFatDxe.c.

◆ LLVMFuzzerTestOneInput()

INT32 LLVMFuzzerTestOneInput ( CONST UINT8 * FuzzData,
UINTN FuzzSize )

Definition at line 440 of file TestFatDxe.c.

◆ TestFatDxe()

STATIC INT32 TestFatDxe ( CONST UINT8 * FuzzData,
UINTN FuzzSize )

Definition at line 144 of file TestFatDxe.c.

◆ WrapInstallMultipleProtocolInterfaces()

EFI_STATUS EFIAPI WrapInstallMultipleProtocolInterfaces ( IN OUT EFI_HANDLE * Handle,
... )

Definition at line 58 of file TestFatDxe.c.

Variable Documentation

◆ mEfiSfsInterface

STATIC EFI_SIMPLE_FILE_SYSTEM_PROTOCOL* mEfiSfsInterface

Definition at line 16 of file TestFatDxe.c.

◆ mFuzzOffset

UINTN mFuzzOffset

Definition at line 18 of file TestFatDxe.c.

◆ mFuzzPointer

CONST UINT8* mFuzzPointer

Definition at line 20 of file TestFatDxe.c.

◆ mFuzzSize

UINTN mFuzzSize

Definition at line 19 of file TestFatDxe.c.

◆ mUnicodeCollationInterface

EFI_UNICODE_COLLATION_PROTOCOL* mUnicodeCollationInterface
extern