FFmpeg
Data Structures | Functions | Variables
target_dem_fuzzer.c File Reference
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/bytestream.h"
#include "libavformat/avformat.h"
#include "libavformat/demux.h"

Go to the source code of this file.

Data Structures

struct  IOContext
 

Functions

int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 
static int interrupt_cb (void *ctx)
 
static void error (const char *err)
 
static int io_read (void *opaque, uint8_t *buf, int buf_size)
 
static int64_t io_seek (void *opaque, int64_t offset, int whence)
 

Variables

int64_t interrupt_counter
 
const uint32_t maxiteration = 8096
 
const int maxblocks = 50000
 
static const uint64_t FUZZ_TAG = 0x4741542D5A5A5546ULL
 

Function Documentation

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t *  data,
size_t  size 
)

Definition at line 102 of file target_dem_fuzzer.c.

◆ interrupt_cb()

static int interrupt_cb ( void *  ctx)
static

Definition at line 38 of file target_dem_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ error()

static void error ( const char *  err)
static

Definition at line 44 of file target_dem_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ io_read()

static int io_read ( void *  opaque,
uint8_t *  buf,
int  buf_size 
)
static

Definition at line 50 of file target_dem_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ io_seek()

static int64_t io_seek ( void *  opaque,
int64_t  offset,
int  whence 
)
static

Definition at line 71 of file target_dem_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

Variable Documentation

◆ interrupt_counter

int64_t interrupt_counter

Definition at line 37 of file target_dem_fuzzer.c.

Referenced by interrupt_cb(), and LLVMFuzzerTestOneInput().

◆ maxiteration

const uint32_t maxiteration = 8096

Definition at line 97 of file target_dem_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ maxblocks

const int maxblocks = 50000

Definition at line 98 of file target_dem_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ FUZZ_TAG

const uint64_t FUZZ_TAG = 0x4741542D5A5A5546ULL
static

Definition at line 100 of file target_dem_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().