diff mbox

[FFmpeg-devel,3/4] tools/target_dec_fuzzer: Adjust threshold for MSS2

Message ID 20190901211028.4759-3-michael@niedermayer.cc
State New
Headers show

Commit Message

Michael Niedermayer Sept. 1, 2019, 9:10 p.m. UTC
The decoder is slow

Fixes: Timeout (94sec -> 7sec)
Fixes: 16417/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSS2_fuzzer-5711668050395136

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 tools/target_dec_fuzzer.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Niedermayer Sept. 24, 2019, 1:18 p.m. UTC | #1
On Sun, Sep 01, 2019 at 11:10:27PM +0200, Michael Niedermayer wrote:
> The decoder is slow
> 
> Fixes: Timeout (94sec -> 7sec)
> Fixes: 16417/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSS2_fuzzer-5711668050395136
> 
> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  tools/target_dec_fuzzer.c | 1 +
>  1 file changed, 1 insertion(+)

will apply

[...]
diff mbox

Patch

diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index 3a19efd031..3d0a9e4fd8 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -139,6 +139,7 @@  int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     case AV_CODEC_ID_HNM4_VIDEO:maxpixels /= 128; break;
         // Cliping in C, generally slow even with small input
     case AV_CODEC_ID_INDEO4:    maxpixels /= 128; break;
+    case AV_CODEC_ID_MSS2:        maxpixels /= 16384; break;
     case AV_CODEC_ID_TRUEMOTION2: maxpixels /= 1024; break;
     }