diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-12-28 23:20:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-01-21 21:38:38 +0100 |
commit | 48083f1890137dafd11cc382df023e03b22fe8df (patch) | |
tree | 3d85789f5f79e9ecf6c2e1d7d76ec8f51b335182 /tools/target_dec_fuzzer.c | |
parent | 103a29b89d6e0cd0fdc5d7a715cbf3212fe33684 (diff) | |
download | ffmpeg-48083f1890137dafd11cc382df023e03b22fe8df.tar.gz |
tools/target_dec_fuzzer: Fuzz idct_algo value
This should improve coverage
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tools/target_dec_fuzzer.c')
-rw-r--r-- | tools/target_dec_fuzzer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index be00d1f2ed..d6dc7a44a4 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -214,6 +214,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { keyframes = bytestream2_get_le64(&gbc); ctx->request_channel_layout = bytestream2_get_le64(&gbc); + ctx->idct_algo = bytestream2_get_byte(&gbc) % 25; + if (extradata_size < size) { ctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); if (ctx->extradata) { |