FFmpeg
Functions | Variables
target_dec_fuzzer.c File Reference
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/bytestream.h"
#include "libavformat/avformat.h"
#include "libavcodec/internal.h"

Go to the source code of this file.

Functions

int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 
static void error (const char *err)
 
static AVCodecAVCodecInitialize (enum AVCodecID codec_id)
 
static int subtitle_handler (AVCodecContext *avctx, void *frame, int *got_sub_ptr, AVPacket *avpkt)
 

Variables

AVCodeccodec_list []
 
static AVCodecc = NULL
 
const uint32_t maxiteration = 8096
 
const uint64_t maxpixels_per_frame = 4096 * 4096
 
uint64_t maxpixels
 
const uint64_t maxsamples_per_frame = 256*1024*32
 
uint64_t maxsamples
 
static const uint64_t FUZZ_TAG = 0x4741542D5A5A5546ULL
 

Function Documentation

int LLVMFuzzerTestOneInput ( const uint8_t data,
size_t  size 
)

Definition at line 101 of file target_dec_fuzzer.c.

static void error ( const char *  err)
static

Definition at line 64 of file target_dec_fuzzer.c.

Referenced by AVCodecInitialize(), and LLVMFuzzerTestOneInput().

static AVCodec* AVCodecInitialize ( enum AVCodecID  codec_id)
static

Definition at line 71 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

static int subtitle_handler ( AVCodecContext avctx,
void frame,
int got_sub_ptr,
AVPacket avpkt 
)
static

Definition at line 81 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

Variable Documentation

AVCodec* codec_list[]
AVCodec* c = NULL
static

Definition at line 70 of file target_dec_fuzzer.c.

const uint32_t maxiteration = 8096

Definition at line 92 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

const uint64_t maxpixels_per_frame = 4096 * 4096

Definition at line 93 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

uint64_t maxpixels

Definition at line 94 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

const uint64_t maxsamples_per_frame = 256*1024*32

Definition at line 96 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

uint64_t maxsamples

Definition at line 97 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

const uint64_t FUZZ_TAG = 0x4741542D5A5A5546ULL
static

Definition at line 99 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().