FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | 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"

Go to the source code of this file.

Data Structures

struct  FuzzDataBuffer
 

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 void FDBCreate (FuzzDataBuffer *FDB)
 
static void FDBDesroy (FuzzDataBuffer *FDB)
 
static void FDBRealloc (FuzzDataBuffer *FDB, size_t size)
 
static void FDBPrepare (FuzzDataBuffer *FDB, AVPacket *dst, const uint8_t *data, size_t size)
 

Variables

static AVCodecc = NULL
 
const uint32_t maxiteration = 8096
 
static const uint64_t FUZZ_TAG = 0x4741542D5A5A5546ULL
 

Function Documentation

int LLVMFuzzerTestOneInput ( const uint8_t data,
size_t  size 
)

Definition at line 132 of file target_dec_fuzzer.c.

static void error ( const char *  err)
static
Examples:
transcode_aac.c.

Definition at line 59 of file target_dec_fuzzer.c.

Referenced by aac_encode_init(), add_audio_device(), add_samples_to_fifo(), add_video_device(), adpcm_encode_frame(), adpcm_encode_init(), al_get_error(), alac_encode_init(), android_camera_read_header(), aom_decode(), aom_init(), aptx_quantize_difference(), av_audio_fifo_alloc(), AVCodecInitialize(), avformat_alloc_output_context2(), avformat_find_stream_info(), avisynth_context_create(), avisynth_read_packet_audio(), avisynth_read_packet_video(), avresample_open(), calc_prediction_gain(), calculate_visual_weight(), check_diff(), check_specific_config(), convert_samples(), create(), cuda_device_create(), cuda_device_init(), cuvid_decode_init(), cuvid_output_frame(), decode_audio_frame(), decode_cell(), decode_frame(), decode_ihdr_chunk(), decode_init(), decode_picture(), dering_TMPL(), dnxhd_decode_dct_block(), do_audio_out(), do_video_out(), dshow_add_device(), dshow_open_device(), dshow_read_header(), encode_audio_frame(), encode_frame(), encode_init(), encode_superframe(), eval_error_cell(), FDBCreate(), FDBRealloc(), ff_alloc_input_device_context(), ff_audio_mix_alloc(), ff_audio_resample_init(), ff_decklink_read_header(), ff_decklink_write_header(), ff_ebur128_loudness_momentary(), ff_ebur128_loudness_shortterm(), ff_ebur128_loudness_window(), ff_er_frame_end(), ff_filter_frame(), ff_frame_thread_init(), ff_h263_encode_picture_header(), ff_intrax8_decode_picture(), ff_lpc_calc_ref_coefs_f(), ff_mpeg12_find_best_frame_rate(), ff_rfps_add_frame(), ff_rfps_calculate(), ff_v4l2_m2m_codec_full_reinit(), ff_vc1_decode_init_alloc_tables(), ffmpeg_parse_options(), find_slice_quant(), flush_encoders(), flv_write_header(), g722_encode_init(), gdigrab_read_header(), gdigrab_region_wnd_init(), get_audio_flags(), get_number(), get_utf8_length_at(), guess_dc(), guess_mv(), handle_id3(), hls_decode_entry_wpp(), hls_slice_data_wpp(), id3v2_parse(), image_available(), init_axis_from_file(), init_converted_samples(), init_cqt(), init_output_frame(), init_resampler(), init_volume(), initFilter(), ipvideo_decode_init(), is_intra_more_likely(), libgsm_encode_init(), librsvg_decode_frame(), libvorbis_encode_init(), libvorbis_setup(), LLVMFuzzerTestOneInput(), load_apply_palette(), load_glyph(), log_encoder_error(), main(), mp3_write_xing(), mp3lame_encode_init(), mpeg1_encode_sequence_header(), ndi_write_header(), oggvorbis_decode_init(), open_input_file(), open_output_file(), output_single_frame(), parse_number_or_die(), parse_rule(), print_report(), process(), process_output_surface(), quant_array_idx(), quantize(), quantize_lpc_coefs(), ra144_encode_init(), ra144_encode_subblock(), read_access_unit(), read_gab2_sub(), read_header(), read_header_openmpt(), read_matrix_params(), read_packet(), read_uslt(), reap_filters(), resample_init(), roq_dpcm_encode_init(), rpl_read_header(), rtp_resolve_host(), silk_is_lpc_stable(), smacker_decode_header_tree(), smka_decode_frame(), transcode_init(), transcode_step(), tta_decode_frame(), udp_port(), udp_resolve_host(), v4l2_configure_contexts(), vmd_read_header(), vorbis_encode_init(), vorbis_parse_setup_hdr_codebooks(), vpx_init(), write_output_file_header(), write_output_file_trailer(), and wv_get_value().

static AVCodec* AVCodecInitialize ( enum AVCodecID  codec_id)
static

Definition at line 66 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 76 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

static void FDBCreate ( FuzzDataBuffer FDB)
static

Definition at line 92 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

static void FDBDesroy ( FuzzDataBuffer FDB)
static

Definition at line 99 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

static void FDBRealloc ( FuzzDataBuffer FDB,
size_t  size 
)
static

Definition at line 101 of file target_dec_fuzzer.c.

Referenced by FDBPrepare().

static void FDBPrepare ( FuzzDataBuffer FDB,
AVPacket dst,
const uint8_t data,
size_t  size 
)
static

Definition at line 113 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

Variable Documentation

AVCodec* c = NULL
static

Definition at line 65 of file target_dec_fuzzer.c.

const uint32_t maxiteration = 8096

Definition at line 128 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

const uint64_t FUZZ_TAG = 0x4741542D5A5A5546ULL
static

Definition at line 130 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().