[FFmpeg-cvslog] tools/target_dec_fuzzer: Fuzz idct_algo value

Michael Niedermayer git at videolan.org
Tue Jan 21 22:41:54 EET 2020


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Dec 28 23:20:37 2019 +0100| [48083f1890137dafd11cc382df023e03b22fe8df] | committer: Michael Niedermayer

tools/target_dec_fuzzer: Fuzz idct_algo value

This should improve coverage

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=48083f1890137dafd11cc382df023e03b22fe8df
---

 tools/target_dec_fuzzer.c | 2 ++
 1 file changed, 2 insertions(+)

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) {



More information about the ffmpeg-cvslog mailing list