FFmpeg
Functions | Variables
target_dec_fuzzer.c File Reference
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/cpu.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/codec_internal.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 const FFCodecAVCodecInitialize (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)
 
static int fuzz_video_get_buffer (AVCodecContext *ctx, AVFrame *frame)
 
static int fuzz_get_buffer2 (AVCodecContext *ctx, AVFrame *frame, int flags)
 

Variables

const FFCodeccodec_list []
 
static const FFCodecc = NULL
 
const uint32_t maxiteration = 8096
 
static const uint64_t FUZZ_TAG = 0x4741542D5A5A5546ULL
 

Function Documentation

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t *  data,
size_t  size 
)

Definition at line 161 of file target_dec_fuzzer.c.

◆ error()

static void error ( const char *  err)
static

Definition at line 67 of file target_dec_fuzzer.c.

Referenced by AVCodecInitialize(), and LLVMFuzzerTestOneInput().

◆ AVCodecInitialize()

static const FFCodec* AVCodecInitialize ( enum AVCodecID  codec_id)
static

Definition at line 74 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ subtitle_handler()

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

Definition at line 84 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ audio_video_handler()

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

Definition at line 94 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ fuzz_video_get_buffer()

static int fuzz_video_get_buffer ( AVCodecContext ctx,
AVFrame frame 
)
static

Definition at line 107 of file target_dec_fuzzer.c.

Referenced by fuzz_get_buffer2().

◆ fuzz_get_buffer2()

static int fuzz_get_buffer2 ( AVCodecContext ctx,
AVFrame frame,
int  flags 
)
static

Definition at line 147 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

Variable Documentation

◆ codec_list

const FFCodec* codec_list[]

◆ c

const FFCodec* c = NULL
static

Definition at line 73 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ maxiteration

const uint32_t maxiteration = 8096

Definition at line 103 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ FUZZ_TAG

const uint64_t FUZZ_TAG = 0x4741542D5A5A5546ULL
static

Definition at line 105 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().