aboutsummaryrefslogtreecommitdiffstats
path: root/tools/target_dec_fuzzer.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-04-07 19:42:55 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2020-05-10 01:09:13 +0200
commit4f5498277301ad5edbc92d28d5c1e46084a1df36 (patch)
treeb0f563133ca682677fd6273aa206d0e70b89ea76 /tools/target_dec_fuzzer.c
parent5501bb28ddfa6441dcbf8ea0a964a13aa33f66fe (diff)
downloadffmpeg-4f5498277301ad5edbc92d28d5c1e46084a1df36.tar.gz
tools/target_dec_fuzzer: Adjust threshold for PNG and APNG
Fixes: Timeout (84sec -> 2sec) Fixes: 21127/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APNG_fuzzer-5098412367413248 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tools/target_dec_fuzzer.c')
-rw-r--r--tools/target_dec_fuzzer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index a89ea78f7b..dc7efe914d 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -157,6 +157,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
case AV_CODEC_ID_MSRLE: maxpixels /= 16; break;
case AV_CODEC_ID_MSS2: maxpixels /= 16384; break;
case AV_CODEC_ID_MSZH: maxpixels /= 128; break;
+ case AV_CODEC_ID_PNG: maxpixels /= 128; break;
+ case AV_CODEC_ID_APNG: maxpixels /= 128; break;
case AV_CODEC_ID_QTRLE: maxpixels /= 16; break;
case AV_CODEC_ID_RASC: maxpixels /= 16; break;
case AV_CODEC_ID_SANM: maxpixels /= 16; break;