History

tools/target_dec_fuzzer: enable mjpeg for tiff or tdsc

This is needed for fuzzing tiff/tdsc and should increase coverage

Michael Niedermayer committed 6 years ago

Commit 3371d061 parent b7e5c8f2 files · +7 −0Browse files

Unified · Split

2 files
  1. libavcodec/allcodecs.c +1 −0
  2. tools/target_dec_fuzzer.c +6 −0
libavcodec/allcodecs.c+1−0
@@ -812,6 +812,7 @@ extern AVCodec ff_vp9_qsv_encoder; · 811 unmodified lines
812// The iterate API is not usable with ossfuzz due to the excessive size of binaries created812// The iterate API is not usable with ossfuzz due to the excessive size of binaries created
813#if CONFIG_OSSFUZZ813#if CONFIG_OSSFUZZ
814AVCodec * codec_list[] = {814AVCodec * codec_list[] = {
815 NULL,
815 NULL,816 NULL,
816 NULL817 NULL
817};818};
tools/target_dec_fuzzer.c+6−0
@@ -120,6 +120,12 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { · 119 unmodified lines
120 codec_list[0] = &DECODER_SYMBOL(FFMPEG_DECODER);120 codec_list[0] = &DECODER_SYMBOL(FFMPEG_DECODER);
121 avcodec_register(&DECODER_SYMBOL(FFMPEG_DECODER));121 avcodec_register(&DECODER_SYMBOL(FFMPEG_DECODER));
122 122
123#if FFMPEG_DECODER == tiff || FFMPEG_DECODER == tdsc
124 extern AVCodec DECODER_SYMBOL(mjpeg);
125 codec_list[1] = &DECODER_SYMBOL(mjpeg);
126 avcodec_register(&DECODER_SYMBOL(mjpeg));
127#endif
128
123 c = &DECODER_SYMBOL(FFMPEG_DECODER);129 c = &DECODER_SYMBOL(FFMPEG_DECODER);
124#else130#else
125 avcodec_register_all();131 avcodec_register_all();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t