tools/target_dec_fuzzer: increase snows threshold
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 29 Aug 2019 19:08:42 +0000 (21:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 15 Sep 2019 22:53:18 +0000 (00:53 +0200)
snow allows creating large output from tiny input, like other
wavelet codecs

Fixes: Timeout (82sec -> 1.5sec)
Fixes: 9520/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SNOW_fuzzer-6286612576075776

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

index a1e660a63fedf112349f188c204e1f0fd69822ac..973705f1e9d09e2b2d62e9d47dfeed23be962501 100644 (file)
@@ -141,6 +141,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     case AV_CODEC_ID_INDEO4:    maxpixels /= 128; break;
     case AV_CODEC_ID_LSCR:        maxpixels /= 16; break;
     case AV_CODEC_ID_MOTIONPIXELS:maxpixels /= 256; break;
+    case AV_CODEC_ID_SNOW:        maxpixels /= 128; break;
     case AV_CODEC_ID_TRUEMOTION2: maxpixels /= 1024; break;
     }