[FFmpeg-devel,4/5] tools/target_dec_fuzzer: Adjust threshold for smacker

Submitted by Michael Niedermayer on Oct. 10, 2019, 10:40 p.m.

Details

Message ID 20191010224011.5364-4-michael@niedermayer.cc
State New
Headers show

Commit Message

Michael Niedermayer Oct. 10, 2019, 10:40 p.m.
Fixes: Timeout (65sec -> 0.5sec)
Fixes: 18072/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMACKER_fuzzer-5722709366931456

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 Nov. 9, 2019, 2:24 p.m.
On Fri, Oct 11, 2019 at 12:40:10AM +0200, Michael Niedermayer wrote:
> Fixes: Timeout (65sec -> 0.5sec)
> Fixes: 18072/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMACKER_fuzzer-5722709366931456
> 
> 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

[...]

Patch hide | download patch | download mbox

diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index a2c59be318..c4750c83d5 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -151,6 +151,7 @@  int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     case AV_CODEC_ID_LSCR:        maxpixels /= 16; break;
     case AV_CODEC_ID_MOTIONPIXELS:maxpixels /= 256; break;
     case AV_CODEC_ID_MSS2:        maxpixels /= 16384; break;
+    case AV_CODEC_ID_SMACKVIDEO:  maxpixels /= 64; break;
     case AV_CODEC_ID_SNOW:        maxpixels /= 128; break;
     case AV_CODEC_ID_TRUEMOTION2: maxpixels /= 1024; break;
     case AV_CODEC_ID_VP7:         maxpixels /= 256;  break;