Message ID | 20191018221924.677-3-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | e21ec54fdf95bff3c0e1148554c5a542ee1e4dae |
Headers | show |
On Sat, Oct 19, 2019 at 12:19:23AM +0200, Michael Niedermayer wrote: > The threshold is chosen so that the worse frames would together not take > excessive time. > A better solution is welcome! > > Fixes: Timeout (308sec ->102ms) > Fixes: 18314/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP9_fuzzer-5701689176227840 > > 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 --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index 2a8a35d9da..152b4037e4 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -158,6 +158,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { case AV_CODEC_ID_TGV: maxpixels /= 32; break; case AV_CODEC_ID_TRUEMOTION2: maxpixels /= 1024; break; case AV_CODEC_ID_VP7: maxpixels /= 256; break; + case AV_CODEC_ID_VP9: maxpixels /= 4096; break; }
The threshold is chosen so that the worse frames would together not take excessive time. A better solution is welcome! Fixes: Timeout (308sec ->102ms) Fixes: 18314/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP9_fuzzer-5701689176227840 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(+)