FFmpeg
Loading...
Searching...
No Matches
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 "libavutil/mem.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, AVFrame *unused, int *got_sub_ptr, const 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
 
static uint64_t alloc_pixels
 
static uint64_t max_alloc_pixels
 

Function Documentation

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t * data,
size_t size )

Definition at line 177 of file target_dec_fuzzer.c.

◆ error()

static void error ( const char * err)
static

Definition at line 63 of file target_dec_fuzzer.c.

Referenced by AVCodecInitialize(), and LLVMFuzzerTestOneInput().

◆ AVCodecInitialize()

static const FFCodec * AVCodecInitialize ( enum AVCodecID codec_id)
static

Definition at line 72 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ subtitle_handler()

static int subtitle_handler ( AVCodecContext * avctx,
AVFrame * unused,
int * got_sub_ptr,
const AVPacket * avpkt )
static

Definition at line 83 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 111 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 163 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

Variable Documentation

◆ codec_list

const FFCodec* codec_list[]
extern

◆ c

const FFCodec* c = NULL
static

Definition at line 69 of file target_dec_fuzzer.c.

◆ maxiteration

const uint32_t maxiteration = 8096

Definition at line 104 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ FUZZ_TAG

const uint64_t FUZZ_TAG = 0x4741542D5A5A5546ULL
static

Definition at line 106 of file target_dec_fuzzer.c.

◆ alloc_pixels

uint64_t alloc_pixels
static

Definition at line 108 of file target_dec_fuzzer.c.

Referenced by fuzz_video_get_buffer(), and LLVMFuzzerTestOneInput().

◆ max_alloc_pixels

uint64_t max_alloc_pixels
static

Definition at line 109 of file target_dec_fuzzer.c.

Referenced by fuzz_video_get_buffer(), and LLVMFuzzerTestOneInput().