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)
 
static int audio_video_handler (AVCodecContext *avctx, AVFrame *frame, int *got_frame, const AVPacket *dummy)
 

Variables

AVCodeccodec_list []
 
static AVCodecc = NULL
 
const uint32_t maxiteration = 8096
 
uint64_t maxpixels_per_frame = 4096 * 4096
 
uint64_t maxpixels
 
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 109 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().

static int audio_video_handler ( AVCodecContext avctx,
AVFrame frame,
int got_frame,
const AVPacket dummy 
)
static

Definition at line 91 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

Variable Documentation

AVCodec* codec_list[]

Referenced by ff_cbs_sei_find_type().

AVCodec* c = NULL
static

Definition at line 70 of file target_dec_fuzzer.c.

const uint32_t maxiteration = 8096

Definition at line 100 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

uint64_t maxpixels_per_frame = 4096 * 4096

Definition at line 101 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

uint64_t maxpixels

Definition at line 102 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

uint64_t maxsamples_per_frame = 256*1024*32

Definition at line 104 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

uint64_t maxsamples

Definition at line 105 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

const uint64_t FUZZ_TAG = 0x4741542D5A5A5546ULL
static

Definition at line 107 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().