[FFmpeg-devel,3/6] tools/target_dec_fuzzer: Adjust threshold for LSCR

Submitted by Michael Niedermayer on Aug. 25, 2019, 6:41 p.m.

Details

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

Commit Message

Michael Niedermayer Aug. 25, 2019, 6:41 p.m.
Fixes: Timeout (12sec -> 3sec)
Fixes: 15327/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LSCR_fuzzer-5702887719567360

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. 9, 2019, 9:01 p.m.
On Sun, Aug 25, 2019 at 08:41:55PM +0200, Michael Niedermayer wrote:
> Fixes: Timeout (12sec -> 3sec)
> Fixes: 15327/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LSCR_fuzzer-5702887719567360
> 
> 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 b1c1bfaad5..ce259f35e6 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -136,6 +136,7 @@  int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     case AV_CODEC_ID_GDV:       maxpixels /= 256; break;
         // Postprocessing in C
     case AV_CODEC_ID_HNM4_VIDEO:maxpixels /= 128; break;
+    case AV_CODEC_ID_LSCR:        maxpixels /= 16; break;
     case AV_CODEC_ID_MOTIONPIXELS:maxpixels /= 256; break;
     }